mirror of https://gitlab.com/bashrc2/epicyon
initial-state, same as mastodon
parent
2bdf27d225
commit
c876bd5688
|
@ -648,7 +648,7 @@ def htmlHeaderWithPersonMarkup(cssFilename: str, instanceTitle: str,
|
||||||
domainFull = actorJson['id'].split('://')[1].split('/')[0]
|
domainFull = actorJson['id'].split('://')[1].split('/')[0]
|
||||||
handle = actorJson['preferredUsername'] + '@' + domainFull
|
handle = actorJson['preferredUsername'] + '@' + domainFull
|
||||||
personMarkup = \
|
personMarkup = \
|
||||||
' <script type="application/ld+json">\n' + \
|
' <script id="initial-state" type="application/ld+json">\n' + \
|
||||||
' {\n' + \
|
' {\n' + \
|
||||||
' "@context" : "http://schema.org",\n' + \
|
' "@context" : "http://schema.org",\n' + \
|
||||||
' "@type" : "Person",\n' + \
|
' "@type" : "Person",\n' + \
|
||||||
|
@ -699,7 +699,7 @@ def htmlHeaderWithWebsiteMarkup(cssFilename: str, instanceTitle: str,
|
||||||
genreUrl = 'http://vocab.getty.edu/aat/300312270'
|
genreUrl = 'http://vocab.getty.edu/aat/300312270'
|
||||||
|
|
||||||
websiteMarkup = \
|
websiteMarkup = \
|
||||||
' <script type="application/ld+json">\n' + \
|
' <script id="initial-state" type="application/ld+json">\n' + \
|
||||||
' {\n' + \
|
' {\n' + \
|
||||||
' "@context" : "http://schema.org",\n' + \
|
' "@context" : "http://schema.org",\n' + \
|
||||||
' "@type" : "WebSite",\n' + \
|
' "@type" : "WebSite",\n' + \
|
||||||
|
@ -744,7 +744,7 @@ def htmlHeaderWithBlogMarkup(cssFilename: str, instanceTitle: str,
|
||||||
contentLicenseUrl = 'https://creativecommons.org/licenses/by/3.0'
|
contentLicenseUrl = 'https://creativecommons.org/licenses/by/3.0'
|
||||||
|
|
||||||
blogMarkup = \
|
blogMarkup = \
|
||||||
' <script type="application/ld+json">\n' + \
|
' <script id="initial-state" type="application/ld+json">\n' + \
|
||||||
' {\n' + \
|
' {\n' + \
|
||||||
' "@context" : "http://schema.org",\n' + \
|
' "@context" : "http://schema.org",\n' + \
|
||||||
' "@type" : "BlogPosting",\n' + \
|
' "@type" : "BlogPosting",\n' + \
|
||||||
|
|
Loading…
Reference in New Issue