Pārlūkot izejas kodu

feat: namespace footer

See #1873
Mario Zigliotto 4 gadi atpakaļ
vecāks
revīzija
c055788cab
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      wowchemy/layouts/partials/site_footer.html

+ 3 - 1
wowchemy/layouts/partials/site_footer.html

@@ -19,7 +19,9 @@
   {{ partial "site_footer_license" . }}
 
   <p class="powered-by">
-    {{ if not site.Params.i_am_a_sponsor }}
+    {{ $is_sponsor := site.Params.i_am_a_sponsor | default false }}
+    {{ $hide_published_with_footer := site.Params.power_ups.hide_published_with | default true }}
+    {{ if not (and $is_sponsor $hide_published_with_footer) }}
     Published with
     <a href="https://wowchemy.com" target="_blank" rel="noopener">Wowchemy</a>  —
     the free, <a href="https://github.com/wowchemy/wowchemy-hugo-modules" target="_blank" rel="noopener">