Browse Source

license

main
Hendrik Langer 5 years ago
parent
commit
eff4045d58
  1. 2
      config.toml
  2. 51
      layouts/partials/footer.html

2
config.toml

@ -21,6 +21,8 @@ preserveTaxonomyNames = true
# The url to use as link in the copyright name in the footer. Leave empty to use none.
copyrighturl = "/about/"
licenseurl = "https://dev.xd0.de/hendrik/h3ndrik.de/raw/branch/master/LICENSE"
# Show the "built on Hugo" disclaimer
#showhugo = true

51
layouts/partials/footer.html

@ -0,0 +1,51 @@
<footer class="container">
<hr class="soften">
<p>
&copy;
{{ with .Site.Params.licenseurl }}<a href="{{ . }}">{{ end }}
{{ .Params.License }}
{{ with .Site.Params.licenseurl }}</a>{{ end }}
{{ with .Site.Params.copyrighturl }}<a href="{{ . }}">{{ end }}
{{ .Site.Params.copyrightname }}
{{ with .Site.Params.copyrighturl }}</a>{{ end }}
<span id="thisyear">2020</span>
{{ if isset .Site.Params "showhugo" }}
| {{ i18n "builton" }} <a href="//gohugo.io" target="_blank">Hugo</a>
{{ end }}
</p>
<p class="text-center">
{{ with .Site.Params.facebook }}<a href="{{ . }}">Facebook</a> {{ end }}
{{ with .Site.Params.twitter }}<a href="{{ . }}">Twitter</a> {{ end }}
{{ with .Site.Params.linkedin }}<a href="{{ . }}">Linkedin</a> {{ end }}
{{ with .Site.Params.github }}<a href="{{ . }}">GitHub</a> {{ end }}
{{ with .Site.Params.gitlab }}<a href="{{ . }}">GitLab</a>{{ end }}
</p>
</footer>
<script src="{{ "/js/jquery.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-386.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-transition.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-alert.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-modal.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-dropdown.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-scrollspy.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-tab.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-tooltip.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-popover.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-button.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-collapse.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-carousel.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-typeahead.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-affix.js" | relURL }}"></script>
<script>
_386 = {
fastLoad:{{ .Site.Params.loadfastload }},
onePass:{{ .Site.Params.loadonepass }},
speedFactor:{{ .Site.Params.loadspeedfactor }}
};
// Free updated script to get the actual year !! no more document.write or stuff!!
function ThisYear() {
document.getElementById('thisyear').innerHTML = new Date().getFullYear();
};
</script>
Loading…
Cancel
Save