From 0e0701cb3baf603e1773194031ab37ec779dd8ff Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 2 Jan 2026 14:51:46 +0200 Subject: Improvements --- .gitignore | 1 + Makefile | 8 +++++++- templates/base.html | 22 +++++++++++++++++----- templates/page.html | 3 +-- 4 files changed, 26 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index a85c8b7..ef1e8ed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ public/ linklog.json +.envrc diff --git a/Makefile b/Makefile index f253604..4606ec4 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,18 @@ all: ./update-linklog-json.sh zola build +.PHONY: dev dev: @echo "Starting development server..." ./update-linklog-json.sh zola serve +.PHONY: deploy +deploy: + @echo "Deploying project..." + rsync -rvzP --delete --chown 80:80 out/* $(RSYNC_TARGET) + .PHONY: clean clean: @echo "Cleaning project..." - rm -r public + rm -rf public diff --git a/templates/base.html b/templates/base.html index de01e9c..82f185e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -12,25 +12,37 @@ name="author" content="{{ page.author | default(value=config.author) }}" /> + {% if page.date %} - {% endif %} {% if page.extra.keywords %} + {% endif %} + + {% if page.extra.keywords %} - {% endif %} {% block title %} {% if page.title %} + {% endif %} + + {% block title %} + {% if page.title %} {{ page.title }} — {{ config.title }} + {% elif section.title %} + {{ section.title }} — {{ config.title }} {% else %} {{ config.title }} - {% endif %} {% endblock %} {% block description %} {% if - page.description %} + {% endif %} + {% endblock %} + + {% block description %} + {% if page.description %} {% elif page.summary %} {% else %} - {% endif %} {% endblock %} + {% endif %} + {% endblock %}