Config #
Configuration, customization, and data file conventions for hugo-theme-ncsu.
Hugo Settings #
General Hugo config options are listed in the Hugo configuration documentation.
| |
baseURL: Base URL for the deployed site. Set this to the course website root when manually deploying generated HTML.languageCode: Displayed in the website header as thelangattribute.title: Default website title displayed in browser tabs and search results when no page title is set.theme: Name of this theme in thethemesfolder.
Theme Parameters #
| |
showToC: Show the autogenerated table of contents on the right.showSidebar: Show the left sidebar from/layouts/partials/sidebar.html.showWIP: Show the work-in-progress notice from/layouts/partials/wip.html.showFooter: Show the site footer from/layouts/partials/footer.html.- Course variables can be used in templates with
{{ .Site.Params.cshort }}and in Markdown with{{< param "cshort" >}}.
Page front matter can override theme display flags for individual pages.
| |
Menu #
Menu entries appear in the top navigation.
| |
Use menuHighlight in page front matter when the highlighted navigation item should differ from the page path.
| |
Overrides #
Create files with the same path in the site to override theme partials.
- Sidebar
/layouts/partials/sidebar.html- Footer
/layouts/partials/footer.html- Work in Progress Notice
/layouts/partials/wip.html- Head Additions
/layouts/partials/head.html
The example site includes its own sidebar override at exampleSite/layouts/partials/sidebar.html.
Assignment Data #
Assignment shortcodes read from /data/assignments.toml.
| |
id- Stable identifier used by
Assignment 01. name- Full display name.
short_name- Compact badge label.
url- Link target for badge-style output.
page- Link target for default assignment output.
date- Due date used by
dateandcountdownoutput. color- Bootstrap badge color class, optionally combined with text classes.
Lecture Data #
Schedule lecture shortcodes read from /data/lectures.toml.
| |
id- Stable identifier used by the lecture shortcode, for example the
lec-introlecture entry. title- Lecture title.
label- Optional link id and displayed card label. Falls back to
id. description- Optional Markdown-enabled lecture description.
short- Optional text before the lecture title. Falls back to automatic lecture numbering.
time- Optional lecture time override.
slides- Optional slides link.
recording- Optional recording link.
additional- Optional resource table rendered as additional resources.
mentioned- Optional resource table rendered as mentioned resources.