aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts/_default/section.html
diff options
context:
space:
mode:
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/_default/section.html')
-rw-r--r--generators/hugo/themes/tdro/layouts/_default/section.html47
1 files changed, 23 insertions, 24 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/section.html b/generators/hugo/themes/tdro/layouts/_default/section.html
index 47ea0a7..10f501a 100644
--- a/generators/hugo/themes/tdro/layouts/_default/section.html
+++ b/generators/hugo/themes/tdro/layouts/_default/section.html
@@ -1,26 +1,25 @@
{{ define "main" }}
-<section class="section is-fullheight">
- <div class="container">
- <div class="columns is-centered">
- <div class="column is-7">
- <article class="content">
- <br>
- <span class="marginnote rightnote">
- See an archive of all {{ .Type }} <a href="{{ partial "archive-link.html" . }}">here.</a>
- </span>
- <recent-articles>
- {{ range where .Paginator.Pages ".Params.hidden" "ne" "true" }}
- {{ .Render "summary" }}
- {{ end }}
- </recent-articles>
- </article>
- {{ partial "pagination.html" . }}
- <br>
- <a href="{{ partial "archive-link.html" . }}" class="front__more is-block has-text-centered">
- <span>Archive of all {{ .Type }}</span> {{ safeHTML (readFile "public/css/icons/feather/corner-down-right.svg") }}
- </a>
- </div>
- </div>
- </div>
-</section>
+<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 }}