Dublin core title in metadata for individual post

main
Bob Mottram 2022-11-20 13:33:32 +00:00
parent d3355c2a79
commit fedc37bcfe
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,9 @@ def _html_post_metadata_open_graph(domain: str, post_json_object: {},
if obj_json.get('id'): if obj_json.get('id'):
metadata += " <meta name=\"DC.identifier\" " + \ metadata += " <meta name=\"DC.identifier\" " + \
"scheme=\"DCTERMS.URI\" content=\"" + obj_json['id'] + "\" />\n" "scheme=\"DCTERMS.URI\" content=\"" + obj_json['id'] + "\" />\n"
if obj_json.get('summary'):
metadata += " <meta name=\"DC.title\" " + \
"content=\"" + obj_json['summary'] + "\" />\n"
if obj_json.get('attributedTo'): if obj_json.get('attributedTo'):
if isinstance(obj_json['attributedTo'], str): if isinstance(obj_json['attributedTo'], str):
attrib = obj_json['attributedTo'] attrib = obj_json['attributedTo']