diff options
| -rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
| -rw-r--r-- | layouts/partials/footer.html | 19 | 
2 files changed, 15 insertions, 6 deletions
| diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 373e635..08a2d25 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -27,7 +27,7 @@      <footer>        {{ partial "footer.html" . }}      </footer> - +        </body>    <script> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9f307e1..e8f0096 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,8 +1,17 @@ -<p>Powered by -    <a href="https://gohugo.io/">Hugo</a> -    and -    <a href="https://github.com/tomfran/typo">tomfran/typo</a> -</p> +{{ $showFooter := default true .Site.Params.showFooter }} +{{ if $showFooter }} +    {{ if not .Site.Params.footerContent }} +    <p>Powered by +        <a href="https://gohugo.io/">Hugo</a> +        and +        <a href="https://github.com/tomfran/typo">tomfran/typo</a> +    </p> +    {{ end }} +     +    {{ with .Site.Params.footerContent }} +    <p>{{ . | markdownify }}</p> +    {{ end }} +{{ end }}  {{ if .Param "math" }}  {{ partialCached "math.html" . }} | 
