diff options
-rw-r--r-- | content/articles/digital-ownership.md | 2 | ||||
-rw-r--r-- | layouts/_default/index.html | 18 |
2 files changed, 7 insertions, 13 deletions
diff --git a/content/articles/digital-ownership.md b/content/articles/digital-ownership.md index 335ef84..7039282 100644 --- a/content/articles/digital-ownership.md +++ b/content/articles/digital-ownership.md @@ -2,7 +2,7 @@ title = "Ownership in the digital age" author = ["Michał Sapka"] date = 2023-12-08T23:00:00+01:00 -lastmod = 2023-12-20T23:13:22+01:00 +lastmod = 2023-12-20T23:30:02+01:00 categories = ["article", "update"] draft = false weight = 2002 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> |