Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter: use Pandoc template in pre-processing for Hugo #165

Open
cagix opened this issue Sep 1, 2023 · 0 comments
Open

Filter: use Pandoc template in pre-processing for Hugo #165

cagix opened this issue Sep 1, 2023 · 0 comments

Comments

@cagix
Copy link
Owner

cagix commented Sep 1, 2023

When pre-processing Markdown files with Pandoc to prepare for website generation with Hugo, use custom Markdown templates for Pandoc. This will replace some day our custom archetype definitions for Hugo ...

This could be something like

---
$if(archetype=="home")$
archetype: home
$end$

title: $title$
...
---

$if(archetype=="lecture-cg")$
${ lecture-cg.md() }
$else-if(archetype=="lecture-bc")$
${ lecture-cg.md() }
$else$
${ lecture.md() }
$endif$
$-- lecture-cg.md

$if(titleblock)$
$titleblock$
$endif$

${ tldr.md() }
${ outcomes.md() }

$body$

${ quizzes.md() }
${ challenges.md() }
${ bib.md() }

related to #52 and #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant