diff options
Diffstat (limited to 'layouts/partials/post-list.html')
-rw-r--r-- | layouts/partials/post-list.html | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/layouts/partials/post-list.html b/layouts/partials/post-list.html index 650d00f..a625a69 100644 --- a/layouts/partials/post-list.html +++ b/layouts/partials/post-list.html @@ -1,14 +1,24 @@ +{{ $baseurl := .Site.BaseURL }} {{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") }} {{ range $paginator.Pages }} <article class="post post--preview"> <header> - <h1 class="post__title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1> - <div class="post__meta"><time datetime="{{ .Date.Format "02 January 2006" }}">{{ .Date.Format "02 January 2006" }}</time></div> + <h2 class="post__title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2> </header> + <footer class="post__meta"> + <ul class="post__meta__infos"> + <li class="post-meta__date"><time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02 January 2006" }}</time></li> + </ul> + <ul class="post__meta__tags"> + {{ range .Params.tags }} + <li><a href="{{ $baseurl }}tags/{{ . }}">{{ . }} </a></li> + {{ end }} + </ul> + </footer> <section class="post__excerpt"> <p>{{ .Summary }}…</p> {{ if .Truncated }} - <p class="readmore"><a href="{{ .Permalink }}">{{ .Site.Params.keepReading }}</a></p> + <p class="readmore"><a href="{{ .Permalink }}">Read Moreā¦</a></p> {{ end }} </section> </article> |