mirror of https://gitlab.com/bashrc2/epicyon
Mark hashtags which have map coordinates
parent
f4e6e33cc0
commit
bbca901c4f
|
@ -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>' + \
|
||||||
|
|
Loading…
Reference in New Issue