How to difference the post list and tag list in list.html?

Hi, all

I want to make different css for post list and tag list. how to judge if the list is a post list or a tag list, please?

Part of my _default/list.html :

       {{ range .Pages }}
            <li><a href={{ .Permalink }}>{{ .Title }}</a></li>
       {{ end }}

Thanks!

Dont know how to , seems syntax error:

 {{ range where .Pages .Ispage false }}

Your example represents a post list.

To generate a tag list, create a terms.html file like this:

{{ range .Data.Terms.ByCount }}
  <a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> ({{ .Count }})
{{ end }}

@Grob, Thank you.

I found that {{ range .Pages }} do contain all the pages including posts list, tag list and category list. I tried to filter the pages by isPage to make difference. Here is my final codes:

       {{ range .Pages }}
            {{ if .IsPage }}
                <li><a href={{ .Permalink }}>{{ .Title }}</a> ...... {{ .Date.Format "Jan 2, 2006" </li>
            {{ end }}

            {{ if not .IsPage }}
                <li><a href={{ .Permalink }}>{{ .Title }}</a></li>
            {{ end }}
       {{ end }}

You can make it shorter (don’t forget to close all brackets)

{{ range  .Pages }}
    <li><a href={{ .Permalink }}>{{ .Title }}</a>{{ if .IsPage }} ...... {{ .Date.Format "Jan 2, 2006"}}{{ end }}</li>
{{ end }}

@ju52 Great! Thank you!!!