Minor Updates

Signed-off-by: GitHub Action <action@github.com>
This commit is contained in:
GitHub Action
2024-08-15 16:07:32 +00:00
parent 5d7becd0ee
commit 3d8790e329
3 changed files with 8 additions and 2 deletions

View File

@ -8,7 +8,7 @@
{{- partial "site-meta.html" . -}}
{{ $author := (.Params.author | default .Site.Params.author.name) -}}<meta name="author" content="{{ $author }}">
{{- with .Page.Params.description | default .Site.Params.description -}}<meta name="description" content="{{.}}">{{- end -}}
{{- partial "structured-data.html" . -}}
{{- partial "structure-extra.html" . -}}
<title>{{.Title}}</title>
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Title | safeHTML }}

View File

@ -16,7 +16,7 @@
{{- with .Site.Params.socialLinks -}}
<span class="hdr-social hide-in-mobile">{{- partialCached "social-icons.html" . -}}</span>
{{- end -}}
{{- if and (not (eq .Site.Params.shareSocial nil)) (.Site.Params.shareSocial) -}}{{- partial "social-share.html" . -}}{{- end -}}
{{- if and (not (eq .Site.Params.shareSocial nil)) (.Site.Params.shareSocial) (templates.Exists "partials/social-share.html") -}}{{- partial "social-share.html" . -}}{{- end -}}
<button id="menu-btn" class="hdr-btn" title="{{i18n "menu"}}">{{- partial "svg.html" (dict "context" . "name" "menuBtn") -}}</button>
</div>
</div>

View File

@ -0,0 +1,6 @@
{{/* We use some Hugo built-in templates, you can find their source here: */}}
{{/* https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates */}}
{{- template "_internal/schema.html" . -}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}