mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-19 03:10:24 +00:00
(#25) use .Site.BaseURL to lcoate static assets
This commit is contained in:
parent
31bb6502e4
commit
994e6b1f75
5 changed files with 37 additions and 37 deletions
|
@ -5,13 +5,13 @@
|
||||||
<meta charset="utf-8"> {{ partial "meta.html" . }} {{ partial "favicon.html" . }} {{ .Scratch.Add "title" "" }}{{ if isset .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
|
<meta charset="utf-8"> {{ partial "meta.html" . }} {{ partial "favicon.html" . }} {{ .Scratch.Add "title" "" }}{{ if isset .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
|
||||||
<title>{{ .Scratch.Get "title" }}</title>
|
<title>{{ .Scratch.Get "title" }}</title>
|
||||||
{{ partial "style.html" . }}
|
{{ partial "style.html" . }}
|
||||||
<link href="/css/nucleus.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/nucleus.css" rel="stylesheet">
|
||||||
<link href="/css/font-awesome.min.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/font-awesome.min.css" rel="stylesheet">
|
||||||
<link href="/css/hybrid.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/hybrid.css" rel="stylesheet">
|
||||||
<link href="/css/featherlight.min.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/featherlight.min.css" rel="stylesheet">
|
||||||
<link href="/css/perfect-scrollbar.min.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/perfect-scrollbar.min.css" rel="stylesheet">
|
||||||
<link href="/css/theme.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/theme.css" rel="stylesheet">
|
||||||
<link href="/css/hugo-theme.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/hugo-theme.css" 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;
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
<p>Woops. Looks like this page doesn't exist.</p>
|
<p>Woops. Looks like this page doesn't exist.</p>
|
||||||
<p></p>
|
<p></p>
|
||||||
<p><a href="{{.Site.BaseURL}}">Go to homepage</a></p>
|
<p><a href="{{.Site.BaseURL}}">Go to homepage</a></p>
|
||||||
<p><img src="/images/gopher-404.jpg" style="width:50%"></img></p>
|
<p><img src="{{ .Site.BaseURL }}images/gopher-404.jpg" style="width:50%"></img></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -7,13 +7,13 @@
|
||||||
{{ .Scratch.Add "title" "" }}{{ if isset .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
|
{{ .Scratch.Add "title" "" }}{{ if isset .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
|
||||||
<title>{{ .Scratch.Get "title" }}</title>
|
<title>{{ .Scratch.Get "title" }}</title>
|
||||||
{{ partial "style.html" . }}
|
{{ partial "style.html" . }}
|
||||||
<link href="/css/nucleus.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/nucleus.css" rel="stylesheet">
|
||||||
<link href="/css/font-awesome.min.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/font-awesome.min.css" rel="stylesheet">
|
||||||
<link href="/css/hybrid.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/hybrid.css" rel="stylesheet">
|
||||||
<link href="/css/featherlight.min.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/featherlight.min.css" rel="stylesheet">
|
||||||
<link href="/css/perfect-scrollbar.min.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/perfect-scrollbar.min.css" rel="stylesheet">
|
||||||
<link href="/css/theme.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/theme.css" rel="stylesheet">
|
||||||
<link href="/css/hugo-theme.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/hugo-theme.css" 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;
|
||||||
|
|
|
@ -14,17 +14,17 @@
|
||||||
<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"></script>
|
<script src="{{ .Site.BaseURL }}js/clipboard.min.js"></script>
|
||||||
<script src="/js/perfect-scrollbar.min.js"></script>
|
<script src="{{ .Site.BaseURL }}js/perfect-scrollbar.min.js"></script>
|
||||||
<script src="/js/perfect-scrollbar.jquery.min.js"></script>
|
<script src="{{ .Site.BaseURL }}js/perfect-scrollbar.jquery.min.js"></script>
|
||||||
<script src="/js/jquery.sticky-kit.min.js"></script>
|
<script src="{{ .Site.BaseURL }}js/jquery.sticky-kit.min.js"></script>
|
||||||
<script src="/js/featherlight.min.js"></script>
|
<script src="{{ .Site.BaseURL }}js/featherlight.min.js"></script>
|
||||||
<script src="/js/html5shiv-printshiv.min.js"></script>
|
<script src="{{ .Site.BaseURL }}js/html5shiv-printshiv.min.js"></script>
|
||||||
<script src="/js/highlight.pack.js"></script>
|
<script src="{{ .Site.BaseURL }}js/highlight.pack.js"></script>
|
||||||
<script>hljs.initHighlightingOnLoad();</script>
|
<script>hljs.initHighlightingOnLoad();</script>
|
||||||
<script src="/js/modernizr.custom.71422.js"></script>
|
<script src="{{ .Site.BaseURL }}js/modernizr.custom.71422.js"></script>
|
||||||
<script src="/js/learn.js"></script>
|
<script src="{{ .Site.BaseURL }}js/learn.js"></script>
|
||||||
<script src="/js/hugo-learn.js"></script>
|
<script src="{{ .Site.BaseURL }}js/hugo-learn.js"></script>
|
||||||
{{ partial "script.html" . }}
|
{{ partial "script.html" . }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -8,15 +8,15 @@
|
||||||
{{ partial "favicon.html" . }}
|
{{ partial "favicon.html" . }}
|
||||||
{{ .Scratch.Add "title" "" }}{{ if isset .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
|
{{ .Scratch.Add "title" "" }}{{ if isset .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
|
||||||
<title>{{ .Scratch.Get "title" }}</title>
|
<title>{{ .Scratch.Get "title" }}</title>
|
||||||
<link href="/css/nucleus.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/nucleus.css" rel="stylesheet">
|
||||||
<link href="/css/font-awesome.min.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/font-awesome.min.css" rel="stylesheet">
|
||||||
<link href="/css/hybrid.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/hybrid.css" rel="stylesheet">
|
||||||
<link href="/css/featherlight.min.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/featherlight.min.css" rel="stylesheet">
|
||||||
<link href="/css/perfect-scrollbar.min.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/perfect-scrollbar.min.css" rel="stylesheet">
|
||||||
<link href="/css/horsey.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/horsey.css" rel="stylesheet">
|
||||||
<link href="/css/theme.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/theme.css" rel="stylesheet">
|
||||||
<link href="/css/hugo-theme.css" rel="stylesheet">
|
<link href="{{ .Site.BaseURL }}css/hugo-theme.css" rel="stylesheet">
|
||||||
<script src="/js/jquery-2.x.min.js"></script>
|
<script src="{{ .Site.BaseURL }}js/jquery-2.x.min.js"></script>
|
||||||
<style type="text/css">:root #header + #content > #left > #rlblock_left
|
<style type="text/css">:root #header + #content > #left > #rlblock_left
|
||||||
{display:none !important;}</style>
|
{display:none !important;}</style>
|
||||||
{{ partial "style.html" . }}
|
{{ partial "style.html" . }}
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
<input id="search-by" type="text" placeholder="Search">
|
<input id="search-by" type="text" placeholder="Search">
|
||||||
<span data-search-clear=""><i class="fa fa-close"></i></span>
|
<span data-search-clear=""><i class="fa fa-close"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="/js/lunr.min.js"></script>
|
<script type="text/javascript" src="{{ .Site.BaseURL }}js/lunr.min.js"></script>
|
||||||
<script type="text/javascript" src="/js/horsey.js"></script>
|
<script type="text/javascript" src="{{ .Site.BaseURL }}js/horsey.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var baseurl = "{{ .Site.BaseURL }}";
|
var baseurl = "{{ .Site.BaseURL }}";
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="/js/search.js"></script>
|
<script type="text/javascript" src="{{ .Site.BaseURL }}js/search.js"></script>
|
||||||
|
|
Loading…
Reference in a new issue