static footer

This commit is contained in:
Fabien Freling 2025-01-13 11:26:14 +01:00
parent 45ce87e6b1
commit c47942b451
4 changed files with 4 additions and 12 deletions

View file

@ -1,6 +1,5 @@
&root = .
&tmpl_dir = ./templates
&gen_tmpl_dir = ./build/templates
HTML_TEMPLATE = main.html
@ -10,8 +9,8 @@ HTML_TEMPLATE = main.html
--template=&(tmpl_dir)/$(HTML_TEMPLATE) \
--include-in-header=&(tmpl_dir)/header.html \
--include-before-body=&(tmpl_dir)/nav.html \
--include-after-body=&(tmpl_dir)/footer.html \
--css &(root)/css/style.css \
--include-after-body=&(gen_tmpl_dir)/footer.html \
%f | sed 's|%%webRoot%%|&(root)|g' > %o \
|> %B.html

View file

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

3
templates/footer.html Executable file
View file

@ -0,0 +1,3 @@
<div id="footer">
Copyright &copy; Fabien Freling since 2007
</div>

View file

@ -1,9 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
cat << EOF
<div id="footer">
Copyright &copy; Fabien Freling 2007-$(date +%Y)
</div>
EOF