From c8ab67b9583c928bf6cc3d17229d7a00b52d8d82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Tue, 16 Nov 2021 20:27:33 +0100 Subject: [PATCH] Updated new style. --- .gitignore | 4 + Makefile | 4 + blog/templates/index.html/footer-part.html | 1 + blog/templates/index.html/footer.html | 16 -- blog/templates/index.html/header-part.html | 6 + blog/templates/index.html/header.html | 38 ---- pages/home.html | 10 +- style.css | 206 ++++++++------------- templates/page/footer.html | 11 +- templates/page/header.html | 20 +- 10 files changed, 103 insertions(+), 213 deletions(-) create mode 100644 blog/templates/index.html/footer-part.html delete mode 100644 blog/templates/index.html/footer.html create mode 100644 blog/templates/index.html/header-part.html delete mode 100644 blog/templates/index.html/header.html diff --git a/.gitignore b/.gitignore index 375dc52..31e459f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ # ignore generated site output/ + +# Ignore compiled files +blog/templates/index.html/header.html +blog/templates/index.html/footer.html diff --git a/Makefile b/Makefile index fcc1b12..e9cbf17 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,8 @@ pages: blog: mkdir -p $(OUTPUT_DIR)/blog + cat templates/page/header.html blog/templates/index.html/header-part.html > blog/templates/index.html/header.html + cat blog/templates/index.html/footer-part.html templates/page/footer.html > blog/templates/index.html/footer.html find blog/posts -type f -name '*.cfg' -print0 | sort -zr | xargs -0 saait -o $(OUTPUT_DIR)/blog/ -t blog/templates/ sync: all @@ -18,3 +20,5 @@ sync: all clean: rm -rf $(OUTPUT_DIR) + rm -f blog/templates/index.html/header.html + rm -f blog/templates/index.html/footer.html diff --git a/blog/templates/index.html/footer-part.html b/blog/templates/index.html/footer-part.html new file mode 100644 index 0000000..3d3a44c --- /dev/null +++ b/blog/templates/index.html/footer-part.html @@ -0,0 +1 @@ + diff --git a/blog/templates/index.html/footer.html b/blog/templates/index.html/footer.html deleted file mode 100644 index a6909f0..0000000 --- a/blog/templates/index.html/footer.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - diff --git a/blog/templates/index.html/header-part.html b/blog/templates/index.html/header-part.html new file mode 100644 index 0000000..39d248b --- /dev/null +++ b/blog/templates/index.html/header-part.html @@ -0,0 +1,6 @@ +

Blog

+

Feeds

+

RSS | Atom

+ +

Posts

+