Skip to content

Commit

Permalink
Removed webmention experiment
Browse files Browse the repository at this point in the history
Fixed target url in webmention form
  • Loading branch information
luord committed Oct 10, 2024
1 parent dc7e80c commit e65e728
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions content/Engineering/abstracting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pelicanconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
'status':'draft'
}
FILENAME_METADATA = '(?P<slug>.*)'
SUMMARY_MAX_LENGTH = 20

#FOLDER SETTINGS
PATH = 'content'
Expand Down
4 changes: 2 additions & 2 deletions theme/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ <h1>
{% if PDF_PROCESSOR %}
| <a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">Get the pdf</a>
{% endif %}
<p class="p-summary" style="display: none;">{{ article.summary | striptags }}</p>
</header>

<section class="e-content">
Expand All @@ -37,6 +36,7 @@ <h1>
{% endfor %}
</footer>
{% endif %}
<p class="p-summary" style="display: none;">{{ article.summary | striptags }}</p>
</article>
</section>
{% endblock %}
Expand All @@ -48,7 +48,7 @@ <h1>
<li><a href="https://form.jotform.com/233346248810051">Subscribe to the newsletter</a></li>
</ul>

{% with target_url = article.url %}
{% with target_url = SITEURL ~ '/' ~ article.url %}
<p class="webmention"><span>Send a <a href="https://indieweb.org/Webmention">webmention</a> to this article:</span></p>
{% include 'fragments/webmention.html' %}
{% endwith %}
Expand Down

0 comments on commit e65e728

Please sign in to comment.