static footer
This commit is contained in:
parent
45ce87e6b1
commit
c47942b451
|
@ -1,6 +1,5 @@
|
||||||
&root = .
|
&root = .
|
||||||
&tmpl_dir = ./templates
|
&tmpl_dir = ./templates
|
||||||
&gen_tmpl_dir = ./build/templates
|
|
||||||
|
|
||||||
HTML_TEMPLATE = main.html
|
HTML_TEMPLATE = main.html
|
||||||
|
|
||||||
|
@ -10,8 +9,8 @@ HTML_TEMPLATE = main.html
|
||||||
--template=&(tmpl_dir)/$(HTML_TEMPLATE) \
|
--template=&(tmpl_dir)/$(HTML_TEMPLATE) \
|
||||||
--include-in-header=&(tmpl_dir)/header.html \
|
--include-in-header=&(tmpl_dir)/header.html \
|
||||||
--include-before-body=&(tmpl_dir)/nav.html \
|
--include-before-body=&(tmpl_dir)/nav.html \
|
||||||
|
--include-after-body=&(tmpl_dir)/footer.html \
|
||||||
--css &(root)/css/style.css \
|
--css &(root)/css/style.css \
|
||||||
--include-after-body=&(gen_tmpl_dir)/footer.html \
|
|
||||||
%f | sed 's|%%webRoot%%|&(root)|g' > %o \
|
%f | sed 's|%%webRoot%%|&(root)|g' > %o \
|
||||||
|> %B.html
|
|> %B.html
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
: |> ./generate_footer.sh > %o |> footer.html ./<tmpl_group>
|
|
3
templates/footer.html
Executable file
3
templates/footer.html
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
<div id="footer">
|
||||||
|
Copyright © Fabien Freling since 2007
|
||||||
|
</div>
|
|
@ -1,9 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
cat << EOF
|
|
||||||
<div id="footer">
|
|
||||||
Copyright © Fabien Freling 2007-$(date +%Y)
|
|
||||||
</div>
|
|
||||||
EOF
|
|
Loading…
Reference in a new issue