Merge pull request #24 from arunmathaisk/main

feat: Content License and Copyright holder as Footer
This commit is contained in:
Francesco Tomaselli 2024-09-17 22:48:28 +02:00 committed by GitHub
commit eaf952c8c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 6 deletions

View File

@ -27,7 +27,7 @@
<footer> <footer>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
</footer> </footer>
</body> </body>
<script> <script>

View File

@ -1,8 +1,17 @@
<p>Powered by {{ $showFooter := default true .Site.Params.showFooter }}
<a href="https://gohugo.io/">Hugo</a> {{ if $showFooter }}
and {{ if not .Site.Params.footerContent }}
<a href="https://github.com/tomfran/typo">tomfran/typo</a> <p>Powered by
</p> <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" }} {{ if .Param "math" }}
{{ partialCached "math.html" . }} {{ partialCached "math.html" . }}