.
├── archetypes
├── content
│ ├── news
│ ├── papers
│ ├── people
│ └── zh
├── public
├── static
│ ├── intro
│ ├── joinus
│ ├── papers
│ └── people
└── themes
└── blist
archetypes
: templatecontent
content/news
: news listed on index without href and image. only title, date, description will be showncontent/papers
: publications. if the author in people -> use id, else if has own homepage -> use url, else -> omitcontent/people
: layout 'people' or 'mentor'content/zh
: Chinese version now only support index and about
public
: userm -rf public; hugo server
to re-render this projectstatic
: all static resources. make thepublic
directory clear by setting the same dir nametheme
: submodule. access on https://github.com/Augists/blist-hugo-theme
git clone [email protected]:XJTU-NetVerify/XJTU-NetVerify.github.io.git --recurse-submodules
Download with all submodule init and update
Check that theme project themes/blist
has been prepared
git submodule update --init
Alternative choice
rm -rf themes/blist
git clone https://github.com/Augists/blist-hugo-theme.git themes/blist
Setup Node.js dependencies (use ci
instead of install
in case of version-not-match)
npm ci
Run server
rm -rf public; hugo server
runs on localhost:1313
- use parameter
--disableFastRender
if needed - cause it needs to convert and generate labels, you can restart the server if new class (tailwind css) or style makes no effect
Now the project is powered by GitHub Actions. Check .github/workflows/gh-pages.yml
- Setup Hugo with version 0.125.4 (same as development environment)
- Setup Node.js and NPM with version 20
- Download packages
hugo
(--minify
) for deployment- replace baseurl in
hugo.toml
- deploy on branch
gh-pages
(for GitHub Pages)
- replace baseurl in