mirror of https://gitlab.com/bashrc2/epicyon
Use sameas
parent
18aba190a9
commit
a0d10b7c14
|
@ -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'
|
||||
|
|
|
@ -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' + \
|
||||
|
|
Loading…
Reference in New Issue