# \[solved\] Different design for different types on home page

**URL:** <https://discourse.gohugo.io/t/solved-different-design-for-different-types-on-home-page/10409>\
**Category:** support\
**Created:** [February 7, 2018, 10:32am UTC](https://discourse.gohugo.io/t/solved-different-design-for-different-types-on-home-page/10409 "2018-02-07T10:32:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [February 7, 2018, 10:32am UTC](https://discourse.gohugo.io/t/solved-different-design-for-different-types-on-home-page/10409/1 "2018-02-07T10:32:23Z")

</div>

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 😃

thanks  
Patrick

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [February 7, 2018, 10:35am UTC](https://discourse.gohugo.io/t/solved-different-design-for-different-types-on-home-page/10409/2 "2018-02-07T10:35:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![brunoamaral](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/brunoamaral/32/21144_2.png) [@brunoamaral](https://discourse.gohugo.io/u/brunoamaral)\
**Post date:** [February 7, 2018, 10:54am UTC](https://discourse.gohugo.io/t/solved-different-design-for-different-types-on-home-page/10409/3 "2018-02-07T10:54:48Z")

</div>

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. 🙂
