diff options
author | Roger Gonzalez <roger@rogs.me> | 2020-04-25 16:50:56 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2020-04-25 16:50:56 -0300 |
commit | 29d309db5196099982d96933acdc4c0d0ae45436 (patch) | |
tree | d05796b60487d2befc2780d35ae1f864eff225c7 /themes/m10c/layouts/_default/list.html |
Initial commit, migrating from Ghost
Diffstat (limited to 'themes/m10c/layouts/_default/list.html')
-rw-r--r-- | themes/m10c/layouts/_default/list.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/m10c/layouts/_default/list.html b/themes/m10c/layouts/_default/list.html new file mode 100644 index 0000000..392c5e2 --- /dev/null +++ b/themes/m10c/layouts/_default/list.html @@ -0,0 +1,17 @@ +{{ 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" (dict "ctx" $ "name" "clock") }} {{ .ReadingTime }} min read - + {{ .PublishDate.Format "Jan 2, 2006" }} + </span> + </li> + {{ end }} + </ul> + {{ partial "pagination.html" $ }} + </article> +{{ end }} |