Skip to content

Instantly share code, notes, and snippets.

@hugoroy
Created October 30, 2014 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugoroy/e50215d6eac2000788ba to your computer and use it in GitHub Desktop.
Save hugoroy/e50215d6eac2000788ba to your computer and use it in GitHub Desktop.
Pandoc template for ikiwiki

$if(title)$ [[!meta title="$title$"]] $endif$ $if(author-meta)$ [[!meta author="$author-meta$"]] $endif$ $if(date)$ [[!meta date="$date$"]] $endif$ $if(abstract)$ [[!meta description="$abstract$"]] $endif$ $if(lang)$ [[!meta language="$lang$"]] $endif$ $if(tags)$ [[!tag $if(lang)$lang:$lang$ $endif$ $for(tags)$$tags$ $endfor$]] $endif$

$if(toc)$

Contents

[[!toc $if(startlevel)$startlevel=$startlevel$$endif$ levels=$toc-depth$ ]]

$endif$

$if(abstract)$ $abstract$

[[!more linktext="" text=""" $body$ """]] $else$ $for(include-before)$ $include-before$

$endfor$ $body$ $endif$

$for(include-after)$ $include-after$

$endfor$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment