diff options
Diffstat (limited to 'layouts/_default/index.html')
-rw-r--r-- | layouts/_default/index.html | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/layouts/_default/index.html b/layouts/_default/index.html index fc8e840..60957e2 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -2,21 +2,15 @@ <h2>About</h2> Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This website is not dedicated to any particular one thing. Instead, I write whatever interests me most at the moment. No content here is auto-generated, so any bugs, problems, or controversies are entirely on me! -<h2>Recent updates from the entire site</h2> +<h2>Recent updates and publications </h2> -{{ $recent_categories := slice "update" }} -{{ range first 7 (where .Site.RegularPages ".Params.category" "intersect" $recent_categories) }} +{{ range first 10 +.Site.RegularPages.ByDate.Reverse +}} {{ partial "partials/article_list_item.html" . }} {{ end }} -<p><a href="/all_updates">» All updates</a></p> - -<h2>Recent blog posts</h2> - -{{ $recent_categories := slice "blog" }} -{{ range first 7 (where .Site.RegularPages ".Params.category" "intersect" $recent_categories) }} - {{ partial "partials/article_list_item.html" . }} -{{ end }} -<p><a href="/blog/">» Go to blog</a></p> +<p><a href="/all_updates">» All updates</a><BR> +<a href="/blog/">» Go to blog</a></p> <h2>Sections</h2> <nav> |