From 0ae70aa2b352399149916b7505921e8d49423631 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Thu, 9 Feb 2023 13:41:16 +0000 Subject: [PATCH] lecture_slides, lecture_notes metadata support --- readme.md | 2 ++ templates/article.html | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/readme.md b/readme.md index db7ee86..1efe091 100644 --- a/readme.md +++ b/readme.md @@ -40,6 +40,8 @@ doing it for me: searching - `title` --- The title of the article - `uuid` --- A unique identifier used for permalinks. More below. + - `lecture_slides` --- a list of paths pointing to lecture slides used while taking notes + - `lecture_notes` --- a list of paths pointing to other notes used while taking notes - notes2web indexes [ATX-style headings](https://pandoc.org/MANUAL.html#atx-style-headings) for searching diff --git a/templates/article.html b/templates/article.html index 5729743..0d55afe 100644 --- a/templates/article.html +++ b/templates/article.html @@ -21,6 +21,21 @@

title: $title$

+ $if(lecture_slides)$ +

lecture_slides: [ + $for(lecture_slides)$ + $lecture_slides$$sep$, + $endfor$ + ]

+ $endif$ + $if(lecture_notes)$ +

lecture_notes: [ + $for(lecture_notes)$ + $lecture_notes$$sep$, + $endfor$ + ]

+ $endif$ +

uuid: $uuid$ (permalink)