Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#25) use .Site.BaseURL to lcoate static assets #26

Merged
merged 1 commit into from
Dec 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions layouts/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
<title>{{ .Scratch.Get "title" }}</title>
{{ partial "style.html" . }}
<link href="/css/nucleus.css" rel="stylesheet">
<link href="/css/font-awesome.min.css" rel="stylesheet">
<link href="/css/hybrid.css" rel="stylesheet">
<link href="/css/featherlight.min.css" rel="stylesheet">
<link href="/css/perfect-scrollbar.min.css" rel="stylesheet">
<link href="/css/theme.css" rel="stylesheet">
<link href="/css/hugo-theme.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/nucleus.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/font-awesome.min.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/hybrid.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/featherlight.min.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/perfect-scrollbar.min.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/theme.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/hugo-theme.css" rel="stylesheet">
<style type="text/css">
:root #header + #content > #left > #rlblock_left {
display: none !important;
Expand Down Expand Up @@ -43,7 +43,7 @@ <h1>Error </h1>
<p>Woops. Looks like this page doesn't exist.</p>
<p></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>

Expand Down
14 changes: 7 additions & 7 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
<title>{{ .Scratch.Get "title" }}</title>
{{ partial "style.html" . }}
<link href="/css/nucleus.css" rel="stylesheet">
<link href="/css/font-awesome.min.css" rel="stylesheet">
<link href="/css/hybrid.css" rel="stylesheet">
<link href="/css/featherlight.min.css" rel="stylesheet">
<link href="/css/perfect-scrollbar.min.css" rel="stylesheet">
<link href="/css/theme.css" rel="stylesheet">
<link href="/css/hugo-theme.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/nucleus.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/font-awesome.min.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/hybrid.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/featherlight.min.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/perfect-scrollbar.min.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/theme.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/hugo-theme.css" rel="stylesheet">
<style type="text/css">
:root #header + #content > #left > #rlblock_left {
display:none !important;
Expand Down
20 changes: 10 additions & 10 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -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="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
</div>
<script src="/js/clipboard.min.js"></script>
<script src="/js/perfect-scrollbar.min.js"></script>
<script src="/js/perfect-scrollbar.jquery.min.js"></script>
<script src="/js/jquery.sticky-kit.min.js"></script>
<script src="/js/featherlight.min.js"></script>
<script src="/js/html5shiv-printshiv.min.js"></script>
<script src="/js/highlight.pack.js"></script>
<script src="{{ .Site.BaseURL }}js/clipboard.min.js"></script>
<script src="{{ .Site.BaseURL }}js/perfect-scrollbar.min.js"></script>
<script src="{{ .Site.BaseURL }}js/perfect-scrollbar.jquery.min.js"></script>
<script src="{{ .Site.BaseURL }}js/jquery.sticky-kit.min.js"></script>
<script src="{{ .Site.BaseURL }}js/featherlight.min.js"></script>
<script src="{{ .Site.BaseURL }}js/html5shiv-printshiv.min.js"></script>
<script src="{{ .Site.BaseURL }}js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="/js/modernizr.custom.71422.js"></script>
<script src="/js/learn.js"></script>
<script src="/js/hugo-learn.js"></script>
<script src="{{ .Site.BaseURL }}js/modernizr.custom.71422.js"></script>
<script src="{{ .Site.BaseURL }}js/learn.js"></script>
<script src="{{ .Site.BaseURL }}js/hugo-learn.js"></script>
{{ partial "script.html" . }}
</body>
</html>
18 changes: 9 additions & 9 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
{{ 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>
<link href="/css/nucleus.css" rel="stylesheet">
<link href="/css/font-awesome.min.css" rel="stylesheet">
<link href="/css/hybrid.css" rel="stylesheet">
<link href="/css/featherlight.min.css" rel="stylesheet">
<link href="/css/perfect-scrollbar.min.css" rel="stylesheet">
<link href="/css/horsey.css" rel="stylesheet">
<link href="/css/theme.css" rel="stylesheet">
<link href="/css/hugo-theme.css" rel="stylesheet">
<script src="/js/jquery-2.x.min.js"></script>
<link href="{{ .Site.BaseURL }}css/nucleus.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/font-awesome.min.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/hybrid.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/featherlight.min.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/perfect-scrollbar.min.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/horsey.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/theme.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/hugo-theme.css" rel="stylesheet">
<script src="{{ .Site.BaseURL }}js/jquery-2.x.min.js"></script>
<style type="text/css">:root #header + #content > #left > #rlblock_left
{display:none !important;}</style>
{{ partial "style.html" . }}
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<input id="search-by" type="text" placeholder="Search">
<span data-search-clear=""><i class="fa fa-close"></i></span>
</div>
<script type="text/javascript" src="/js/lunr.min.js"></script>
<script type="text/javascript" src="/js/horsey.js"></script>
<script type="text/javascript" src="{{ .Site.BaseURL }}js/lunr.min.js"></script>
<script type="text/javascript" src="{{ .Site.BaseURL }}js/horsey.js"></script>
<script type="text/javascript">
var baseurl = "{{ .Site.BaseURL }}";
</script>
<script type="text/javascript" src="/js/search.js"></script>
<script type="text/javascript" src="{{ .Site.BaseURL }}js/search.js"></script>