aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Berwaldt <zberwaldt@tutamail.com>2023-05-13 23:14:24 -0400
committerZach Berwaldt <zberwaldt@tutamail.com>2023-05-13 23:14:24 -0400
commit59b4fc0d0e761238f51f27658d116b90c0abb528 (patch)
treeb3c85c414de6cdff6a5c060387d8d5e6c6af825f
parentb34e09f8fe1011963934dbf40dc92f0b258592ca (diff)
tweak index page
-rw-r--r--layouts/_default/summary.html6
-rw-r--r--layouts/index.html7
2 files changed, 10 insertions, 3 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index afd5f2b..6ae4fd0 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -1,13 +1,15 @@
1<div> 1<div>
2 <div> 2 <div>
3 {{with .CurrentSection.Title }}<span class="f6 db">{{ . }}</span>{{end}}
4 <h1 class="f3 near-black"> 3 <h1 class="f3 near-black">
5 <a href="{{ .RelPermalink }}" class="link black dim"> 4 <a href="{{ .RelPermalink }}" class="link black dim">
6 {{ .Title }} 5 {{ .Title }}
7 </a> 6 </a>
8 </h1> 7 </h1>
8 <p>
9 {{ .Date | time.Format ":date_full" }}
10 </p>
9 <div> 11 <div>
10 {{ .Summary }} 12 {{ .Summary | markdownify }}
11 </div> 13 </div>
12 </div> 14 </div>
13</div> 15</div>
diff --git a/layouts/index.html b/layouts/index.html
index 51f6625..16138b4 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,8 +1,13 @@
1{{ define "main" }} 1{{ define "main" }}
2<div> 2<div>
3 <article>
4 {{- .Content -}}
5 </article>
3 {{ with .Site.GetPage "post" }} 6 {{ with .Site.GetPage "post" }}
4 {{ range .Pages }} 7 {{ range .Pages }}
5 <h1>{{ .Title }}</h1> 8 <article>
9 <p>{{ .Render "summary" }}</p>
10 </article>
6 {{ end }} 11 {{ end }}
7 {{ end }} 12 {{ end }}
8</div> 13</div>