fix: show both DisplayName and Handle in google structured data (or only Handle if DisplayName not set)
This commit is contained in:
@@ -62,7 +62,11 @@
|
|||||||
"@type": "DiscussionForumPosting",
|
"@type": "DiscussionForumPosting",
|
||||||
"author": {
|
"author": {
|
||||||
"@type": "Person",
|
"@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 }}"
|
"url": "https://bsky.app/profile/{{ postView.Author.Handle }}"
|
||||||
},
|
},
|
||||||
{%- if postText %}
|
{%- if postText %}
|
||||||
|
|||||||
@@ -59,7 +59,11 @@
|
|||||||
"dateCreated": "{{ profileView.CreatedAt }}",
|
"dateCreated": "{{ profileView.CreatedAt }}",
|
||||||
"mainEntity": {
|
"mainEntity": {
|
||||||
"@type": "Person",
|
"@type": "Person",
|
||||||
"name": "{{ profileView.DisplayName }}",
|
{%- if postView.Author.DisplayName %}
|
||||||
|
"name": "{{ postView.Author.DisplayName }} (@{{ postView.Author.Handle }})",
|
||||||
|
{% else %}
|
||||||
|
"name": "@{{ postView.Author.Handle }}",
|
||||||
|
{% endif -%}
|
||||||
"alternateName": "@{{ profileView.Handle }}",
|
"alternateName": "@{{ profileView.Handle }}",
|
||||||
"identifier": "{{ profileView.Did }}",
|
"identifier": "{{ profileView.Did }}",
|
||||||
"description": "{{ profileView.Description }}",
|
"description": "{{ profileView.Description }}",
|
||||||
|
|||||||
Reference in New Issue
Block a user