generate the description tag too lol

This commit is contained in:
Nathan McCarty 2025-02-12 03:53:37 -05:00
parent 197d02ebeb
commit e3313b0608

View file

@ -19,6 +19,8 @@ method generate-post(Int:D $id, Post:D $post, $db) {
meta :property<og:title>, :content($post.title);
meta :property<og:url>, :content(post-link-abs $db.meta, $id, $post);
meta :property<og:site_name>, :content($db.meta.title);
optl $post.description ~~ Str:D,
-> {meta :property<og:description>, :content(^ $post.description)};
meta :property<og:type>, :content<article>;
meta :property<article:published_time>, :content($post.posted-at);
$post.tags.map(-> $tag {