diff --git a/site/_extensions/gallery_generator.py b/site/_extensions/gallery_generator.py index e60e12d..cbb7c31 100644 --- a/site/_extensions/gallery_generator.py +++ b/site/_extensions/gallery_generator.py @@ -68,7 +68,7 @@ def generate_repo_dicts(all_items): gallery_info_dict = yaml.safe_load(requests.get(gallery_info_url).content) thumbnail = gallery_info_dict["thumbnail"] tag_dict = { - k: v for k, v in gallery_info_dict["tags"].items() if v[0] is not None + k: v for k, v in gallery_info_dict["tags"].items() if (v is not None and v[0] is not None) } except: @@ -81,7 +81,7 @@ def generate_repo_dicts(all_items): authors = config_dict["author"] thumbnail = config_dict["thumbnail"] tag_dict = { - k: v for k, v in config_dict["tags"].items() if v[0] is not None + k: v for k, v in config_dict["tags"].items() if (v is not None and v[0] is not None) } repo_dict = { diff --git a/site/cookbook_gallery.txt b/site/cookbook_gallery.txt index 5a4bb31..4233ad3 100644 --- a/site/cookbook_gallery.txt +++ b/site/cookbook_gallery.txt @@ -8,4 +8,5 @@ kerchunk-cookbook xbatcher-ML-1-cookbook dask-cookbook ERA5_interactive-cookbook -web-map-feature-services-cookbook \ No newline at end of file +web-map-feature-services-cookbook +gridding-cookbook