aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts/_default/section.html
blob: 10f501a16487e5c646bcbf74c5bb04a3db698105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{{ define "main" }}
<main>
  <article-list>

    <margin-note right>
      See an archive of all {{ .Type }} <a href="/archives/{{ .Type }}/">here.</a>
    </margin-note>

    <recent-articles>
      {{ if eq .Title "Posts" }}<recent-posts>{{ end }}
      {{ if eq .Title "Projects" }}<recent-projects>{{ end }}
        {{ range where .Paginator.Pages ".Params.hidden" "ne" "true" }}
          {{ .Render "summary" }}
        {{ end }}
      {{ if eq .Title "Posts" }}</recent-posts>{{ end }}
      {{ if eq .Title "Projects" }}</recent-projects>{{ end }}
    </recent-articles>

  {{ partial "article-pagination.html" . }}

  {{ partial "article-archive-link.html" . }}

  </article-list>
</main>
{{ end }}