Skip to content

Commit

Permalink
template: add some notion to replace our custom hugo partials (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
cagix committed Sep 6, 2023
1 parent 3f5aba3 commit 938ba90
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/gfm.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
$-- custom template to structure the GFM exports

$-- pandoc --template=templates/gfm.md -t gfm examples/gfm/problems.md

$if(title)$
# $title$
$endif$
Expand Down Expand Up @@ -119,6 +121,15 @@ $challenges$
$endif$


$if(challenges)$
`{{% notice style="info" title="Challenges" icon="fas fa-book-reader" %}}`{=markdown}

$challenges$

`{{% /notice %}}`{=markdown}
$endif$


$-- TODO: we use "readings" but would probably want something like our Hugo shortcode "bib.html" or some proper Pandoc citeproc handling here ...
$-- this won't work now - leaving this open for later
$if(bib)$
Expand Down

0 comments on commit 938ba90

Please sign in to comment.