Theme Development
Finding a Better Method for Hiding Page Metadata Using Front Matter Variables
in Web Dev · 4 min read · tagged: Hugo, Theme DevelopmentI was trying to solve a problem related to the option of displaying and hiding metadata of a page. This is useful in cases where some data in the metadata is irrelevant to be displayed. The metadata I’m talking about here is the information of a page that is commonly displayed on top of or below the page’s main heading or title such as date and word count. In my case, this metadata is generated by two partial templates in partials/article/metadata.
1 of 1