summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-04-30 22:09:59 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-04-30 22:09:59 +0200
commit799125e8436094e79f9a5d21b5fb9fe7c8d5c8e0 (patch)
tree63baafb6737fe7e427d1761ecef5e9299135b24d
parent54c8c67e12a998b33eb508a80b458cade35a2864 (diff)
downloadgohugo-theme-ed-799125e8436094e79f9a5d21b5fb9fe7c8d5c8e0.tar.gz
Refactor index page
-rw-r--r--layouts/index.html26
1 files changed, 10 insertions, 16 deletions
diff --git a/layouts/index.html b/layouts/index.html
index ab937b3..16d16c7 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,26 +1,20 @@
-{{ define "main" }}
+{{ define "main" -}}
<div class="introduction">
- <h1>hi.</h1>
-
- <p>
- Ed is a <a href="http://gohugo.io" target="_blank">Hugo</a> theme designed for textual
- editors based on <a href="http://go-dh.github.io/mincomp/">minimal computing principles</a>, and
- focused on legibility, durability, ease and flexibility. Our underlying technology is easy to
- learn and teach, and can produce beautifully rendered scholarly or reading editions of texts meant
- to last. To start using Ed, please see <a href="{{ .Site.BaseURL }}/documentation/">our
- documentation</a> for installation instructions and more. To learn more about the ideas behind Ed
- and a list of current features see our <a href="{{ .Site.BaseURL }}/about/">about</a> section. To
- see Ed in action, we've provided some sample minimal editions for you below.
- </p>
+ {{ .Content }}
</div>
<hr>
<div class="toc">
- <!-- h2>sample texts</h2 -->
+ <h2>Latest Publications</h2>
<ul class="texts">
- {{/* TODO: Implement me */}}
+ {{ range first 10 (where .Site.RegularPages "Section" "!=" "" ) }}
+ <li class="text-title">
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </li>
+ {{ end }}
</ul>
</div>
-{{- end -}}
+
+{{- end }}