From 15724b44a463c87a57674c17597219aa1403f226 Mon Sep 17 00:00:00 2001 From: "M. Taylor Saotome-Westlake" Date: Sun, 12 Apr 2020 15:03:16 -0700 Subject: [PATCH] fix Reddit share URL; driveby star, driveby trim dead code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I would have thought the SITEURL template variable would faithfully reflect my Pelican SITEURL setting, but instead it was getting populated as "../../.."?! (A relative-URLs setting??—the root is "three levels up" from `YYYY/Mon/post-slug/`.) Hardcoding it should be fine; the site isn't going anywhere (until the virus kills me). While we're here, get that disgraceful hyphen out of the page title. And, prune some conditional markup that misled my past self into thinking that SITEURL would work. --- theme/templates/article.html | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/theme/templates/article.html b/theme/templates/article.html index 0e6687f..fd28b3c 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -1,20 +1,11 @@ {% extends "base.html" %} -{% block title %}{{ article.title }} - {{ SITENAME }}{% endblock %} +{% block title %}{{ article.title }} ★ {{ SITENAME }}{% endblock %} {% block extra_meta %} - -{% if PELICAN_SIMPLEGREY_TWITTER_CARD_ACCOUNT %} - - - - - -{% endif %} {% endblock %} - {% block content %}
@@ -32,7 +23,7 @@ - + Submit to Reddit -- 2.17.1