From 94e7d83999377c03e657e50c8c82e41953c3a8f1 Mon Sep 17 00:00:00 2001
From: Maciej BliziƄski <maciej.blizinski@gmail.com>
Date: Thu, 31 Oct 2024 12:21:51 +0000
Subject: [PATCH] feat: add `licensed` to the configuration

---
 layouts/partials/footer.html |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index c006dd6..cdd0f58 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,9 +1,14 @@
 <div class="split-credit">
-  <p>{{ .Site.Copyright | safeHTML }} - <a href="https://onepagelove.com/split" title="Split Template">Split Template</a> by <a href="https://onepagelove.com" title="One Page Love">One Page Love</a></p>
+  <p>{{ .Site.Copyright | safeHTML }}
+  {{ if not .Site.Params.licensed }}
+  &ndash; <a href="https://onepagelove.com/split" title="Split Template">Split Template</a> by <a href="https://onepagelove.com" title="One Page Love">One Page Love</a>
+  {{- end }}</p>
 
+  {{ if not .Site.Params.licensed }}
   {{ "<!--" | safeHTML }}
   {{ "To edit this credit you can remove the CC3.0 license for only $5 here: https://onepagelove.com/split" | safeHTML }}
   {{ "this really helps contribute towards us developing more templates and means the world to me!" | safeHTML }}
   {{ "Cheers, Rob (@robhope)" | safeHTML }}
   {{ "-->" | safeHTML }}
+  {{ end }}
 </div>

--
Gitblit v1.10.0