title: Hugo list page doesn't render theme properly
body: <p>I encountered a weird issue when trying to display subsection titles on a list page. Compared to single pages in this theme (which is hugo-coder), the text on the list page and its subpages (as shown in the picture below) is too small and too much to the left. </p>
  
  <p>Another issue is that content in <code>/content/projects/_index.md</code> didn't render at all.</p>
  
  <p><a href="https://i.stack.imgur.com/fyMPt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fyMPt.png" alt="enter image description here"></a></p>
  
  <p>The only thing I did was to add a <code>list.html</code> file in <code>/layouts/projects</code>. Why did this happen and how can I render the list page more properly? Thanks!! (<a href="https://github.com/Yuan-Meng/personal" rel="nofollow noreferrer">GitHub repo</a> and <a href="https://www.yuan-meng.com/projects/" rel="nofollow noreferrer">website</a>.)</p>
  
  <pre><code>{{ define "title" }}
    {{ .Title }} · {{ .Site.Title }}
  {{ end }}
  
  {{ define "content" }}
  
    {{ if (eq $.Parent.Title "Projects") }}
      &lt;ul class="no-bullet"&gt;
        {{ range .Paginator.Pages }}
        {{ .Render "li" }}
        {{ end }}
      &lt;/ul&gt;
      {{ partial "pagination.html" . }}
  
    {{ else }}
      {{ range (where .Site.Pages "Section" "projects") }}
        &lt;ul class="no-bullet"&gt;
          {{ range .Sections }}
          &lt;li&gt;
              &lt;span class="date"&gt;{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}&lt;/span&gt;
              &lt;a class="title" href="{{ .Params.ExternalLink | default .RelPermalink }}"&gt;{{ .Title }}&lt;/a&gt;
          &lt;/li&gt;
          {{ end }}
        &lt;/ul&gt;
       {{ end }}
     {{ end }}
  
  {{ end }}
  </code></pre>
  
  <hr>
  
  <p><strong>Original post:</strong>
  Under <code>/content/projects</code>, I have two separate categories, <code>cs</code> and <code>ds</code>. I wish to create a list page that displays the names of these two categories along with the URL to both. I know people asked similar questions before. However, none of the solutions I tried worked for me. </p>
  
  <p>Below are my folder structure (relevant folders only) and the original code in <code>/layouts/_default/list.html</code> and <code>/layouts/partial/list.html</code>. Which files should I modify and how in order to display subsections correctly? Thank you so much!!</p>
  
  <p>In <code>/layouts/_default</code>:</p>
  
  <pre><code>{{ define "title" }} {{- if eq .Kind "taxonomy" -}}
    {{- i18n .Data.Singular | title -}}
      {{- print ": " -}}
    {{- end -}}
  
    {{- .Title }} · {{ .Site.Title -}}
  {{ end }}
  {{ define "content" }}
     {{ partial "list.html" . }}
  {{ end }}
  </code></pre>
  
  <p>In <code>/layouts/partial</code>:</p>
  
  <pre><code>&lt;section class="container list"&gt;
    &lt;h1 class="title"&gt;
      {{- if eq .Kind "taxonomy" -}}
        {{- i18n .Data.Singular | title -}}
        {{- print ": " -}}
      {{- end -}}
  
      {{- .Title -}}
    &lt;/h1&gt;
    {{ .Content }}
    &lt;ul&gt;
      {{ range .Paginator.Pages }}
      &lt;li&gt;
        &lt;span class="date"&gt;{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}&lt;/span&gt;
        &lt;a class="title" href="{{ .Params.ExternalLink | default .RelPermalink }}"&gt;{{ .Title }}&lt;/a&gt;
      &lt;/li&gt;
      {{ end }}
    &lt;/ul&gt;
    {{ partial "pagination.html" . }}
  &lt;/section&gt;
  </code></pre>
  
  <p>Folder structure of <code>content</code> and <code>layout</code>:</p>
  
  <pre><code>├── content
  │   ├── about.md
  │   ├── posts
  │   │   └── amazon.md
  │   └── projects
  │       ├── _index.md
  │       ├── cs
  │       │   ├── _index.md
  │       │   └── covid19.md
  │       └── ds
  │           ├── _index.md
  │           └── covid19.md
  ├── layouts
  │   ├── 404.html
  │   ├── _default
  │   │   ├── baseof.html
  │   │   ├── list.html
  │   │   └── single.html
  │   ├── index.html
  │   ├── partials
  │   │   ├── 404.html
  │   │   ├── analytics
  │   │   │   └── fathom.html
  │   │   ├── footer.html
  │   │   ├── header.html
  │   │   ├── home.html
  │   │   ├── list.html
  │   │   ├── page.html
  │   │   ├── pagination.html
  │   │   ├── posts
  │   │   │   ├── commento.html
  │   │   │   ├── disqus.html
  │   │   │   ├── math.html
  │   │   │   ├── series.html
  │   │   │   └── utteranc.html
  │   │   └── taxonomy
  │   │       ├── categories.html
  │   │       └── tags.html
  │   ├── posts
  │   │   ├── li.html
  │   │   ├── list.html
  │   │   └── single.html
  │   └── projects
  │       └── list.html
  ...
  </code></pre>