[solved] Different design for different types on home page

Hi,

I wonder what would be the right approach to apply different designs to different “content types” (sections) on the homepage. Let’s assume I have two sections

/content/type1/*.md
/content/type2/*.md

and I want to have a different HTML-output per type1/type2. I probably just need a nudge to the right template type - there are too many :smiley:

thanks
Patrick

My fault :wink: I missed summary.html/li.html in the documentation.

Another approach would be to use the same markup and add the Section variable to the classes in the body tag or surrounding the content with a div that shows the content-type you have.

Of course, this assumes you can live with the same markup across the board. :slight_smile:

2 Likes