Parcourir la source

Fix #708 by restoring `<head>` to `baseof.html` with template structure (#710)

* Add home/extensions touchpoint

* Fix #708 by restoring <head> to baseof.html

* Update layouts/_default/baseof.html

Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
John Feminella il y a 3 ans
Parent
commit
46561a663a

+ 4 - 1
layouts/_default/baseof.html

@@ -1,6 +1,9 @@
 <!DOCTYPE html>
 <html lang="{{ .Site.Language.Lang }}">
-{{ partial "head.html" . }}
+  <head>
+    <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
+    {{ partial "head.html" . }}
+  </head>
 
 {{ $csClass := "colorscheme-light" }}
 {{ if eq .Site.Params.colorScheme "dark" }}

+ 11 - 15
layouts/partials/head.html

@@ -1,23 +1,19 @@
-<head>
-  {{ partial "head/meta-tags.html" . }}
+{{ partial "head/meta-tags.html" . }}
 
-  <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
+{{ if .Permalink }}
+<link rel="canonical" href="{{ .Permalink }}">
+{{ end }}
 
-  {{ if .Permalink }}
-  <link rel="canonical" href="{{ .Permalink }}">
-  {{ end }}
+{{ partialCached "head/theme-styles.html" . }}
 
-  {{ partialCached "head/theme-styles.html" . }}
+{{ partialCached "head/color-scheme.html" . }}
 
-  {{ partialCached "head/color-scheme.html" . }}
+{{ partialCached "head/custom-styles.html" . }}
 
-  {{ partialCached "head/custom-styles.html" . }}
+{{ partialCached "head/custom-icons.html" . }}
 
-  {{ partialCached "head/custom-icons.html" . }}
+{{ partial "head/alternative-output-formats.html" . }}
 
-  {{ partial "head/alternative-output-formats.html" . }}
+{{ partialCached "head/hugo-generator.html" . }}
 
-  {{ partialCached "head/hugo-generator.html" . }}
-
-  {{ partial "head/extensions.html" . }}
-</head>
+{{ partial "head/extensions.html" . }}

+ 2 - 0
layouts/partials/home.html

@@ -6,4 +6,6 @@
 
     {{ partialCached "home/social.html" . }}
   </div>
+
+  {{ partialCached "home/extensions.html" . }}
 </section>

+ 4 - 0
layouts/partials/home/extensions.html

@@ -0,0 +1,4 @@
+{{/*
+You can add further theme extensions or customizations here if they should
+appear in after the "about" section.
+*/}}