Skip to content

add submit link button #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 14, 2021
Merged
9 changes: 5 additions & 4 deletions content/_ext/yaml_gallery_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,14 @@ def _generate_tag_menu(all_items, tag_key):
def _generate_menu(all_items, flt=None):

key_list = _generate_sorted_tag_keys(all_items)
menu_html = '<div class="d-flex flex-row">' + '\n'
menu_html = '<div class="d-flex flex-row"> \n'
for tag_key in key_list:
menu_html += _generate_tag_menu(all_items, tag_key) + '\n'
if flt:
menu_html += '<a type="button" class="btn btn-link" href="/pages/links.html">Return to Full Gallery</a>' + '\n'
menu_html += '</div>' + '\n'
menu_html += "<script> $(document).on('click',function(){$('.collapse').collapse('hide');}); </script>" + '\n'
menu_html += '<a type="button" class="btn btn-link" href="/pages/links.html">Return to Full Gallery</a> \n'
menu_html += '<a type="button" class="btn btn-link" style="position:absolute; right:0;" href="https://github.com/ProjectPythia/projectpythia.github.io/issues/new?assignees=&labels=external-links-gallery-submission&template=update-external-links-gallery.md&title=">Submit a Link</a> \n'
menu_html += '</div> \n'
menu_html += '<script> $(document).on("click",function(){$(".collapse").collapse("hide");}); </script> \n'
return menu_html


Expand Down