mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
fix busting javascript #47
This commit is contained in:
parent
2294a54b36
commit
9eb81efb44
4 changed files with 29 additions and 28 deletions
|
@ -13,6 +13,7 @@ defaultContentLanguageInSubdir= true
|
||||||
description = "Documentation for Hugo Learn Theme"
|
description = "Documentation for Hugo Learn Theme"
|
||||||
author = "Mathieu Cornic"
|
author = "Mathieu Cornic"
|
||||||
disableSearch = false # default to false
|
disableSearch = false # default to false
|
||||||
|
disableAssetBusting = false # default to false
|
||||||
ordersectionsby = "weight" # ordersectionsby = "title"
|
ordersectionsby = "weight" # ordersectionsby = "title"
|
||||||
|
|
||||||
[outputs]
|
[outputs]
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
<title>{{ .Scratch.Get "title" }}</title>
|
<title>{{ .Scratch.Get "title" }}</title>
|
||||||
{{ partial "style.html" . }}
|
{{ partial "style.html" . }}
|
||||||
|
|
||||||
<link href="{{"css/nucleus.css" | relLangURL}}" rel="stylesheet">
|
<link href="{{"css/nucleus.css" | relLangURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/font-awesome.min.css" | relLangURL}}" rel="stylesheet">
|
<link href="{{"css/font-awesome.min.css" | relLangURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/hybrid.css" | relLangURL}}" rel="stylesheet">
|
<link href="{{"css/hybrid.css" | relLangURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/featherlight.min.css" | relLangURL}}" rel="stylesheet">
|
<link href="{{"css/featherlight.min.css" | relLangURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/perfect-scrollbar.min.css" | relLangURL}}" rel="stylesheet">
|
<link href="{{"css/perfect-scrollbar.min.css" | relLangURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/theme.css" | relLangURL}}" rel="stylesheet">
|
<link href="{{"css/theme.css" | relLangURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/hugo-theme.css" | relLangURL}}" rel="stylesheet">
|
<link href="{{"css/hugo-theme.css" | relLangURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
:root #header + #content > #left > #rlblock_left {
|
:root #header + #content > #left > #rlblock_left {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
|
|
|
@ -52,20 +52,20 @@
|
||||||
<div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
|
<div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
|
||||||
<div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
|
<div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
|
||||||
</div>
|
</div>
|
||||||
<script src="{{"js/clipboard.min.js" | relURL}}"></script>
|
<script src="{{"js/clipboard.min.js" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
<script src="{{"js/perfect-scrollbar.min.js" | relURL}}"></script>
|
<script src="{{"js/perfect-scrollbar.min.js" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
<script src="{{"js/perfect-scrollbar.jquery.min.js" | relURL}}"></script>
|
<script src="{{"js/perfect-scrollbar.jquery.min.js" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
<script src="{{"js/jquery.sticky-kit.min.js" | relURL}}"></script>
|
<script src="{{"js/jquery.sticky-kit.min.js" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
<script src="{{"js/featherlight.min.js" | relURL}}"></script>
|
<script src="{{"js/featherlight.min.js" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
<script src="{{"js/html5shiv-printshiv.min.js" | relURL}}"></script>
|
<script src="{{"js/html5shiv-printshiv.min.js" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
<script src="{{"js/highlight.pack.js" | relURL}}"></script>
|
<script src="{{"js/highlight.pack.js" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
<script>hljs.initHighlightingOnLoad();</script>
|
<script>hljs.initHighlightingOnLoad();</script>
|
||||||
<script src="{{"js/modernizr.custom.71422.js" | relURL}}"></script>
|
<script src="{{"js/modernizr.custom.71422.js" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
<script src="{{"js/learn.js" | relURL}}"></script>
|
<script src="{{"js/learn.js" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
<script src="{{"js/hugo-learn.js" | relURL}}"></script>
|
<script src="{{"js/hugo-learn.js" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
|
|
||||||
<link href="{{"mermaid/mermaid.css" | relURL}}" type="text/css" rel="stylesheet" />
|
<link href="{{"mermaid/mermaid.css" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" type="text/css" rel="stylesheet" />
|
||||||
<script src="{{"mermaid/mermaid.js" | relURL}}"></script>
|
<script src="{{"mermaid/mermaid.js" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
<script>
|
<script>
|
||||||
mermaid.initialize({ startOnLoad: true });
|
mermaid.initialize({ startOnLoad: true });
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -8,15 +8,15 @@
|
||||||
{{ partial "favicon.html" . }}
|
{{ partial "favicon.html" . }}
|
||||||
<title>{{ .Title }} :: {{ .Site.Title }}</title>
|
<title>{{ .Title }} :: {{ .Site.Title }}</title>
|
||||||
|
|
||||||
<link href="{{"css/nucleus.css" | relURL}}" rel="stylesheet">
|
<link href="{{"css/nucleus.css" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/font-awesome.min.css" | relURL}}" rel="stylesheet">
|
<link href="{{"css/font-awesome.min.css" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/hybrid.css" | relURL}}" rel="stylesheet">
|
<link href="{{"css/hybrid.css" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/featherlight.min.css" | relURL}}" rel="stylesheet">
|
<link href="{{"css/featherlight.min.css" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/perfect-scrollbar.min.css" | relURL}}" rel="stylesheet">
|
<link href="{{"css/perfect-scrollbar.min.css" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/horsey.css" | relURL}}" rel="stylesheet">
|
<link href="{{"css/horsey.css" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/theme.css" | relURL}}" rel="stylesheet">
|
<link href="{{"css/theme.css" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<link href="{{"css/hugo-theme.css" | relURL}}" rel="stylesheet">
|
<link href="{{"css/hugo-theme.css" | relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||||
<script src="{{"js/jquery-2.x.min.js"| relURL}}"></script>
|
<script src="{{"js/jquery-2.x.min.js"| relURL}}{{ if not .Site.Params.disableAssetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
:root #header + #content > #left > #rlblock_left{
|
:root #header + #content > #left > #rlblock_left{
|
||||||
|
|
Loading…
Reference in a new issue