.
├── archetypes
├── content
│ ├── news
│ ├── papers
│ ├── people
│ └── zh
├── public
├── static
│ ├── intro
│ ├── joinus
│ ├── papers
│ └── people
└── themes
└── blistarchetypes: templatecontentcontent/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 serverto re-render this projectstatic: all static resources. make thepublicdirectory 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-submodulesDownload with all submodule init and update
Check that theme project themes/blist has been prepared
git submodule update --initAlternative choice
rm -rf themes/blist
git clone https://github.com/Augists/blist-hugo-theme.git themes/blistSetup Node.js dependencies (use ci instead of install in case of version-not-match)
npm ciRun server
rm -rf public; hugo serverruns on localhost:1313
- use parameter
--disableFastRenderif 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