Skip to content

Commit

Permalink
Tidy up footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaosvex committed Sep 15, 2024
1 parent 350ca03 commit 314cb61
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions layouts/partials/footer/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{- $ThemeVersion := "3.27.0" -}}
<footer class="site-footer">
<section class="copyright">
&copy;
{{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
{{ .Site.Params.footer.since }} -
{{ end }}
{{ now.Format "2006" }} {{ default .Site.Title .Site.Copyright }}
</section>

<section class="powerby">
{{ with .Site.Params.footer.customText }}
{{ . | safeHTML }} <br/>
{{ end }}

{{- $Generator := `<a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a>` -}}
{{- $Theme := printf `<b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="%s">Stack</a></b>` $ThemeVersion -}}
{{- $DesignedBy := `<a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a>, customised by Chaosvex, powered by <a href="https://gohugo.io/">Hugo</a>` -}}

{{ T "footer.designedBy" (dict "Theme" $Theme "DesignedBy" $DesignedBy "DesignedBy" $DesignedBy) | safeHTML }}
</section>
</footer>

0 comments on commit 314cb61

Please sign in to comment.