hugo 基础教程 by nekocode

Hugo Download

https://github.com/spf13/hugo/releases

Hugo 初尝

hugo new site hugo_blog
cd hugo_blog

hugo new first.md
hugo undraft content/first.md

mkdir themes
cd themes
git clone https://github.com/spf13/hyde.git
cd hyde
rm -rf .git

cd ..
cd ..
hugo server -t hyde --watch

Website Configuration

toml or yaml or json

baseurl = "http://onecampus.github.io/"
languageCode = "zh-CN"
title = "Onecampus T.D."
theme = "hyde"

[params]
	description = "I am the bone of my sword."
	#disqusShortname = "spf13"

[[menu.main]]
	Name = "organization"
	Url = "https://github.com/onecampus"

用 Hugo 编写团队博客

  1. fork https://github.com/onecampus/onecampus_blog
  2. write articles
  3. pull requests

Other