mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-21 15:56:29 -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" }}
|
||||
{{ $lunr := resources.Get "js/lunr.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>
|
||||
{{ end }}
|
||||
|
|
|
@ -13,9 +13,11 @@
|
|||
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico">
|
||||
|
||||
<!-- css -->
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
<link rel="stylesheet" href="/css/markdown.css">
|
||||
<link rel="stylesheet" href="/css/syntax-highlight.css">
|
||||
{{ $style := resources.Get "css/style.css" }}
|
||||
{{ $markdown := resources.Get "css/markdown.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">
|
||||
|
||||
<!-- custom css -->
|
||||
|
|
Loading…
Reference in a new issue