1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-28 06:15:48 -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,3 +1,9 @@
{{/* Strip any markdown styling from page title for use in meta tags */}}
{{- with .Title -}}
{{- $.Scratch.Set "plainTitle" (. | markdownify | htmlUnescape | plainify) -}}
{{- end -}}
{{/* Chooses and initializes various images for use by JSON schema & open graph tags */}}
{{/* Author image (default) */}}