mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-28 07:45:51 -05:00
Remove not required tailing slashes for meta
, link
(#862)
This commit is contained in:
parent
363756ffee
commit
09921bb542
@ -12,25 +12,25 @@
|
|||||||
|
|
||||||
{{- /* Meta */}}
|
{{- /* Meta */}}
|
||||||
{{- if .IsHome }}
|
{{- if .IsHome }}
|
||||||
{{ with site.Params.keywords -}}<meta name="keywords" content="{{- range $i, $e := . }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}" />{{ end }}
|
{{ with site.Params.keywords -}}<meta name="keywords" content="{{- range $i, $e := . }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}">{{ end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
<meta name="keywords" content="{{ if .Params.keywords -}}
|
<meta name="keywords" content="{{ if .Params.keywords -}}
|
||||||
{{- range $i, $e := .Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} {{- else }}
|
{{- range $i, $e := .Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} {{- else }}
|
||||||
{{- range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} {{- end -}}" />
|
{{- range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} {{- end -}}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<meta name="description" content="{{- with .Description }}{{ . }}{{- else }}{{- if or .IsPage .IsSection}}
|
<meta name="description" content="{{- with .Description }}{{ . }}{{- else }}{{- if or .IsPage .IsSection}}
|
||||||
{{- .Summary | default (printf "%s - %s" .Title site.Title) }}{{- else }}
|
{{- .Summary | default (printf "%s - %s" .Title site.Title) }}{{- else }}
|
||||||
{{- with site.Params.description }}{{ . }}{{- end }}{{- end }}{{- end -}}">
|
{{- with site.Params.description }}{{ . }}{{- end }}{{- end }}{{- end -}}">
|
||||||
<meta name="author" content="{{ (partial "author.html" . ) }}">
|
<meta name="author" content="{{ (partial "author.html" . ) }}">
|
||||||
<link rel="canonical" href="{{ if .Params.canonicalURL -}} {{ trim .Params.canonicalURL " " }} {{- else -}} {{ .Permalink }} {{- end }}" />
|
<link rel="canonical" href="{{ if .Params.canonicalURL -}} {{ trim .Params.canonicalURL " " }} {{- else -}} {{ .Permalink }} {{- end }}">
|
||||||
{{- if site.Params.analytics.googlesiteVerificationTag }}
|
{{- if site.Params.analytics.googlesiteVerificationTag }}
|
||||||
<meta name="google-site-verification" content="{{ site.Params.analytics.googlesiteVerificationTag }}" />
|
<meta name="google-site-verification" content="{{ site.Params.analytics.googlesiteVerificationTag }}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if site.Params.analytics.yandexsiteVerificationTag }}
|
{{- if site.Params.analytics.yandexsiteVerificationTag }}
|
||||||
<meta name="yandex-verification" content="{{ site.Params.analytics.yandexsiteVerificationTag }}" />
|
<meta name="yandex-verification" content="{{ site.Params.analytics.yandexsiteVerificationTag }}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if site.Params.analytics.bingsiteVerificationTag }}
|
{{- if site.Params.analytics.bingsiteVerificationTag }}
|
||||||
<meta name="msvalidate.01" content="{{ site.Params.analytics.bingsiteVerificationTag }}" />
|
<meta name="msvalidate.01" content="{{ site.Params.analytics.bingsiteVerificationTag }}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- /* Styles */}}
|
{{- /* Styles */}}
|
||||||
@ -99,7 +99,7 @@
|
|||||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" href="{{ .Permalink | safeURL }}">
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" href="{{ .Permalink | safeURL }}">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{- range .AllTranslations -}}
|
{{- range .AllTranslations -}}
|
||||||
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}" />
|
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
<noscript>
|
<noscript>
|
||||||
|
Loading…
Reference in New Issue
Block a user