diff --git a/CODEOFCONDUCT.md b/CODEOFCONDUCT.md
index 84a563ee..ec9da685 100644
--- a/CODEOFCONDUCT.md
+++ b/CODEOFCONDUCT.md
@@ -47,7 +47,8 @@ Instances of unacceptable behavior can be brought to the attention of the projec
## Consequences
-Upon receipt of a complaint, the project administrator(s) may take any action deemed necessary and appropriate under the circumstances. Such action can include things such as: removing, editing, or rejecting comments, commits, code, wiki edits, email, issues, and other contributions that are not aligned to this Code of Conduct, or banning temporarily or permanently any contributor for other behaviors that are deemed inappropriate, threatening, offensive, or harmful. Project administrators also have the right to report violations to UCAR HR and/or UCAR’s Office of Diversity, Equity and Inclusion (ODEI), as well as a participant’s home institution and/or law enforcement. In the event an incident is reported to UCAR, UCAR will follow its Harassment Reporting and Complaint Procedure.
+Upon receipt of a complaint, the project administrator(s) may take any action deemed necessary and appropriate under the circumstances. Such action can include things such as: removing, editing, or rejecting comments, commits, code, wiki edits, email, issues, and other contributions that are not
+aligned to this Code of Conduct, or banning temporarily or permanently any contributor for other behaviors that are deemed inappropriate, threatening, offensive, or harmful. Project administrators also have the right to report violations to UCAR HR and/or UCAR’s Office of Diversity, Equity and Inclusion (ODEI), as well as a participant’s home institution and/or law enforcement. In the event an incident is reported to UCAR, UCAR will follow its Harassment Reporting and Complaint Procedure.
## Attribution
diff --git a/environment.yml b/environment.yml
index 9cbef3a9..573b49da 100644
--- a/environment.yml
+++ b/environment.yml
@@ -3,13 +3,10 @@ channels:
- conda-forge
- nodefaults
dependencies:
+- ablog
- matplotlib
- myst-nb
- pandas
-- pip
-- pyyaml
- pre-commit
-- sphinx-panels
-- ablog
-- pip:
- - sphinx-pythia-theme
+- pyyaml
+- sphinx-pythia-theme
diff --git a/portal/_extensions/gallery_generator.py b/portal/_extensions/gallery_generator.py
index 089cf6d0..61a033b9 100644
--- a/portal/_extensions/gallery_generator.py
+++ b/portal/_extensions/gallery_generator.py
@@ -1,6 +1,5 @@
import itertools
import pathlib
-from textwrap import dedent
from truncatehtml import truncate
@@ -32,16 +31,16 @@ def _generate_tag_menu(all_items, tag_key):
)
return f"""
-
+
-
-
-{options}
-
-
-"""
+
+
+ {options}
+
+
+ """
def generate_menu(all_items, submit_btn_txt=None, submit_btn_link=None):
@@ -64,18 +63,18 @@ def generate_menu(all_items, submit_btn_txt=None, submit_btn_link=None):
def build_from_items(items, filename, title='Gallery', subtitle=None, subtext=None, menu_html='', max_descr_len=300):
# Build the gallery file
- panels_body = []
+ grid_body = []
for item in items:
if not item.get('thumbnail'):
- item['thumbnail'] = '/_static/images/ebp-logo.png'
- thumbnail = item['thumbnail']
+ item['thumbnail'] = '_static/images/ebp-logo.png'
+ thumbnail = item['thumbnail'][1:] if item['thumbnail'].startswith('/') else item['thumbnail']
tag_list = sorted((itertools.chain(*item['tags'].values())))
tag_list_f = [tag.replace(' ', '-') for tag in tag_list]
tags = [f'{tag}' for tag in tag_list_f]
tags = '\n'.join(tags)
- tag_class_str = ' '.join(tag_list_f)
+ # tag_class_str = ' '.join(tag_list_f)
author_strs = set()
affiliation_strs = set()
@@ -108,69 +107,69 @@ def build_from_items(items, filename, title='Gallery', subtitle=None, subtext=No
if ellipsis_str in short_description:
modal_str = f"""
-