The bmannconsulting.com website

Mastodon feed

+7 -5
journal-fedica-mastodon.xml
···
>
<channel>
<title>{{ site.name | xml_escape }} - Journal Feed</title>
-
<description>A journal feed built for Fedica to cross-post, Mastodon flavoured</description>{% comment %} See https://bmannconsulting.com/notes/fedica/ for cross-posting rules {% endcomment %}
+
<description>A journal feed built for Fedica to cross-post, Mastodon flavoured with hashtags</description>{% comment %} See https://bmannconsulting.com/notes/fedica/ for cross-posting rules {% endcomment %}
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}{{ page.url }}" rel="self" type="application/rss+xml" />
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
···
{% for post in sortedblog limit:20 %}
<item>
<dc:creator>Boris Mann</dc:creator>
-
{% assign description = post.content | replace: "<blockquote>", "〖" | replace: "</blockquote>", "〗 " | strip_html %}
-
{% if post.link %}
-
{% assign description = description | append: " " | append: post.link %}
-
{% endif %}
+
{% assign description = post.content | xml_escape | replace: 'src=&quot;/', 'src=&quot;https://bmannconsulting.com/' | replace: 'href=&quot;/', 'href=&quot;https://bmannconsulting.com/' %}
{% comment %} Capture: we loop through all of the tags and make a list of hashtags separated by spaces {% endcomment %}
{% capture taglist %}{% for tag in post.tags %} #{{ tag }}{% endfor %}{% endcapture %}
{% assign description = description | append: taglist %}
<description>{{ description | xml_escape }}</description>
+
{% if post.link %}
+
<link>{{ post.link }}</link>
+
{% else %}
<link>{{ site.url }}{{ post.url }}</link>
+
{% endif %}
+
{% comment %} somewhere we need to parse out all the image tags and add them as enclosures {% endcomment %}
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<guid isPermaLink="true">https://bmannconsulting.com{{ post.url }}</guid>
</item>