Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Vimux/Binario.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimux <vimux@protonmail.com>2019-12-07 23:40:26 +0300
committervimux <vimux@protonmail.com>2019-12-07 23:40:26 +0300
commit965c3fa6999332cc2df01e1a5ae8613e3e9393de (patch)
tree31bf8415760f8e2e5e0424a426562b884e4d9293 /layouts
parent6dc14f2df37ed15d3d3f234a41fa5abdc5de33f6 (diff)
Store CSS as an asset file
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index e38640b..a5222ee 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -14,7 +14,9 @@
{{- if .Site.Params.twitter_cards }}
{{ template "_internal/twitter_cards.html" . }}
{{- end }}
- <link rel="stylesheet" href="{{ "css/main.css" | relURL }}">
+ {{- $cssMain := resources.Get "css/main.css" }}
+ {{- $style := $cssMain }}
+ <link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{- range .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ . | relURL }}">
{{- end }}