- Directories and filenames have to be lowercase
- Chapters are ordered after filenames
- if no video is given or no pdf file is present: delete yaml param completely
- to include pdfs, use pdfjs:
{{< pdfjs file="slides-regression-losses.pdf" >}}. The pdf has to be in the same directory as the md file. - if you add a markdown or html link to a file that is in the same directory
- you should use the shortcode
{{< fileurl file="cheatsheet_notation.pdf" >}} - if you link to
../file.pdfit will break in the index pages
- you should use the shortcode
- to include lecture video:
{{< video id = "Syrzezpj2FY" >}}- the
video_idis the last part of the youtube url, e.g. forhttps://www.youtube.com/watch?v=BmSvhDCdJroit isBmSvhDCdJro. - You can also embed videos from other platforms by changing
video_base_urlinconfig.toml - Or use a custom shortcode.
- the
- mathjax enabled if
mathjax: truein yaml-frontmatter - if mathjax should be supported in index page, add it to respective
_index.mdor enable it inconfig.toml - make quizzes using https://github.com/bonartm/hugo-quiz
- put
quizdown: truein yaml-frontmatter - quizzes support mathjax without the
mathjax: true
- put
- in
_index.mdyou can specifyshow_in_index: (content|summary|none)
jakob-r/hugo-course
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|