From e1bfdc2cda5101998683372868ef391498d58e1c Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Wed, 21 Apr 2021 15:49:32 -0700 Subject: [PATCH] add copyright to the pages.. --- content/media/css/custom.css | 4 ++++ layout/base.j2 | 5 +++-- layout/blog.j2 | 2 ++ layout/frontpage.j2 | 4 ++++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/content/media/css/custom.css b/content/media/css/custom.css index 59784a5..3890e51 100644 --- a/content/media/css/custom.css +++ b/content/media/css/custom.css @@ -31,6 +31,10 @@ ul.posts > li { text-indent: -1em; } +.copyright { + margin-top: 2em; +} + .small { font-size: 80%; } diff --git a/layout/base.j2 b/layout/base.j2 index ca9fd8b..36d44df 100644 --- a/layout/base.j2 +++ b/layout/base.j2 @@ -90,7 +90,6 @@ {% block main %} {% endblock main %} {% endblock container %} -
-
{% endblock content%} {% block js %} diff --git a/layout/blog.j2 b/layout/blog.j2 index de2e1b3..d413b41 100644 --- a/layout/blog.j2 +++ b/layout/blog.j2 @@ -53,3 +53,5 @@ {%- endblock %} + +{% block copyright -%}Copyright © {{ resource.meta.created|date_format("%Y") }} John-Mark Gurney{%- endblock %} diff --git a/layout/frontpage.j2 b/layout/frontpage.j2 index 9ed85d5..1edd567 100644 --- a/layout/frontpage.j2 +++ b/layout/frontpage.j2 @@ -30,3 +30,7 @@ {% endblock %} + +{% block copyright %} +Copyright © {{ time_now|date_format("%Y") }} John-Mark Gurney +{% endblock %}