Display div element from footer on some pages

How to code this:

IF homepage OR a post from posts section then Display the div. Taxonomy pages and pages from the pages section should have hidden this item.

{{- if or (.IsHome) (in .Section "posts") }}
<!-- your content goes here -->
{{- end }}
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.