diff options
author | Byeonggon Lee <gonny952@gmail.com> | 2018-12-05 06:06:51 +0300 |
---|---|---|
committer | Byeonggon Lee <gonny952@gmail.com> | 2018-12-05 06:07:14 +0300 |
commit | 4c31ea99684ab53d12a34961408201265b39ab76 (patch) | |
tree | e4642b19a0c675eede019dd8213dafecd51738e0 | |
parent | 2c49567e7ff87a1c322b53af1a1370dd22f00cf1 (diff) |
Use resources.Get
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | assets/css/hugo-apps-theme.css (renamed from static/css/hugo-apps-theme.css) | 0 | ||||
-rw-r--r-- | assets/css/hugo-apps-theme.scss (renamed from static/css/hugo-apps-theme.scss) | 0 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 4 |
4 files changed, 4 insertions, 1 deletions
@@ -0,0 +1 @@ +resources/ diff --git a/static/css/hugo-apps-theme.css b/assets/css/hugo-apps-theme.css index 2196a2d..2196a2d 100644 --- a/static/css/hugo-apps-theme.css +++ b/assets/css/hugo-apps-theme.css diff --git a/static/css/hugo-apps-theme.scss b/assets/css/hugo-apps-theme.scss index 8c927ab..8c927ab 100644 --- a/static/css/hugo-apps-theme.scss +++ b/assets/css/hugo-apps-theme.scss diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 389bd75..21066e3 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,7 +5,9 @@ <html> <head> <meta charset="utf-8"/> - <link rel="stylesheet" href="{{.Site.BaseURL}}/css/hugo-apps-theme.css"/> + {{ $theme := resources.Get "/css/hugo-apps-theme.css" }} + {{ $themeCSS := $theme | resources.Minify | resources.Fingerprint }} + <link rel="stylesheet" href="{{ $themeCSS.RelPermalink }}"> <meta name="viewport" content="width=device-width, initial-scale=1"/> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/default.min.css"/> <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js"></script> |