-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Also see static compiler issue in my portfolio repository
I'm an absolute beginner with bash and not really interested in learning it, but for simple websites, PDFs, and other static content, these commands could be handy. It's a lot easier than static site generators.
Single file
To concatenate files (combine files into a single
.htmlfile)
pandoc --template=./source/pandoc-template.html --css=./static/styles.css ./partials/*.md ./partials/metadata.yaml -s -o ./build/output.htmlMultiple files
To process multiple files (and export each as
.htmlfile). The;is necessary for one-line commands.
for file in ./source/*.md; do
pandoc --template=./source/pandoc-template.html -c ../static/styles.css -s "$file" -o "./build/$(basename "$file" .md).html";
doneMetadata
Metadata
Assignees
Labels
No labels