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
---
tests/exampleSiteWithVideo/hugo.toml | 3 +++
tests/exampleSiteWithImage/hugo.toml | 3 +++
layouts/partials/footer.html | 7 ++++++-
3 files changed, 12 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 }}
+ – <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>
diff --git a/tests/exampleSiteWithImage/hugo.toml b/tests/exampleSiteWithImage/hugo.toml
index de522ab..e887dea 100644
--- a/tests/exampleSiteWithImage/hugo.toml
+++ b/tests/exampleSiteWithImage/hugo.toml
@@ -13,6 +13,9 @@
# Copyright
copyright = "©2024 Your Name"
+# Whether you purchased the license from the author.
+licensed = false
+
[services]
[services.googleAnalytics]
# Enter your tracking code to enable Google Analytics
diff --git a/tests/exampleSiteWithVideo/hugo.toml b/tests/exampleSiteWithVideo/hugo.toml
index 0c8d8cb..45063c1 100644
--- a/tests/exampleSiteWithVideo/hugo.toml
+++ b/tests/exampleSiteWithVideo/hugo.toml
@@ -13,6 +13,9 @@
# Copyright
copyright = "©2024 Your Name"
+# Whether you purchased the license from the author.
+licensed = false
+
[services]
[services.googleAnalytics]
# Enter your tracking code to enable Google Analytics
--
Gitblit v1.10.0