mirror of https://gitlab.com/bashrc2/epicyon
Use sameas
parent
18aba190a9
commit
a0d10b7c14
|
@ -200,6 +200,8 @@ def getDefaultPersonContext() -> str:
|
||||||
'suspended': 'toot:suspended',
|
'suspended': 'toot:suspended',
|
||||||
'toot': 'http://joinmastodon.org/ns#',
|
'toot': 'http://joinmastodon.org/ns#',
|
||||||
'value': 'schema:value',
|
'value': 'schema:value',
|
||||||
|
'hasOccupation': 'schema:hasOccupation',
|
||||||
|
'affiliation': 'schema:affiliation',
|
||||||
'Occupation': 'schema:Occupation',
|
'Occupation': 'schema:Occupation',
|
||||||
'OrganizationRole': 'schema:OrganizationRole',
|
'OrganizationRole': 'schema:OrganizationRole',
|
||||||
'WebSite': 'schema:Project'
|
'WebSite': 'schema:Project'
|
||||||
|
|
|
@ -819,6 +819,7 @@ def htmlHeaderWithBlogMarkup(cssFilename: str, instanceTitle: str,
|
||||||
systemLanguage)
|
systemLanguage)
|
||||||
|
|
||||||
authorUrl = httpPrefix + '://' + domain + '/users/' + nickname
|
authorUrl = httpPrefix + '://' + domain + '/users/' + nickname
|
||||||
|
aboutUrl = httpPrefix + '://' + domain + '/about.html'
|
||||||
blogMarkup = \
|
blogMarkup = \
|
||||||
' <script type="application/ld+json">\n' + \
|
' <script type="application/ld+json">\n' + \
|
||||||
' {\n' + \
|
' {\n' + \
|
||||||
|
@ -830,12 +831,12 @@ def htmlHeaderWithBlogMarkup(cssFilename: str, instanceTitle: str,
|
||||||
' "author": {\n' + \
|
' "author": {\n' + \
|
||||||
' "@type": "Person",\n' + \
|
' "@type": "Person",\n' + \
|
||||||
' "name": "' + nickname + '",\n' + \
|
' "name": "' + nickname + '",\n' + \
|
||||||
' "url": "' + authorUrl + '"\n' + \
|
' "sameAs": "' + authorUrl + '"\n' + \
|
||||||
' },\n' + \
|
' },\n' + \
|
||||||
' "publisher": {\n' + \
|
' "publisher": {\n' + \
|
||||||
' "@type": "WebSite",\n' + \
|
' "@type": "WebSite",\n' + \
|
||||||
' "name": "' + instanceTitle + '",\n' + \
|
' "name": "' + instanceTitle + '",\n' + \
|
||||||
' "url": "' + httpPrefix + '://' + domain + '/about.html"\n' + \
|
' "sameAs": "' + aboutUrl + '"\n' + \
|
||||||
' },\n' + \
|
' },\n' + \
|
||||||
' "description": "' + snippet + '"\n' + \
|
' "description": "' + snippet + '"\n' + \
|
||||||
' }\n' + \
|
' }\n' + \
|
||||||
|
|
Loading…
Reference in New Issue