From 7f391e070f69ecf01ade7916c0f83df099b11d79 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 27 Apr 2022 00:56:19 +0200 Subject: Reformat a bit layout structure --- layouts/partials/head.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'layouts/partials/head.html') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 51ec8e3..be1f666 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,3 +1,4 @@ +{{/* */}} {{- $description := print .Params.Description -}} {{- if or .IsHome (eq .Params.Description "") (not .Params.Description) -}} @@ -5,11 +6,13 @@ {{- end -}} {{- $author := print .Site.Author.name -}} - {{- if .Params.author -}}{{ $author = .Params.author }}{{- end -}} + {{- if .Params.author -}}{{ $author = .Params.author }}{{- end }} + + {{ block "title" . }}{{ with .Params.Title }}{{ . }} - {{ end }}{{ .Site.Title }}{{ end }} {{ hugo.Generator }} @@ -37,12 +40,9 @@ - - {{- $sass := resources.Get "sass/style.scss" }} - {{- $style := $sass | resources.ToCSS | resources.Minify | resources.Fingerprint }} - + {{ partial "styles.html" . -}} + {{ partial "scripts.html" . -}} - -- cgit v1.2.3