Add user-specific meta tags to User profile

This commit is contained in:
Robert Richter 2016-09-21 11:50:00 -05:00
parent 0487cc09b2
commit b8449a16eb
No known key found for this signature in database
GPG Key ID: BEC39BF873A0103B

View File

@ -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 %> %>