mirror of https://github.com/escalate/hugo-split-theme.git

Maciej Bliziński
25.44.2024 94e7d83999377c03e657e50c8c82e41953c3a8f1
feat: add `licensed` to the configuration

I purchased a license from the author and I would like to remove the
original copyright note. This new flag allows to do it without having to
edit the theme.
3 files modified
13 ■■■■■ changed files
layouts/partials/footer.html 7 ●●●● patch | view | raw | blame | history
tests/exampleSiteWithImage/hugo.toml 3 ●●●●● patch | view | raw | blame | history
tests/exampleSiteWithVideo/hugo.toml 3 ●●●●● patch | view | raw | blame | history
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>
tests/exampleSiteWithImage/hugo.toml
@@ -13,6 +13,9 @@
# Copyright
copyright = "&copy;2024 Your Name"
# Whether you purchased the license from the author.
licensed = false
[services]
  [services.googleAnalytics]
    # Enter your tracking code to enable Google Analytics
tests/exampleSiteWithVideo/hugo.toml
@@ -13,6 +13,9 @@
# Copyright
copyright = "&copy;2024 Your Name"
# Whether you purchased the license from the author.
licensed = false
[services]
  [services.googleAnalytics]
    # Enter your tracking code to enable Google Analytics