Liang 's blog

不忘初心


  • Home

  • Archives5

  • Categories3

  • Tags5

  • About

  • Search

Github Page Setup (2) 加入進階功能 + SEO

Posted on 2019-02-13 | Edited on 2019-02-16 | In setup |

瀏覽人次統計

● 修改 theme/next/_config.yml :

busuanzi_count:
  enable: true
  total_visitors: true
  total_visitors_icon: user
  total_views: true
  total_views_icon: eye
  post_views: true
  post_views_icon: eye

建立留言板

● 使用Disqus :

● 註冊一組帳密,在下一步中選擇 “I want to install Disqus on my site”

● Website Name 中填入自己的網站名

● 最後修改 theme/next/_config.yml:

disqus:
enable: true
shortname: <your-website-name>
count: true
Read more »

Github Page Setup (1) 使用 Hexo + NexT

Posted on 2019-02-13 | Edited on 2019-02-16 | In setup |

What is Hexo ?

● Hexo
 簡單的來說,就是一個 Blog Framework,可以用 Markdown 語法寫 Blog,支援很多插件,可以加入 SEO,
 重點是方便部屬到 Github Pages。


安裝設定

● 需要先安裝:  

Node.js
Git

● Install Hexo

npm install -g hexo-cli

● 這樣就完成了安裝,十分簡單。

● Start Hexo

hexo init <folder>
cd <folder>
hexo server 

● 接著在瀏覽器裡輸入 localhost:4000,就可以看到你的 Blog 了。

Read more »

Markdown Notes

Posted on 2019-02-11 | Edited on 2019-02-13 | In markdown |

註解


<!-- 這句看不見,一句話的註解 
這句看不見,一句話的註解 這句看不見,一句話的註解 
這句看不見,一句話的註解 
-->

如果看不到東西代表註解成功了!


字體大小

# 標題
## 標題 
### 標題 
#### 標題 
##### 標題 
###### 標題 

結果

標題

標題

標題

標題

標題
標題
Read more »

Git (2) 進階git操作

Posted on 2019-02-11 | Edited on 2019-02-13 | In git |

檢查歷史紀錄

$ git log

commit afe36485cb94078a1ba9a7377398247e4d181765 (HEAD -> master)
Author: liangsmfish <007liang7@gmail.com>
Date:   Mon Dec 10 01:05:06 2018 +0800

    add indexs

commit db2aeaf1543f0d634ff8a8e8497e7ad520bef2f4 (origin/master)
Author: liangfish <007liang7@gmail.com>
Date:   Sun Dec 9 16:42:49 2018 +0800

    add indexs

依序顯示的會是 每個 commit 的id,作者,時間跟做了甚麼事情

Read more »

Git (1) 開始使用git - init add commit

Posted on 2019-02-11 | Edited on 2019-02-16 | In git |

初始化

cd 至欲交給git版控的目錄

$ git init

PS. 若想脫離git版控,把.git目錄砍掉即可

把檔案交給 Git

可以先檢查此目錄的狀態

$ git status

# 如果是空的
On branch master

Initial commit

nothing to commit (create/copy files and use "git add" to track)

# 如果裡面只有 test.html
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)
    test.html
nothing added to commit but untracked files present (use "git add" to track)

Read more »
Liang-Chen-Yu

Liang-Chen-Yu

關於人工智能 深度學習 與 程式語言 相關的部落格

5 posts
3 categories
5 tags
RSS
GitHub E-Mail Autobiography Resume 中文自傳 中文履歷
© 2019 Liang-Chen-Yu
Powered by Hexo v3.8.0
|
Theme – NexT.Gemini v6.6.0
0%