mirror of https://github.com/luizdepra/hugo-coder.git

John Feminella
09.10.2022 46561a663a6a255eb561ea78e94b5e6db46f1ba0
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>
3 files modified
1 files added
37 ■■■■■ changed files
layouts/_default/baseof.html 5 ●●●● patch | view | raw | blame | history
layouts/partials/head.html 26 ●●●●● patch | view | raw | blame | history
layouts/partials/home.html 2 ●●●●● patch | view | raw | blame | history
layouts/partials/home/extensions.html 4 ●●●● patch | view | raw | blame | history
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" }}
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" . }}
layouts/partials/home.html
@@ -6,4 +6,6 @@
    {{ partialCached "home/social.html" . }}
  </div>
  {{ partialCached "home/extensions.html" . }}
</section>
layouts/partials/home/extensions.html
New file
@@ -0,0 +1,4 @@
{{/*
You can add further theme extensions or customizations here if they should
appear in after the "about" section.
*/}}