fix variant path for footer generated file

This commit is contained in:
Fabien Freling 2024-11-21 16:26:54 +01:00
parent 8a84b11503
commit ca36f290b4
2 changed files with 8 additions and 7 deletions

View file

@ -1,16 +1,17 @@
&root = .
&build_root = build
&tmpl_dir = ./templates
&gen_tmpl_dir = ./build/templates
HTML_TEMPLATE = main.html
!html = | &(root)/templates/footer.html \
!html = | &(tmpl_dir)/<tmpl_group> \
|> ^b html %f^ \
pandoc --from markdown --to html \
--template=&(root)/templates/$(HTML_TEMPLATE) \
--template=&(tmpl_dir)/$(HTML_TEMPLATE) \
--include-in-header=&(tmpl_dir)/header.html \
--include-before-body=&(tmpl_dir)/nav.html \
--css &(root)/css/style.css \
--include-in-header=&(root)/templates/header.html \
--include-before-body=&(root)/templates/nav.html \
--include-after-body=&(build_root)/templates/footer.html \
--include-after-body=&(gen_tmpl_dir)/footer.html \
%f | sed 's|%%webRoot%%|&(root)|g' > %o \
|> %B.html

View file

@ -1 +1 @@
: |> ./generate_footer.sh > %o |> footer.html
: |> ./generate_footer.sh > %o |> footer.html ./<tmpl_group>