Skip to content

Commit

Permalink
Asset management #18
Browse files Browse the repository at this point in the history
  • Loading branch information
koirand committed Mar 26, 2019
1 parent edf4e92 commit f2117d7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Expand Up @@ -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 }}
8 changes: 5 additions & 3 deletions layouts/partials/head.html
Expand Up @@ -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 -->
Expand Down

0 comments on commit f2117d7

Please sign in to comment.