Semantic markup for left and right columns

merge-requests/30/head
Bob Mottram 2022-05-02 12:58:24 +01:00
parent c71259b4fa
commit e027a2af21
2 changed files with 4 additions and 2 deletions

View File

@ -239,7 +239,7 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
new_tab_str = ' target="_blank" rel="nofollow noopener noreferrer"'
if links_list:
html_str += '<nav>\n'
html_str += '<nav itemscope itemtype="http://schema.org/Collection">\n'
for line_str in links_list:
if ' ' not in line_str:
if '#' not in line_str:

View File

@ -341,7 +341,9 @@ def _html_newswire(base_dir: str, newswire: {}, nickname: str, moderator: bool,
html_str += date_shown + '</span></p>\n'
if html_str:
html_str = '<nav>\n' + html_str + '</nav>\n'
html_str = \
'<nav itemscope itemtype="http://schema.org/webFeed">\n' + \
html_str + '</nav>\n'
return html_str