Browse Source
refactor scripts and improve copyright See merge request maxlefou/hugo.386!4pull/1/head
Max le Fou
4 years ago
6 changed files with 59 additions and 38 deletions
@ -0,0 +1,15 @@ |
|||
|
|||
{{ with .Site.Params.Copyright.Prefix }} |
|||
{{ . | markdownify }} | |
|||
{{end}} |
|||
© |
|||
{{ with .Site.Params.copyright.url }}<a href="{{ . }}" target="_blank">{{ end }} |
|||
{{ .Site.Params.copyright.name }} |
|||
{{ with .Site.Params.copyright.url }}</a>{{ end }} |
|||
<span id="thisyear">2020</span> |
|||
{{ with .Site.Params.Copyright.Suffix }} |
|||
| {{ . | markdownify }} |
|||
{{end}} |
|||
{{ if isset .Site.Params "showhugo" }} |
|||
| {{ i18n "builton" }} <a href="//gohugo.io" target="_blank">Hugo</a> |
|||
{{ end }} |
@ -0,0 +1,30 @@ |
|||
<link rel="stylesheet" href="{{ "/css/bootstrap.css" | relURL }}"> |
|||
<link rel="stylesheet" href="{{ "/css/bootstrap-responsive.css" | relURL }}"> |
|||
<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}"> |
|||
<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…
Reference in new issue