aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-09-06 21:44:11 +0200
committerOscar Najera <hi@oscarnajera.com>2023-09-06 21:44:11 +0200
commit4cf3f2e6297878a4a6303a886e24addd5cf4580f (patch)
tree193599c81185bda2876a9a9826e7ec4c4499e994 /layouts/index.html
parent4aaada38d09811b6ee6a34f55b3a44514efa2aad (diff)
downloadhugo-minimalist-theme-4cf3f2e6297878a4a6303a886e24addd5cf4580f.tar.gz
hugo-minimalist-theme-4cf3f2e6297878a4a6303a886e24addd5cf4580f.tar.bz2
hugo-minimalist-theme-4cf3f2e6297878a4a6303a886e24addd5cf4580f.zip
Simplify and consolidate page styles
Use the section template instead of defining a new page type for the about page. In general I could build on pieces of markdown for each subsection.
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/index.html b/layouts/index.html
index a21b7c4..889d236 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,10 +1,10 @@
-{{ define "main" }}
+{{ define "hero" }}
{{ partial "hero.html" . }}
+{{ end }}
+{{ define "main" }}
<!-- Page Content -->
{{ range $index, $element := where .Pages "Type" "in" .Site.Params.mainSections }}
-<div class="mw7 center avenir ph2">
-{{ partial "open_section.html" . }}
{{ range first .Params.index_show .Pages.ByPublishDate.Reverse }}
{{ partial "post.html" . }}
{{ end }}
@@ -13,6 +13,5 @@
<i class="fas fa-angle-right"></i>
<a href="{{ .Type }}" class="f3 link near-black">See all</a>
</div>
-</div>
{{ end }}
{{ end }}