#indieweb 2021-08-20

2021-08-20 UTC
Seirdy, KartikPrabhu and jacky joined the channel
#
Loqi
[indienews] New post: "2FA in Twyne" https://samwilson.id.au/P24313
#
GWG
Apparently, https://kartikprabhu.com doesn't work, you have to go to www.kartikprabhu.com
#
GWG
KartikPrabhu: I'm just updating some broken wiki links.
#
KartikPrabhu
still haven't found time to redirect the no-www to www
#
GWG
!tell barnaby Your SSL cert is expired.
#
Loqi
Ok, I'll tell them that when I see them next
jacky, gxt_, Seirdy and hendursa1 joined the channel
#
capjamesg[d]
Does anyone have a page on their site for showing their latest posts in each category?
#
capjamesg[d]
My homepage is for long-form content only. I was thinking about adding a /recent/ page to show recent posts in each category.
#
capjamesg[d]
What is recent?
#
Loqi
It looks like we don't have a page for "recent" yet. Would you like to create it? (Or just say "recent is ____", a sentence describing the term)
jacky, n8chz and tetov-irc joined the channel
#
Murray[d]
capjamesg[d] I've been wanting to add category feeds for a while. Currently I "use" my search filters as a shortcut (until I can be bothered to actually implement it properly) 😄
jacky and nertzy joined the channel
#
capjamesg[d]
I am sort of the same 🙂
#
capjamesg[d]
I built a category:"IndieWeb or whatever other category" filter into my search engine for that reason.
#
capjamesg[d]
GitHub Pages is limited in what plugins it supports for Jekyll, the software I use for my blog, so I can't really build lots of category pages.
#
capjamesg[d]
I have some manual pages for important categories though.
jacky, Moosadee, Allie, [manton], shoesNsocks1, sennomo, hendursaga, gRegor, ben_thatmustbeme, gRegorLove_ and Rattroupe joined the channel
#
Rattroupe
I use Jekyll and it automatically builds recent posts, categories, etc. But I'm not using GitHub pages
qa6_, anyhow, jacky, KartikPrabhu, tetov-irc and [Gabriele_Girel] joined the channel
#
[Gabriele_Girel]
[capjamesg] I use Jekyll for my website too. Dunno if this can help, but to show just the latest post in each category you can iterate through the categories and show the first post only. You can make such a page with something like this:
#
[Gabriele_Girel]
```{% assign _collections = site.categories | sort %}
#
[Gabriele_Girel]
{% for collection in _collections %}
#
[Gabriele_Girel]
{% assign post = collection[1][0] %}
#
[Gabriele_Girel]
<h1>{{ collection[0] }}</h1>
#
[Gabriele_Girel]
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
#
[Gabriele_Girel]
<div>
#
[Gabriele_Girel]
<h4 class="card-text">{{ post.excerpt | strip_html | truncatewords:30 }}</h4>
#
[Gabriele_Girel]
{{post.content}}
#
[Gabriele_Girel]
</div>
#
[Gabriele_Girel]
{% assign pages_list = nil %}
#
[Gabriele_Girel]
{% assign group = nil %}
#
[Gabriele_Girel]
{% endfor %}```
#
[Gabriele_Girel]
[Murray] let me know if you find a way to add category feed! I am stuck with only tag feeds atm... 😞
westie[d] joined the channel