vigliensoni / vigliensoni.com

https://vigliensoni.com
0 stars 0 forks source link

Implement parameter to not show item in landing page. #8

Closed vigliensoni closed 1 year ago

vigliensoni commented 1 year ago

The idea here would be to not show old stuff on the landing (portfolio) page but to show them on the navigation tab. By doing this, the landing page would be cleaner but all the information would be stored on the page.

This implementation should be done on the portfolio partial page:

https://github.com/kishaningithub/hugo-creative-portfolio-theme/blob/fa50cee717f24227c7ab79df8c20fc943801972c/layouts/partials/portfolio.html

vigliensoni commented 1 year ago

Perhaps a better approach would be to have a 'featured' category and filter by that.

vigliensoni commented 1 year ago

The following snippet returns the entries with the category featured

{{ range  where .Data.Pages ".Params.categories" "intersect" (slice "featured") }} 
vigliensoni commented 1 year ago

This was fixed through using a featured tag.