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:
@@ -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) }}
|
||||
|
Reference in New Issue
Block a user