Skip to content

jordonyang/jordonyang.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Personal blog built with hugo, decorated with hugo-theme-casper, reconstruct some htmls, import highlight.js and some css files. It is such an enjoyable thing to run test cases locally and deploy pages to github server as hugo which created by GO has the ability of running in a fascinating and remarkable speed, which makes me abandon hexo and get to know hugo without hesitation.

Details

config.toml

theme = "hugo-theme-casper"
languageCode = "zh_CN" 
title = "临风博客"  
baseurl = "https://jordonyang.github.io/"  # 一定要用https,github强制安全措施
paginate = 10    # 分页每页记录数
# DisqusShortname = "临风"   #评论时显示的名字
copyright = "All rights reserved"  
canonifyurls = true 

[params]
  description = "Stay hungry, stay foolish."
  cover = "http://attachments.gfan.com/forum/attachments2/201304/24/134256oe4lamvbxm7bb2hq.jpg"   
  author = "临风"  
  authorlocation = "Guangzhou, China"  
  authorwebsite = "https://jordonyang.github.io/"  
  hideHUGOSupport = false #是否显示Hugo水印
  hjsStyle = "github-gist"

[sitemap]
  ChangeFreq = ""
  Filename = "sitemap.xml"
  Priority = "-1"

[[menu.main]]  
  name = "临风博客"
  weight = 100
  identifier = "blog"
  url = "/"

  [[menu.main]]  
  name = "标签"
  weight = 99
  identifier = "/tags"
  url = "https://jordonyang.github.io/tags/"

  [[menu.main]]  
  name = "分类"
  weight = 98
  identifier = "/categories"
  url = "https://jordonyang.github.io/categories/"

[[menu.main]]
  name = "关于我"
  weight = 97
  identifier = "about"
  url = "/about"

Deploy

use following cmd to generate public folder

hugo --theme=hugo-theme-casper --baseUrl="https://jordonyang.github.io/" 

use following cmds for first commit

cd public
git init
git add -A
git commit -m "first commit"
git remote add origin https://github.com/jordonyang/jordonyang.github.io.git
git push -u origin master

Releases

No releases published

Packages

No packages published