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

github.com/de-souza/hugo-flex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorde-souza <43355143+de-souza@users.noreply.github.com>2019-08-26 12:32:04 +0300
committerde-souza <43355143+de-souza@users.noreply.github.com>2019-08-26 12:32:04 +0300
commit8c6fc0eb1ccfd98ab077f07422ee8e5c706426eb (patch)
tree06fe060b5116ef04180a3854ef7a1573fb698fe4 /layouts/_default/baseof.html
parent43a81d15fa41a3b508d32bc2df121518ba254876 (diff)
Rename preload block to make its function clearer
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index a086e2e..cc79335 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,6 +1,3 @@
-{{ block "preload" . -}}
-{{ with .Content }}{{ end -}}
-{{ end -}}
<!DOCTYPE html>
<html lang="{{ site.LanguageCode }}">
<head>
@@ -20,7 +17,8 @@
{{ range .AlternativeOutputFormats }}
{{ printf "<link rel=%q type=%q href=%q title=%q>" .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
{{ end }}
- {{ resources.Get "css/base.temp.css" | resources.ExecuteAsTemplate "css/base.css" . | minify | fingerprint | .Page.Scratch.SetInMap "css" "base"}}
+ {{ block "loadresources" . }}{{ with .Content }}{{ end }}{{ end }}
+ {{ resources.Get "css/base.temp.css" | resources.ExecuteAsTemplate "css/base.css" . | minify | fingerprint | .Page.Scratch.SetInMap "css" "base" }}
{{ range .Scratch.GetSortedMapValues "css" }}
<link rel="stylesheet" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{ end }}