Ver código fonte

feat: support custom footers (#2335)

Support custom footer in site folder at `layouts/partials/hooks/footer.html`

For example, can be used to add columns of nav links to the footer.
Alexander Zhang 3 anos atrás
pai
commit
6f46a68181

+ 2 - 0
wowchemy/layouts/partials/hooks/footer.html

@@ -0,0 +1,2 @@
+{{/* Override this file to add a custom footer to every page. */}}
+{{/* This partial is included in `layouts/partials/site_footer.html`. */}}

+ 2 - 0
wowchemy/layouts/partials/site_footer.html

@@ -1,5 +1,7 @@
 <footer class="site-footer">
 
+  {{ partial "hooks/footer" . }}
+
   {{ if .IsTranslated | and site.Params.footer.show_translations }}
     <div class="powered-by d-flex flex-wrap pb-2 justify-content-center">
       <div class="p-2 font-weight-bold"><i class="fas fa-globe pr-1" aria-hidden="true"></i>{{ i18n "languages" }}:</div>