lecture_slides, lecture_notes metadata support

This commit is contained in:
Akbar Rahman 2023-02-09 13:41:16 +00:00
parent a91f5dcdfc
commit 0ae70aa2b3
Signed by: alvierahman90
GPG Key ID: 20609519444A1269
2 changed files with 17 additions and 0 deletions

View File

@ -40,6 +40,8 @@ doing it for me:
searching searching
- `title` --- The title of the article - `title` --- The title of the article
- `uuid` --- A unique identifier used for permalinks. More below. - `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 - notes2web indexes [ATX-style headings](https://pandoc.org/MANUAL.html#atx-style-headings) for
searching searching

View File

@ -21,6 +21,21 @@
<p class="smallText metadata"> <p class="smallText metadata">
title: $title$ title: $title$
</p> </p>
$if(lecture_slides)$
<p class="smallText metadata"> lecture_slides: [
$for(lecture_slides)$
<a href="$lecture_slides$">$lecture_slides$</a>$sep$,
$endfor$
]</p>
$endif$
$if(lecture_notes)$
<p class="smallText metadata"> lecture_notes: [
$for(lecture_notes)$
<a href="$lecture_notes$">$lecture_notes$</a>$sep$,
$endfor$
]</p>
$endif$
<p class="smallText metadata"> <p class="smallText metadata">
uuid: $uuid$ (<a href="/permalink?uuid=$uuid$">permalink</a>) uuid: $uuid$ (<a href="/permalink?uuid=$uuid$">permalink</a>)
</p> </p>