Use sameas

main
Bob Mottram 2021-05-16 11:42:52 +01:00
parent 18aba190a9
commit a0d10b7c14
2 changed files with 5 additions and 2 deletions

View File

@ -200,6 +200,8 @@ def getDefaultPersonContext() -> str:
'suspended': 'toot:suspended',
'toot': 'http://joinmastodon.org/ns#',
'value': 'schema:value',
'hasOccupation': 'schema:hasOccupation',
'affiliation': 'schema:affiliation',
'Occupation': 'schema:Occupation',
'OrganizationRole': 'schema:OrganizationRole',
'WebSite': 'schema:Project'

View File

@ -819,6 +819,7 @@ def htmlHeaderWithBlogMarkup(cssFilename: str, instanceTitle: str,
systemLanguage)
authorUrl = httpPrefix + '://' + domain + '/users/' + nickname
aboutUrl = httpPrefix + '://' + domain + '/about.html'
blogMarkup = \
' <script type="application/ld+json">\n' + \
' {\n' + \
@ -830,12 +831,12 @@ def htmlHeaderWithBlogMarkup(cssFilename: str, instanceTitle: str,
' "author": {\n' + \
' "@type": "Person",\n' + \
' "name": "' + nickname + '",\n' + \
' "url": "' + authorUrl + '"\n' + \
' "sameAs": "' + authorUrl + '"\n' + \
' },\n' + \
' "publisher": {\n' + \
' "@type": "WebSite",\n' + \
' "name": "' + instanceTitle + '",\n' + \
' "url": "' + httpPrefix + '://' + domain + '/about.html"\n' + \
' "sameAs": "' + aboutUrl + '"\n' + \
' },\n' + \
' "description": "' + snippet + '"\n' + \
' }\n' + \