Mark hashtags which have map coordinates

main
Bob Mottram 2024-11-03 20:28:17 +00:00
parent f4e6e33cc0
commit bbca901c4f
1 changed files with 7 additions and 1 deletions

View File

@ -280,9 +280,15 @@ def html_search_hashtag_category(translate: {},
for _, hashtag_list in hashtags_dict.items(): for _, hashtag_list in hashtags_dict.items():
hashtag_list.sort() hashtag_list.sort()
for tag_name in hashtag_list: for tag_name in hashtag_list:
tag_display_name = tag_name
tag_map_filename = \
os.path.join(base_dir + '/tagmaps', tag_name + '.txt')
if os.path.isfile(tag_map_filename):
tag_display_name = '📌' + tag_name
html_str += \ html_str += \
'<a href="' + actor + '/tags/' + tag_name + \ '<a href="' + actor + '/tags/' + tag_name + \
'" class="hashtagswarm">' + tag_name + '</a>\n' '" class="hashtagswarm">' + tag_display_name + '</a>\n'
html_str += \ html_str += \
'</center>' + \ '</center>' + \