mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-09 10:50:34 -05:00
Asset management #18
This commit is contained in:
parent
edf4e926af
commit
f2117d7fcb
5 changed files with 6 additions and 4 deletions
|
@ -24,6 +24,6 @@
|
||||||
{{ $mark := resources.Get "js/jquery.mark.es6.min.js" }}
|
{{ $mark := resources.Get "js/jquery.mark.es6.min.js" }}
|
||||||
{{ $lunr := resources.Get "js/lunr.js" }}
|
{{ $lunr := resources.Get "js/lunr.js" }}
|
||||||
{{ $search := resources.Get "js/search.js" }}
|
{{ $search := resources.Get "js/search.js" }}
|
||||||
{{ $js := slice $jquery $mark $lunr $search | resources.Concat "js/bundle.js" | resources.Minify | resources.Fingerprint }}
|
{{ $js := slice $jquery $mark $lunr $search | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint }}
|
||||||
<script src="{{ $js.Permalink }}"></script>
|
<script src="{{ $js.Permalink }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -13,9 +13,11 @@
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico">
|
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico">
|
||||||
|
|
||||||
<!-- css -->
|
<!-- css -->
|
||||||
<link rel="stylesheet" href="/css/style.css">
|
{{ $style := resources.Get "css/style.css" }}
|
||||||
<link rel="stylesheet" href="/css/markdown.css">
|
{{ $markdown := resources.Get "css/markdown.css" }}
|
||||||
<link rel="stylesheet" href="/css/syntax-highlight.css">
|
{{ $syntaxHighlight := resources.Get "css/syntax-highlight.css" }}
|
||||||
|
{{ $css := slice $style $markdown $syntaxHighlight | resources.Concat "style.css" | resources.Minify | resources.Fingerprint }}
|
||||||
|
<link rel="stylesheet" href="{{ $css.Permalink }}">
|
||||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
|
||||||
|
|
||||||
<!-- custom css -->
|
<!-- custom css -->
|
||||||
|
|
Loading…
Reference in a new issue