diff options
| author | Francesco Tomaselli <tomaselli.fr@gmail.com> | 2024-08-13 19:22:12 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-13 19:22:12 +0200 | 
| commit | 7459828ba7abe921084dc88f8162be46197f7e77 (patch) | |
| tree | 4dc1c531093c24ea9a6561d30a03879ae87126e0 /layouts | |
| parent | fcb9e7b4601203c3d9a0ef455a3727502b3e3aa0 (diff) | |
| parent | fcbc8882f28293ab0e2048d432cab42778479244 (diff) | |
Merge branch 'main' into main
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/partials/head.html | 4 | ||||
| -rw-r--r-- | layouts/partials/header.html | 5 | 
2 files changed, 7 insertions, 2 deletions
| diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 8f098d1..482d7e9 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,10 @@  <meta charset="utf-8">  <meta name="viewport" content="width=device-width"> +{{ with .OutputFormats.Get "rss" -}} +  {{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} +{{ end }} +  {{- if .IsHome -}}  <meta name="description" content="{{ site.Params.Description }}" />  {{- else -}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index b96fd83..bd17f38 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -11,9 +11,10 @@          {{ with site.Params.menu }}          {{ range . }} -        <p class="small {{ if eq .url $currentPage.Path }} bold {{end}}"> +       +        <p class="small {{ if eq .name (lower $currentPage.Name) }} bold {{end}}">              <a href="{{ .url }}" {{ if and (isset . "newTab") .newTab }}target="_blank" rel="noopener noreferrer"{{ end }}> -                /{{ .name }} +                /{{.name }}              </a>          </p>          {{ end }} | 
