Skip to content

仓库 files navigation

scverse.org

This is a website for scverse.org based on Hugo.

仓库 structure

Content

Most of the times, only the content has to be modified. Content is stored as TOML in .md files in /content. To modify the contents of the tutorials page, for example, one has to look inside /content/learn/_index.md.

Styles

For style sheets, SCSS is used. Modify /assets/main.scss to change styles.

Layout

Modifying layout is only required when pages have to be restuctured or new pages are to be added. Look inside /layout for that. Hugo Templating is used to work with content from /content.

Running locally

To build the website (with hot reload), install Hugo and run

hugo server -D

Site search is powered by Pagefind, which indexes the built HTML rather than the content files, so hugo server alone has no index and the search dialog will say so. To try it locally, build and index the site, then serve public/:

hugo && npx pagefind --site public && python3 -m http.server -d public

关于

scverse.org website

Resources

Code of conduct

Stars

4 stars

关注者

8 watching

复刻s

发布

Used by

贡献者

Languages