From 8724977a64d20076509481f3ca4d6408ecfd1d7c Mon Sep 17 00:00:00 2001 From: "Joway.CI" Date: Sun, 10 Nov 2019 17:19:04 +0000 Subject: add staticPrefix --- layouts/partials/head.html | 10 +++++----- layouts/partials/scripts.html | 2 +- static/css/flexboxgrid-6.3.1.min.css | 1 + static/css/github-markdown.min.css | 1 + static/css/highlight/tomorrow.min.css | 1 + static/js/lazyload.min.js | 2 ++ theme.toml | 3 +++ 7 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 static/css/flexboxgrid-6.3.1.min.css create mode 100644 static/css/github-markdown.min.css create mode 100644 static/css/highlight/tomorrow.min.css create mode 100644 static/js/lazyload.min.js diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 1b1cceb..0071dfc 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -24,14 +24,14 @@ {{- end }} - + {{ if not .IsHome -}} - + href="{{ .Site.Params.staticPrefix }}{{ "css/github-markdown.min.css" | relURL }}" /> + {{- end }} - - + + diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 2e68f61..3685f61 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,7 +1,7 @@ {{ if and .Site.Params.lazyImage (not .IsHome) -}} - +