feat(footer): Added commit hash as build number and changed authors in footer
All checks were successful
ci / build (push) Successful in 55s
All checks were successful
ci / build (push) Successful in 55s
This commit is contained in:
parent
13a303095d
commit
a915c372db
2 changed files with 57 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ offlineSearch = true
|
|||
prism_syntax_highlighting = false
|
||||
|
||||
[params.copyright]
|
||||
authors = "IPCEIS-CIS Authors | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0) | "
|
||||
authors = "IPCEI-CIS eDF Development Team"
|
||||
from_year = 2024
|
||||
|
||||
# User interface configuration
|
||||
|
|
|
|||
56
layouts/partials/footer.html
Normal file
56
layouts/partials/footer.html
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{{ $links := .Site.Params.links }}
|
||||
<footer class="td-footer row d-print-none">
|
||||
<div class="container-fluid">
|
||||
<div class="row mx-md-2">
|
||||
{{ with $links }}
|
||||
<div class="td-footer__links-block col-12 col-sm-6 col-md-4 col-lg-2">
|
||||
<ul class="list-unstyled">
|
||||
{{ with index . "user"}}
|
||||
{{ template "footer-links-block" . }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="td-footer__links-block col-12 col-sm-6 col-md-4 col-lg-2">
|
||||
<ul class="list-unstyled">
|
||||
{{ with index . "developer"}}
|
||||
{{ template "footer-links-block" . }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ with .Site.GetPage "privacy-policy" }}
|
||||
<div class="td-footer__links-block col-12 col-sm-6 col-md-4 col-lg-2">
|
||||
<ul class="list-unstyled">
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ with .Site.GetPage "deprecation-policy" }}
|
||||
<div class="td-footer__links-block col-12 col-sm-6 col-md-4 col-lg-2">
|
||||
<ul class="list-unstyled">
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="row mx-md-2">
|
||||
<div class="td-footer__copyright-etc col-12 text-center">
|
||||
{{ with .Site.Params.copyright.authors }}
|
||||
<small class="text-white">© {{ with $.Site.Params.copyright.from_year }}{{ . }}-{{ end }}{{ now.Year }} {{ . }} | <a href="https://creativecommons.org/licenses/by/4.0" target="_blank">CC BY 4.0</a> | </small>
|
||||
{{ end }}
|
||||
{{ if .Site.Data.build_info }}
|
||||
<small class="text-white">Build: {{ .Site.Data.build_info.git_commit_short }} | </small>
|
||||
{{ end }}
|
||||
{{ if not .Site.Params.ui.footer_about_disable }}
|
||||
{{ with .Site.GetPage "/about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{{ define "footer-links-block" }}
|
||||
{{ range . }}
|
||||
<li><a {{ if .url }}href="{{ .url }}"{{ end }} {{ with .target }}target="{{ . }}"{{ end }}>{{ .name }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue