mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: include username link in the microdata schema (#25112)
This commit is contained in:
parent
9ac3961f23
commit
4bf60b3e5b
@ -54,6 +54,7 @@
|
|||||||
<meta itemprop='datePublished' content='<%= @topic_view.topic.created_at.to_formatted_s(:iso8601) %>'>
|
<meta itemprop='datePublished' content='<%= @topic_view.topic.created_at.to_formatted_s(:iso8601) %>'>
|
||||||
<span itemprop='author' itemscope itemtype="http://schema.org/Person">
|
<span itemprop='author' itemscope itemtype="http://schema.org/Person">
|
||||||
<meta itemprop='name' content='<%= @topic_view.topic.user.username %>'>
|
<meta itemprop='name' content='<%= @topic_view.topic.user.username %>'>
|
||||||
|
<link itemprop='url' href='<%= Discourse.base_url %>/u/<%= @topic_view.topic.user.username %>'>
|
||||||
</span>
|
</span>
|
||||||
<meta itemprop='text' content='<%= @topic_view.topic.excerpt %>'>
|
<meta itemprop='text' content='<%= @topic_view.topic.excerpt %>'>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
Reference in New Issue
Block a user