commit 8098745665efae6e0dd010bb47e0e5ad287a851f parent 3f703f9e44117af7863ec69c2166a1d3a0ec3d2e Author: Luís Ferreira <contact@lsferreira.net> Date: Wed, 6 Oct 2021 00:07:48 +0100 treewide: make website reproducible by removing timestamps Signed-off-by: Luís Ferreira <contact@lsferreira.net> Diffstat:
M | Makefile | | | 6 | ++++++ |
M | layouts/partials/footer.html | | | 10 | +++++++++- |
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -9,12 +9,18 @@ build-static: git submodule update --init --recursive ./static/generate.sh +gen-lastupdate: + @echo "Update lastupdate file" + @sh -c "echo \"<!DOCTYPE html><html lang=\\\"en\\\"><body><pre style=\\\"font-size: xx-small\\\">Last update: \$$(date +%s)</pre></body></html>\" > static/lastupdate.html" + +build-hugo: gen-lastupdate build-hugo: hugo $(HUGO_ARGS) postscript-build: ./scripts/ignore-files.sh +serve-hugo: gen-lastupdate serve-hugo: hugo server $(HUGO_ARGS) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html @@ -1,6 +1,14 @@ <footer> <p class="xx-sm txt-left"> This website is open source and distributed on IPFS. - <span style="float:right">Last update: {{ now.Unix }}</span> + <span style="float:right"> + <iframe + src="/lastupdate.html" + frameborder="0" + border="0" + cellspacing="0" + height="30" width="150" + style="border-style: none"></iframe> + </span> </p> </footer>