fix: show both DisplayName and Handle in google structured data (or only Handle if DisplayName not set)

This commit is contained in:
Elijah Seed-Arita
2025-10-08 10:29:44 -07:00
parent 07bcf7460a
commit 67049b98c9
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -62,7 +62,11 @@
"@type": "DiscussionForumPosting",
"author": {
"@type": "Person",
"name": "{{ postView.Author.DisplayName }}",
{%- if postView.Author.DisplayName %}
"name": "{{ postView.Author.DisplayName }} (@{{ postView.Author.Handle }})",
{% else %}
"name": "@{{ postView.Author.Handle }}",
{% endif -%}
"url": "https://bsky.app/profile/{{ postView.Author.Handle }}"
},
{%- if postText %}