From 2e98d3d48c321deb101cd0b33c67d22adb6efee7a176c84e9f0d723bc7b08cdf Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 25 Aug 2023 00:00:00 +0000 Subject: Make copyright notice mandatory Requiring a copyright notice forces the user to make clear to readers what their rights are with the capsule/site content. This also makes templates simpler. --- layouts/_default/baseof.gmi | 6 ++---- layouts/_default/baseof.html | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/layouts/_default/baseof.gmi b/layouts/_default/baseof.gmi index 6d896a8..09cdbac 100644 --- a/layouts/_default/baseof.gmi +++ b/layouts/_default/baseof.gmi @@ -1,9 +1,7 @@ {{ partial "header.gmi" . }} -{{ block "main" . }}{{ end -}} -{{ if $.Site.Copyright }} +{{ block "main" . }}{{ end }} -{{ partial "footer.gmi" . -}} -{{ end }} \ No newline at end of file +{{ partial "footer.gmi" . }} \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 1e32ff9..a36bd49 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,9 +3,7 @@ {{ partial "head.html" . }} {{ partial "header.html" . }} - {{ block "main" . }}{{ end -}} - {{ if $.Site.Copyright }} - {{ partial "footer.html" . -}} - {{ end }} + {{ block "main" . }}{{ end }} + {{ partial "footer.html" . }} \ No newline at end of file -- cgit v1.2.3