- Create a new repository with the name
website_xyz
and selectslds-lmu/website_template
as template repository - There should already be a
gh-pages
branch. If not, create it. - Go to
Settings -> Pages
and select thegh-pages
branch as built branch. - Change all
website_template
entries in theconfig.toml
file to your repository namewebsite_xyz
(this should happen in two places, line 1 thebaseURL
and line 43 the footer url). - The built of the website should already be available at
http://slds-lmu.github.io/website_xyz/
- [Optional] Add your website link to the description of the repository to make it accessible more easily.
- Edit the team page. Remove people not affiliated with the lecture and add add relevant people.
- Edit your files as described below.
- 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:
- For Files:
{{< pdfjs file="slides-regression-losses.pdf" >}}
. The pdf has to be in the same directory as the md file. - As URL:
{{< pdfjs file="https://github.com/slds-lmu/lecture_i2ml/blob/master/slides-pdf/slides-regression-losses.pdf" >}}
. If a URL is used, a download button is created instead a preview of the slides.
- For Files:
- 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.pdf
it will break in the index pages
- you should use the shortcode
- to include lecture video:
{{< video id = "Syrzezpj2FY" >}}
- the
video_id
is the last part of the youtube url, e.g. forhttps://www.youtube.com/watch?v=BmSvhDCdJro
it isBmSvhDCdJro
. - You can also embed videos from other platforms by changing
video_base_url
inconfig.toml
- Or use a custom shortcode.
- the
- mathjax enabled if
mathjax: true
in yaml-frontmatter - if mathjax should be supported in index page, add it to respective
_index.md
or enable it inconfig.toml
- make quizzes using https://github.com/bonartm/hugo-quiz
- put
quizdown: true
in yaml-frontmatter - quizzes support mathjax without the
mathjax: true
- put
- in
_index.md
you can specifyshow_in_index: (content|summary|none)
The deploy is done automatically via GitHub Actions. Nothing needs to be done to publish a new version of the website. Each build is triggered when a commit is done to the main
branch.