Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vaga/hugo-theme-m10c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien CASTERS <fabien@vaga.io>2019-01-19 12:47:03 +0300
committerFabien CASTERS <fabien@vaga.io>2019-01-20 20:07:11 +0300
commit90cbe1cab5e3ee9bc780c495242e6b1e4b2b3351 (patch)
tree341b53e4f21b3dd38db6b64a112c117b8716d3e7 /layouts/_default/list.html
Initial commit
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..6b90c77
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,16 @@
+{{ define "main" }}
+ <article>
+ <h1>{{ .Title }}</h1>
+ <ul class="posts-list">
+ {{ range $index, $element := $.Paginator.Pages }}
+ <li class="posts-list-item">
+ <a class="posts-list-item-title" href="{{ .Permalink }}">{{ .Title }}</a>
+ <span class="posts-list-item-description">
+ {{ partial "icon.html" "clock" }} {{ .ReadingTime }} min read -
+ {{ .PublishDate.Format "Jan 2, 2006" }}
+ </span>
+ </li>
+ {{ end }}
+ </ul>
+ </article>
+{{ end }}