-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategories.html
More file actions
35 lines (33 loc) · 1.23 KB
/
Copy pathcategories.html
File metadata and controls
35 lines (33 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
layout: page
title: "Categories"
permalink: /categories/
description: >-
Every post on this blog grouped by category — Paper Reviews, Paper Summaries,
Tech Guides, and Insights.
---
{%- comment -%}
Category names are already written in display case in front matter
("Agentic-AI", "Retrieval-Augmented-Generation"), so replacing the separators
is the whole job — which is what index.html and _layouts/post.html do.
This used to title-case each word through `capitalize`, which uppercases the
first letter and *lowercases the rest*: "Agentic-AI" shipped as "Agentic Ai"
on the live page while every other listing rendered it correctly.
{%- endcomment -%}
{% for category in site.categories %}
{% capture cat %}{{ category | first }}{% endcapture %}
{% assign cat_display = cat | replace: "-", " " | replace: "_", " " %}
<h2 id="{{ cat | slugify }}">{{ cat_display }}</h2>
<ul class="posts-list">
{% for post in site.categories[cat] %}
<li>
<strong>
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</strong>
<span class="post-date">- {{ post.date | date_to_long_string }}</span>
</li>
{% endfor %}
</ul>
{% if forloop.last == false %}<hr>{% endif %}
{% endfor %}
<br>