From e2abc40c0286d565e6ef1d3493cbed2e4fbd3422 Mon Sep 17 00:00:00 2001 From: Michael Haslam Date: Thu, 16 Feb 2023 21:40:57 +0000 Subject: [PATCH 1/2] Integrate pelican series plugin with article template. --- templates/article.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/templates/article.html b/templates/article.html index 8bac501e..22b2cb77 100644 --- a/templates/article.html +++ b/templates/article.html @@ -31,6 +31,18 @@

{{ article.title }}

+ + {% if article.series %} +

This post is part {{ article.series.index }} of the "{{ article.series.name }}" series:

+
    + {% for part_article in article.series.all %} +
  1. + {{ part_article.title }} +
  2. + {% endfor %} +
+ {% endif %} + {% if DISQUS_SITENAME %}
From d9a0aaecafb413e8535f9b11b7f8ea95b2ad63a4 Mon Sep 17 00:00:00 2001 From: Michael Haslam Date: Thu, 16 Feb 2023 21:44:46 +0000 Subject: [PATCH 2/2] Update README with list item and link to pelican series plugin. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 98327bda..1af46591 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ You can see the [theme in action](http://www.giuliofidente.com/). - supports google analytics and [matomo](https://matomo.org/) - custom list of links - supports the [readtime](https://github.com/getpelican/pelican-plugins/tree/master/readtime) plugin +- supports the [series](https://github.com/pelican-plugins/series) plugin ## KNOWN ISSUES