statiqdev / Statiq.Web

Statiq Web is a flexible static site generator written in .NET.
https://statiq.dev/web
Other
1.64k stars 236 forks source link

Rendering blog tags in the Docs recipe #873

Closed deap82 closed 4 years ago

deap82 commented 4 years ago

Here is my proposal on how to render the blog tags in the Docs recipe.

This is what it looks like in the sidebar: image

and in the blogpost: image

The solution in _BlogLayout.cshtml is somewhat hackish to deal with the fact that the ul element is defined outside the SideBar section, with the benefit that each list in the sidebar now actually is rendered as a separate list. I opted to contain my changes to as few files as possible, please advice if I should rework it more.

ping @daveaglick