From e65e728502221819319b69f8c2e56a89f24cad1a Mon Sep 17 00:00:00 2001 From: Luis Orduz Date: Wed, 9 Oct 2024 22:32:35 -0500 Subject: [PATCH] Removed webmention experiment Fixed target url in webmention form --- content/Engineering/abstracting.md | 3 +-- pelicanconf.py | 1 + theme/templates/article.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/Engineering/abstracting.md b/content/Engineering/abstracting.md index 0a70a4cb..68757cc2 100644 --- a/content/Engineering/abstracting.md +++ b/content/Engineering/abstracting.md @@ -5,11 +5,10 @@ date: 2022-03-31 image: /assets/img/abstracting/idea.jpg status: published -In [my last post][refactoring]{.u-url}, we did a basic rundown of a very convoluted short algorithm to make +In [my last post][refactoring], we did a basic rundown of a very convoluted short algorithm to make more explicit what was actually happening in it. That by itself goes a long way in improving how readable the code is, and thus makes it easier to maintain. I've seen small improvements like that be welcome enthusiastically among different teams, but we can go further. -{.h-cite} I remember a project I worked on where there was basically no separation of concerns between request handling boilerplate, database connection boilerplate and actual business logic; everything was handled diff --git a/pelicanconf.py b/pelicanconf.py index 4eaa58a7..9cd08e28 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -30,6 +30,7 @@ 'status':'draft' } FILENAME_METADATA = '(?P.*)' +SUMMARY_MAX_LENGTH = 20 #FOLDER SETTINGS PATH = 'content' diff --git a/theme/templates/article.html b/theme/templates/article.html index d351b0c3..2125d6a2 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -21,7 +21,6 @@

{% if PDF_PROCESSOR %} | Get the pdf {% endif %} -
@@ -37,6 +36,7 @@

{% endfor %} {% endif %} +

{% endblock %} @@ -48,7 +48,7 @@

  • Subscribe to the newsletter
  • - {% with target_url = article.url %} + {% with target_url = SITEURL ~ '/' ~ article.url %}

    Send a webmention to this article:

    {% include 'fragments/webmention.html' %} {% endwith %}