Skip to content

Commit

Permalink
feat: Version info
Browse files Browse the repository at this point in the history
Allow displaying website version on footer
  • Loading branch information
coolapso committed Jun 8, 2024
1 parent 5a8d8f0 commit f843fb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions exampleSite/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ languages:


params:
version: "dev"
author:
name: "coolapso"
defaultTheme: "dark"
Expand Down
3 changes: 2 additions & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
</div>
{{ end }}
<div class="footer__inner">
{{with .Site.Params.footer.bottomText}}
<div class="footer__content">
{{ if .Site.Params.version }}<span>{{ .Site.Params.version }}</span>{{ end }}
{{with .Site.Params.footer.bottomText}}
{{ range . }}<span>{{ . | safeHTML}}</span>{{ end }}
</div>
{{ end }}
Expand Down

0 comments on commit f843fb5

Please sign in to comment.