feat: Remove title processing

This commit is contained in:
Simon 2021-04-21 00:34:49 +02:00
parent 6b976e49b6
commit de71ab28e3
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
<meta name="twitter:url" content="{{ .Site.BaseURL }}" /> <meta name="twitter:url" content="{{ .Site.BaseURL }}" />
<meta name="twitter:image:src" content="{{ .Site.BaseURL}}{{ .Site.Params.SocialImage }}" /> <meta name="twitter:image:src" content="{{ .Site.BaseURL}}{{ .Site.Params.SocialImage }}" />
{{ else }} {{ else }}
<title>{{ plainify (.RenderString .Title) }} &middot; {{ .Site.Title }}</title> <title>{{ .Title }} &middot; {{ .Site.Title }}</title>
<meta name="description" content="{{ .Description }}" /> <meta name="description" content="{{ .Description }}" />
{{ if .Params.tags }} {{ if .Params.tags }}
<meta name="keywords" content="{{ range .Params.tags }}{{ . }},{{ end }}" /> <meta name="keywords" content="{{ range .Params.tags }}{{ . }},{{ end }}" />
@ -31,8 +31,8 @@
<meta name="keywords" content="{{ $.Site.Params.Keywords }}" /> <meta name="keywords" content="{{ $.Site.Params.Keywords }}" />
{{ end }} {{ end }}
<meta property="og:url" content="{{ .Permalink }}" /> <meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:title" content="{{ plainify (.RenderString .Title) }} &middot; {{ .Site.Title }}" /> <meta property="og:title" content="{{ .Title }} &middot; {{ .Site.Title }}" />
<meta name="twitter:title" content="{{ plainify (.RenderString .Title) }} &middot; {{ .Site.Title }}" /> <meta name="twitter:title" content="{{ .Title }} &middot; {{ .Site.Title }}" />
{{ if .Description }} {{ if .Description }}
<meta name="og:description" content="{{ .Description }}" /> <meta name="og:description" content="{{ .Description }}" />
<meta name="twitter:description" content="{{ .Description }}" /> <meta name="twitter:description" content="{{ .Description }}" />