diff options
Diffstat (limited to 'layouts/shortcodes/recent-posts.html')
| -rw-r--r-- | layouts/shortcodes/recent-posts.html | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/layouts/shortcodes/recent-posts.html b/layouts/shortcodes/recent-posts.html index 9819f36..4c3a784 100644 --- a/layouts/shortcodes/recent-posts.html +++ b/layouts/shortcodes/recent-posts.html @@ -1,26 +1,23 @@ {{ $mode := 2 }} {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} -{{ $recent := first 10 $pages.ByDate.Reverse }} +{{ $recent := first 15 $pages.ByDate.Reverse }} <div class="recent-posts"> {{ if $recent }} - <ul class="posts-list {{ if eq $mode 1 }}with-summary{{ else }}title-only{{ end }}"> + <ul class="posts-list {{ if eq $mode 1 }}with-summary{{ else }}title-only{{ end }}" style="list-style: none;padding-left: 1;"> - {{ range $recent }} + {{ range $index, $post := $recent }} <li> + + <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time> + <span class="post-link-wrapper"> <a href="{{ .RelPermalink }}" class="post-title">{{ .Title }}</a> </span> - <time datetime="{{ .Date.Format " 2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time> - - {{ if eq $mode 1 }} - <p class="post-summary">{{ .Summary | plainify | truncate 150 }}</p> - {{ end }} </li> {{ end }} - </ul> {{ else }} <p class="posts-empty">ææ éįŽ / No posts found.</p> |
