add asset bundling, cache busting and fingerprinting to css and js
This commit is contained in:
parent
d54665763d
commit
6802a82d0d
9 changed files with 2590 additions and 5 deletions
|
|
@ -19,8 +19,13 @@
|
|||
<meta name="MobileOptimized" content="320" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<link rel="stylesheet" href="{{ "css/screen.css" | absURL }}" />
|
||||
<link rel="stylesheet" href="{{ "css/fonts.css" | absURL }}" type="text/css" />
|
||||
{{ $stylesheetNormalize := resources.Get "css/normalize.css" }}
|
||||
{{ $stylesheetFonts := resources.Get "css/fonts.css" }}
|
||||
{{ $stylesheetScreen := resources.Get "css/screen.css" }}
|
||||
{{ $stylesheet := slice $stylesheetNormalize $stylesheetFonts $stylesheetScreen | resources.Concat "css/style.css" | resources.Minify | resources.Fingerprint }}
|
||||
|
||||
<link rel="stylesheet" href="{{ $stylesheet.Permalink }}" type="text/css" integrity="{{ $stylesheet.Data.Integrity }}" />
|
||||
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="{{ "fork-awesome/css/fork-awesome.min.css" | absURL }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue