fix variant path for footer generated file
This commit is contained in:
parent
8a84b11503
commit
ca36f290b4
13
Tuprules.tup
13
Tuprules.tup
|
@ -1,16 +1,17 @@
|
||||||
&root = .
|
&root = .
|
||||||
&build_root = build
|
&tmpl_dir = ./templates
|
||||||
|
&gen_tmpl_dir = ./build/templates
|
||||||
|
|
||||||
HTML_TEMPLATE = main.html
|
HTML_TEMPLATE = main.html
|
||||||
|
|
||||||
!html = | &(root)/templates/footer.html \
|
!html = | &(tmpl_dir)/<tmpl_group> \
|
||||||
|> ^b html %f^ \
|
|> ^b html %f^ \
|
||||||
pandoc --from markdown --to html \
|
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 \
|
--css &(root)/css/style.css \
|
||||||
--include-in-header=&(root)/templates/header.html \
|
--include-after-body=&(gen_tmpl_dir)/footer.html \
|
||||||
--include-before-body=&(root)/templates/nav.html \
|
|
||||||
--include-after-body=&(build_root)/templates/footer.html \
|
|
||||||
%f | sed 's|%%webRoot%%|&(root)|g' > %o \
|
%f | sed 's|%%webRoot%%|&(root)|g' > %o \
|
||||||
|> %B.html
|
|> %B.html
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
: |> ./generate_footer.sh > %o |> footer.html
|
: |> ./generate_footer.sh > %o |> footer.html ./<tmpl_group>
|
||||||
|
|
Loading…
Reference in a new issue