mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Add user-specific meta tags to User profile
This commit is contained in:
parent
0487cc09b2
commit
b8449a16eb
@ -1,10 +1,12 @@
|
||||
<script type="application/ld+json">
|
||||
<%
|
||||
set_meta_tags title: @user.name, description: "#{@user.name}’s profile on notebook.ai"
|
||||
|
||||
content_jsonld = {
|
||||
'@id': user_url,
|
||||
'@type': 'http://schema.org/Person',
|
||||
'http://schema.org/name': @user.name,
|
||||
'http://schema.org/description': "#{@user.name}'s profile on notebook.ai"
|
||||
'http://schema.org/description': "#{@user.name}’s profile on notebook.ai"
|
||||
}
|
||||
%>
|
||||
<%= content_jsonld.to_json.html_safe %> %>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user