Skip to content

go-bai/go-bai.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prerequisites

~ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

➜  ~ go version
go version go1.21.1 linux/amd64

install hugo extended

CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest

pull theme submodule

git submodule update --init

add a new page

hugo new content posts/linux/jq-command.md

preview

hugo server

push

bash push.sh

其他

自定义hugo toc的目录

https://gohugo.io/getting-started/configuration-markup/#table-of-contents https://gohugo.io/content-management/toc/

markup:
  tableOfContents:
    endLevel: 5
    ordered: false
    startLevel: 2

Releases

No releases published

Packages

No packages published

Languages