Escape og:title tag

This commit is contained in:
Nathan McCarty 2025-03-16 17:53:24 -04:00
parent 8e4adf7f3b
commit 5209551bb0

View file

@ -28,7 +28,7 @@ initComments(\{
# Generate the universal header components # Generate the universal header components
generate-head($meta, $post.title, $post.description); generate-head($meta, $post.title, $post.description);
# Open graph tags for embedding # Open graph tags for embedding
meta :property<og:title>, :content($post.title); meta :property<og:title>, :content(^$post.title);
meta :property<og:url>, :content(post-link-abs $db.meta, $id, $post); meta :property<og:url>, :content(post-link-abs $db.meta, $id, $post);
meta :property<og:site_name>, :content($db.meta.title); meta :property<og:site_name>, :content($db.meta.title);
optl $post.description ~~ Str:D, optl $post.description ~~ Str:D,