1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 07:41:18 -04:00

strip any markdown in page titles from meta/social tags in head

This commit is contained in:
2020-08-10 10:58:22 -04:00
parent 9b5a29be7b
commit 0f9de4d350
12 changed files with 40 additions and 33 deletions

View File

@@ -1,4 +1,4 @@
<meta property="og:title" content="{{ .Title }}">
<meta property="og:title" content="{{ .Scratch.Get "plainTitle" }}">
<meta property="og:site_name" content="{{ .Site.Title }}">
<meta property="og:type" content="{{ if and .IsPage (eq .Type .Site.Params.mainSection) }}article{{ else }}website{{ end }}">
<meta property="og:locale" content="en_US">
@@ -10,7 +10,7 @@
<meta property="og:image:type" content="{{ .MediaType }}">
<meta property="og:image:width" content="{{ .Width }}">
<meta property="og:image:height" content="{{ .Height }}">
<meta property="og:image:alt" content="{{ $.Title }}">
<meta property="og:image:alt" content="{{ $.Scratch.Get "plainTitle" }}">
{{ end -}}
{{- if and .IsPage (eq .Type .Site.Params.mainSection) }}