aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2019-11-06 14:56:42 +0100
committerDennis Eriksen <d@ennis.no>2020-04-01 10:55:35 +0200
commit86a7f995ce5be6e982e8a1f8b9b4bbddb3153c9a (patch)
treee98bd1dee8bc469008f53b89f8abb1a08ae76d54 /layouts/index.html
parentrelative links on front page (diff)
downloadriker-86a7f995ce5be6e982e8a1f8b9b4bbddb3153c9a.tar.gz
testing out microblogging
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 8a7cffa..e6fbc13 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -6,6 +6,17 @@
</header>
<main>
<p>{{ .Site.Params.intro }}</p>
+<div class="microblog">
+ <h2>Microblog</h2>
+ {{ range (where .Site.RegularPages "Type" "micro") }}
+ <article class="list-item">
+ {{ .Summary }}
+ {{ if .Truncated }}
+ <a href="{{ .RelPermalink }}">Read more</a>
+ {{ end }}
+ </article>
+ {{ end }}
+</div>
<div class="archive">
<h2>Archive</h2>
{{ range (where (where .Site.RegularPages "Params.hidden" "ne" "true") "Type" "post").GroupByDate "2006" }}