GFDRR / rdl-jkan

A lightweight, backend-free open data portal, powered by Jekyll
http://jkan.riskdatalibrary.org/
MIT License
1 stars 0 forks source link

Add hazard type sidebar filter #20

Closed lydiascarf closed 1 month ago

lydiascarf commented 1 month ago

posting this in case you want to merge it before the workshop! @matamadio

i wasn't sure i understood the motivation behind including all exposure datasets so i just wanted to explain how you could tweak this to work in a couple different ways:

good luck!

matamadio commented 1 month ago

Picked the second option: each hazard type filter option's badge reflects only the number of datasets with that hazard type, as opposed to that number + all of the exposure datasets. I made the specified edits and forced rebuild, but it seems the filter number still shows the sum of datasets.