From a6f12ec78197f48015e51f765ee3974351e18910 Mon Sep 17 00:00:00 2001 From: Oliver Pratt Date: Sat, 22 Apr 2017 07:54:50 +0100 Subject: [PATCH] Add support for the neighbors plugin (#98) --- README.md | 1 + static/stylesheet/style.less | 5 +++++ templates/article.html | 2 ++ templates/partial/neighbors.html | 14 ++++++++++++++ tests/pelicanconf.py | 9 +++++---- 5 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 templates/partial/neighbors.html diff --git a/README.md b/README.md index fd0a25f..9c6725d 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ DON'T send any questions, issues or anything related to Flex to my personal emai - [Minute read](https://github.com/getpelican/pelican-plugins/tree/master/post_stats)) (new in 2.0) - [Related Posts](https://github.com/getpelican/pelican-plugins/tree/master/related_posts) - [Representative image](https://github.com/getpelican/pelican-plugins/tree/master/representative_image) (new in 2.2) +- [Neighbors](https://github.com/getpelican/pelican-plugins/tree/master/neighbors) (new in 2.2) ## Install diff --git a/static/stylesheet/style.less b/static/stylesheet/style.less index 0f8722d..2e85900 100644 --- a/static/stylesheet/style.less +++ b/static/stylesheet/style.less @@ -138,6 +138,11 @@ main { } } + .neighbors { + margin: 4% 0% 4% 0%; + height: 20px; + } + .pagination { margin: 4% 8% 4% 8%; height: 20px; diff --git a/templates/article.html b/templates/article.html index f1e8cb1..080aeb2 100644 --- a/templates/article.html +++ b/templates/article.html @@ -57,6 +57,8 @@ {% endif %} + {% include "partial/neighbors.html" %} + {% if article.related_posts %}