diff options
| author | uvok cheetah | 2026-06-14 19:08:38 +0200 |
|---|---|---|
| committer | uvok cheetah | 2026-06-14 19:08:38 +0200 |
| commit | 522f98fc205d112897360fa90bbbef268aa66f48 (patch) | |
| tree | e9c0dd479beef86e1e1d2d74cd64e27252bc91b6 /_includes/series.md | |
| parent | e39a878420f355c8790fd62f60a0034181a4f2cd (diff) | |
Use auto-series
Diffstat (limited to '_includes/series.md')
| -rw-r--r-- | _includes/series.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/_includes/series.md b/_includes/series.md new file mode 100644 index 0000000..6a66f5b --- /dev/null +++ b/_includes/series.md @@ -0,0 +1,17 @@ +--- +{: .spaced.top } +## {{ page.series }} series +{% assign series_posts = site.posts | where_exp: "post", "post.series" | reverse %} +{% assign series_posts = site.posts + | where_exp: "post", "post.series == page.series" + | reverse %} + +{% for post in series_posts -%} + {% if post.url == page.url -%} +{{ forloop.index }}. **{{ post.title }}** + {% else -%} +{{ forloop.index }}. [{{ post.title }}]({{ post.url }}) + {% endif -%} +{% endfor %} +--- +{: .spaced.bottom } |
