Skip to content

Commit

Permalink
Workaround lack of home folder expansion for pandoc templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatsushita committed Jan 21, 2018
1 parent 5165eec commit 7d9c0d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,16 @@ plugins:
- description
- duration

# Copy template.markdown to .pandoc which is default datadir since we can't pass --template with $HOME
- metalsmith-assets-improved:
src: code/template.markdown
dest: ../../../../.pandoc/templates/safetag-guide-template.markdown

# Interpret Markdown with Pandoc
- metalsmith-pandoc:
pattern: "**/index.md"
from: markdown_github+definition_lists+raw_html+markdown_in_html_blocks+link_attributes+header_attributes+footnotes+superscript+subscript
args: ['--standalone', '--table-of-contents', '--toc-depth=4', '-V toc-title:"Table of Contents"', '--template=/Users/jun/.content/packages/safetag-toolkit/code/template.markdown']
args: ['--standalone', '--table-of-contents', '--toc-depth=4', '-V toc-title:"Table of Contents"', '--template=safetag-guide-template.markdown']

- metalsmith-pandoc:
pattern: "**/*.md"
Expand Down

0 comments on commit 7d9c0d6

Please sign in to comment.