summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authormms <michal@sapka.me>2023-12-05 23:07:58 +0100
committermms <michal@sapka.me>2023-12-05 23:07:58 +0100
commitac180f2d20bc811b662b55b7b0da62a8a42d7d40 (patch)
tree5113fd1f0dfd310b5a13f2b478a0997020d836c9 /layouts/_default
parent1da8a6b4f0983ec7ba45c5dd705feccf69896e58 (diff)
chore: general tidy yp
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/index.html18
-rw-r--r--layouts/_default/list.html16
2 files changed, 22 insertions, 12 deletions
diff --git a/layouts/_default/index.html b/layouts/_default/index.html
index 2770e36..008a958 100644
--- a/layouts/_default/index.html
+++ b/layouts/_default/index.html
@@ -10,14 +10,22 @@ Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This we
{{ end }}
<p><a href="/all_updates">&raquo; 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/">&raquo; Go to blog</a></p>
<h2>Sections</h2>
<nav>
- <P> &#10022; <a class="sec-link" href="/bsd/"><b>BSD site</b>: my writings on Berkley Standard Distribution flabors. OSes I use at the daily basis.</a> </p>
- <P> &#10022; <a class="sec-link" href="/star-trek/"><b>Star Trek fan site</b>: my little shrine to the greatest american Sci-Fi that has ever graced our screens.</a> </p>
- <P> &spades; <a class="sec-link" href="/funnies/"><b>Funnies</b>: A small, curated collection of things I found funny or ammusing.</a> </p>
- <p> &#9851; <a class="sec-link" href="/vcs/git/"><b>Version control system</b> : My little code repository. I don't expect to cooporate on any of those, so it's just stagit.</a></p>
- <p> &#x2665; <a class="sec-link" href="/site/"><b>Site info</b> : you can find site uptates, metrics, statics, and legal thingies here.</a></p>
+ <P><a class="sec-link" href="/blog/"><b>Blog</b>: my shorter publications withount any theme. You can treat it as E/N site.</a> </p>
+ <P><a class="sec-link" href="/bsd/"><b>BSD site</b>: my writings on Berkley Standard Distribution flabors. OSes I use at the daily basis.</a> </p>
+ <P><a class="sec-link" href="/star-trek/"><b>Star Trek fan site</b>: my little shrine to the greatest american Sci-Fi that has ever graced our screens.</a> </p>
+ <P><a class="sec-link" href="/funnies/"><b>Funnies</b>: A small, curated collection of things I found funny or ammusing.</a> </p>
+ <p><a class="sec-link" href="/vcs/git/"><b>Version control system</b> : My little code repository. I don't expect to cooporate on any of those, so it's just stagit.</a></p>
+ <p><a class="sec-link" href="/site/"><b>Site info</b> : you can find site uptates, metrics, statics, and legal thingies here.</a></p>
</nav>
<h2>TOC</h2>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index ae89782..f1fd111 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,11 +1,13 @@
{{ define "main" }}
- <h2>
- {{ replace .Title "-" " " }} archives
- </h2>
- <h3>Articles</h3>
- {{ range .Data.Pages }}
- {{ partial "partials/article_list_item.html" . }}
- {{ end }}
+ {{ if in .Page.Params.Category "blog" }}
+ {{ partial "partials/blog_index.html" . }}
+ {{ else }}
+
+ <h2>Articles</h2>
+ {{ range .Data.Pages }}
+ {{ partial "partials/article_list_item.html" . }}
+ {{ end }}
+ {{ end }}
{{ end }}