diff options
| author | Arun <me@arunmathaisk.in> | 2024-09-15 00:00:26 +0530 | 
|---|---|---|
| committer | Arun <me@arunmathaisk.in> | 2024-09-15 00:00:26 +0530 | 
| commit | e565f6afa20f81f75ff4fab1f29e1c672a33b3eb (patch) | |
| tree | c643aec40288bba69d4b36b292059d4a3e297313 /layouts/partials/footer.html | |
| parent | 974bc9f6ffa10d22c5d6f692fe79d71606bbb2d3 (diff) | |
feat: show generic footer
Diffstat (limited to 'layouts/partials/footer.html')
| -rw-r--r-- | layouts/partials/footer.html | 18 | 
1 files changed, 13 insertions, 5 deletions
| diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9f307e1..5e97056 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,8 +1,16 @@ -<p>Powered by -    <a href="https://gohugo.io/">Hugo</a> -    and -    <a href="https://github.com/tomfran/typo">tomfran/typo</a> -</p> +{{ if .Site.Params.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" . }} | 
