assets: assets to proper location

This commit is contained in:
Aditya Telange 2020-07-21 14:25:56 +05:30
parent 15d7a4aabd
commit 118bf1345e
5 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@
<footer class="footer">
{{- partial "footer.html" . }}
</footer>
{{ $highlight := resources.Get "highlight.min.js" | minify | fingerprint}}
{{ $highlight := resources.Get "js/highlight.min.js" | minify | fingerprint}}
<script src="{{ $highlight.Permalink }}" integrity="{{ $highlight.Data.Integrity }}"></script>
<script>
hljs.initHighlightingOnLoad();

View File

@ -12,7 +12,7 @@
<meta name="author" content="{{ .Site.Params.author }}">
{{- end }}
<!-- Styles -->
{{ $anoldhope := resources.Get "an-old-hope.min.css" | minify }}
{{ $anoldhope := resources.Get "css/an-old-hope.min.css" | minify }}
{{ $theme := resources.Get "css/theme-vars.css" | minify }}
{{ $reset := resources.Get "css/reset.css" | minify }}
{{ $header := resources.Get "css/header.css" | minify }}
@ -22,7 +22,7 @@
{{ $footer := resources.Get "css/footer.css" | minify }}
{{ $404 := resources.Get "css/404.css" | minify }}
{{ $style := slice $theme $reset $header $main $postentry $postsingle $footer $404 | resources.Concat "stylesheet.css" | minify }}
{{ $stylesheet := slice $anoldhope $style | resources.Concat "stylesheet.css" | minify | fingerprint }}
{{ $stylesheet := slice $anoldhope $style | resources.Concat "css/stylesheet.css" | minify | fingerprint }}
<link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="stylesheet">
<link href="{{ "custom.css" | absURL }}" rel="stylesheet">
<!-- Favicons -->
@ -41,6 +41,6 @@
{{- end }}
<!-- Script -->
{{- if $.Site.Params.SetThemeAuto -}}
{{ $settheme := resources.Get "set-theme.js" | minify }}
{{ $settheme := resources.Get "js/set-theme.js" | minify }}
<script src="{{ $settheme.Permalink }}"></script>
{{- end -}}