adding date header
This commit is contained in:
parent
48e4b08093
commit
5180c1c30d
2 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,7 @@ RUN for md_file in /app/markdown/*.md; do \
|
|||
filename=$(basename -- "$md_file"); \
|
||||
name="${filename%.*}"; \
|
||||
echo "Converting $filename to $name.html"; \
|
||||
pandoc "$md_file" -o "/usr/share/nginx/html/$name.html" \
|
||||
pandoc "$md_file" --variable date="$(date +"%Y-%m-%dT%H:%M:%S%z")" -o "/usr/share/nginx/html/$name.html" \
|
||||
--template=/app/markdown/template.html \
|
||||
--standalone; \
|
||||
fi; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue