The old Pelican theme I used to use for mcol.xyz
git clone https://mcol.xyz/code/rice-theme
Log | Files | Refs | README

commit 8be9a85519c7c72d8ede31634fa7e5faae2e4c80
parent 313415c04bd444fdc5772220f3c89f3aea935837
Author: mcol <mcol@posteo.net>
Date:   Thu,  6 Aug 2020 22:01:22 +0100

remove comments from blogroll

Diffstat:
Mreadme.rst | 2+-
Mstatic/css/main.css | 5++---
Mtemplates/blogroll.html | 22+++++-----------------
3 files changed, 8 insertions(+), 21 deletions(-)

diff --git a/readme.rst b/readme.rst @@ -35,7 +35,7 @@ Non-standard variables :widths: auto ========== ======================= - BLOGROLL A list of lists, where each inner list has 2-4 elements in the order: name, full URL, comment, pretty URL. The second 2 elements are optional. This will be rendered below the content on a page using the blogroll template. + BLOGROLL A list of lists, where each inner list has 3 elements in the order: name, full URL (link), short URL (text). This will be rendered below the content on a page using the blogroll template. EXTRAHEAD (string) Extra headers to add to every page verbatim. diff --git a/static/css/main.css b/static/css/main.css @@ -262,9 +262,8 @@ table { /* BLOGROLL */ -.cmnt { - padding-left: 40px; - padding-bottom: 14px; +#blogroll li { + padding: 6px; } diff --git a/templates/blogroll.html b/templates/blogroll.html @@ -6,22 +6,10 @@ {{ page.content }} -<div id=blogroll> - {% for blog in BLOGROLL %} - - <div class=blg> - {% if blog|length < 4 %} - <a href="{{ blog[1] }}">{{ blog[0] }}</a> - {% else %} - {{ blog[0] }} at <a href="{{ blog[1] }}">{{ blog[3] }}</a> - {% endif %} - </div> - - {% if blog|length > 2 %} - <div class=cmnt>{{ blog[2] }}</div> - {% endif %} - - {% endfor %} -</div> +<ul id=blogroll> + {% for blog in BLOGROLL %} + <li>{{ blog[0] }} at <a href="{{ blog[1] }}">{{ blog[2] }}</a></li> + {% endfor %} +</ul> {% endblock %}