Repository navigation
Expand file tree
/
Copy pathtags.html
More file actions
56 lines (51 loc) · 1.88 KB
/
Copy pathtags.html
File metadata and controls
56 lines (51 loc) · 1.88 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
lang: en
layout: page
title: "Tags"
permalink: /tags/
description: >-
Browse posts by topic tag — attention mechanisms, mixture-of-experts, RAG,
agentic patterns, fine-tuning, and more.
---
{%- comment -%}
`listed` drops a translation whose original is listed (_plugins/translations.rb);
a tag left with no posts is skipped. `sort_natural` so case does not split the
order ("AWS…" before "Advanced…" under plain `sort`).
Most tags name one paper's own contribution and hold a single post. The index
at the top lists the ones shared by several posts, which are the ones worth
browsing by.
{%- endcomment -%}
{% capture tag_names %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %}|{% endunless %}{% endfor %}{% endcapture %}
{% assign tag_names = tag_names | split: "|" | sort_natural %}
<nav class="tag-index" aria-label="Tags shared by several posts">
<p class="tag-index-label">Shared by several posts</p>
<ul>
{% for tag_name in tag_names %}
{% assign tag_posts = site.tags[tag_name] | listed %}
{% if tag_posts.size > 1 %}
<li><a href="#{{ tag_name | slugify }}">{{ tag_name | replace: '-', ' ' }} <span class="tag-count">{{ tag_posts.size }}</span></a></li>
{% endif %}
{% endfor %}
</ul>
</nav>
{% for tag_name in tag_names %}
{% assign tag_posts = site.tags[tag_name] | listed %}
{% if tag_posts.size == 0 %}{% continue %}{% endif %}
<div class="tag-section">
<h2 id="{{ tag_name | slugify }}" class="tag-title">
{{ tag_name | replace: '-', ' ' }}
</h2>
<ul class="posts-list">
{% for post in tag_posts %}
<li class="post-item">
<strong>
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link" lang="{{ post.lang | default: site.lang }}"
>{{ post.title | escape }}</a
>
</strong>
<span class="post-date"> {{ post.posted_at | date: site.date_format }} </span>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}