Just a quick follow up on
.I used the twigfeeds plugin to bring in a feed of my links on Reading.am to the sidebar here. Chris Aldrich that when I use Reading.am as a way to read something again, it helpfully inserts because of Jeremy Cherfas at the end of the RSS entry. And if I can filter one piece of fluff out with a regex, I can do it for two. Here, then, is the code snippet for sidebar.html.twig
with the final filter. Obviously, you would change it to suit your own needs.
<div class="sidebar-content">
<h4>Reading</h4>
{% for name, feed in twig_feeds if name == 'Reading' %}
{% for item in feed.items %}
<p>
<a href="{{ item.url }}">{{ item.title | regex_replace(['/Jeremy Cherfas is reading /', '/ because of Jeremy Cherfas/'],['','']) }}</a>
</p>
<time>{{ item.date.date|nicetime(false) }}</time>
{% endfor %}
{% endfor %}
</div>
Maybe someone will find this useful.
Two ways to respond: webmentions and comments
Webmentions
Webmentions allow conversations across the web, based on a web standard. They are a powerful building block for the decentralized social web.
“Ordinary” comments