diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-04-30 22:09:59 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-04-30 22:09:59 +0200 |
| commit | 799125e8436094e79f9a5d21b5fb9fe7c8d5c8e0 (patch) | |
| tree | 63baafb6737fe7e427d1761ecef5e9299135b24d /layouts | |
| parent | 54c8c67e12a998b33eb508a80b458cade35a2864 (diff) | |
| download | gohugo-theme-ed-799125e8436094e79f9a5d21b5fb9fe7c8d5c8e0.tar.gz | |
Refactor index page
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/index.html | 26 |
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 }} |
