New approach to extracting publication data and filtering/searching it #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pubs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This commit introduces the process for individual publication term page generation, which includes a new jinja template and workflow. Since
publicationsis a taxonomy, the workflow renders the term page atcontent/publications/<pub-pid>/_index.md. For the same reason, the (more) correct html template to use would bepublications/taxonomy.htmlinstead ofpublications/list.html(which is actually the fallback), hence the replacement.Since, individual publication metadata are included in each individual term page front matter, the taxonomy page has been updated to grab that metadata instead of reading the json object from
data/publications.json. This also allows the associated workflow to be dropped.A new
publication-itempartial is introduced to allow better control over the rendering of individual items in the publication list on the taxonomy page. This intentionally shifts the rendering that was previously done in JS code to Hugo templating. Because hugo only runs the rendering on app build, the searching/filtering approach had to be changed so that all publications are rendered by default and required items are hidden depending on the filtering options selected or search terms entered. This is done in updated JS code, by assigningdisplay: nonewhen applicable. Other JS additions include:TODO: customize the publications term page template for improved individual publication display.
Demo: