Android技术知识Android开发经验谈Android开发

Hexo+GitHub+阿里域名搭建自己博客

2018-08-14  本文已影响6人  仕明同学

效果

手机端效果二

Hexo+GitHub

域名

GitHub Pages的设置

主题选择

git clone https://github.com/MOxFIVE/hexo-theme-yelee.git themes/yelee
image.png
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: Yelee
设置

Hexo 几个常用的命令

hexo generate (hexo g) 生成静态文件,会在当前目录下生成一个新的叫做public的文件夹
hexo server (hexo s) 启动本地web服务,用于博客的预览
hexo deploy (hexo d) 部署博客到远端服务器
hexo new "postName" #新建文章
hexo new page "pageName" #新建页面
$ hexo n == hexo new
$ hexo g == hexo generate
$ hexo s == hexo server
$ hexo d == hexo deploy

遇到的问题

# Local Site Search | 本地站内搜索
## Insatall below plugin to take effect | 使用搜索需先安装对应插件
## https://github.com/PaicHyperionDev/hexo-generator-search
search: 
  on: true
  #onload: false     (Hexo中的Yelee主题,首页不显示文章)
  ## true: get search.xml file when the page has loaded
  ## false: get the file when search box gets focus
---
title: Go语言实现的WebSocket
date: 2018-07-15 16:02:08
tags: [Go,WebSocket]
---
---
title: Go语言实现的WebSocket
date: 2018-07-15 16:02:08
tags: [Go,WebSocket]
---
* 最终的效果如下
![Web端上传的信息](https://img.haomeiwen.com/i5363507/1df3bbfdd7b78fff.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![Web端得到的打印的信息](https://img.haomeiwen.com/i5363507/394f230f0c32cdab.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
<!--  more  -->
![服务端的代码的实现](https://img.haomeiwen.com/i5363507/1c4e57241edf86c4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
上一篇 下一篇

猜你喜欢

热点阅读