The bmannconsulting.com website

absolute image path hack

Changed files
+20 -2
_journals
_notes
+17
_journals/2024-01-05_0042.md
···
···
+
---
+
title: January 5th, 2024
+
date: 2024-01-05, 00:42:53 -08:00
+
section: journal
+
aliases:
+
tags:
+
- jekyll
+
- rss
+
link: https://bdunagan.com/2021/10/29/jekyll-tip-absolute-urls-for-links-and-images-in-rss-feed/
+
---
+
OK, one more quick hack to the Journal feed.
+
+
Relative paths for images are a problem. Maybe they actually aren't for many modern feed readers. But they ARE if I want Micro.blog to crosspost correctly.
+
+
[Found this hack to use the Liquid `replace` filter](https://bdunagan.com/2021/10/29/jekyll-tip-absolute-urls-for-links-and-images-in-rss-feed/) to look for src tags and then add in the full path to your site.
+
+
I'll test it tomorrow by posting an image. Time for bed!
+2 -1
_notes/BMC.md
···
## To Do
-
- [ ] Journal feed modification to truncate and include link back to journal post. Will Microblog respect 500 characters?
- Maybe not? I think things are coming through OK
- I should consider linking back to the actual journal entry. Hmm, or maybe appending a hashtag like `BMCJournal` for context
- could also do tags-as-hashtags and append them
- Maybe: do something special if link exists
- [ ] Update front page to have recent journal entries.
- [x] Display “via” frontmatter [[via]]
- [x] Turn off linking out to notes
···
## To Do
+
- [ ] Journal feed modifications
- Maybe not? I think things are coming through OK
- I should consider linking back to the actual journal entry. Hmm, or maybe appending a hashtag like `BMCJournal` for context
- could also do tags-as-hashtags and append them
- Maybe: do something special if link exists
+
- Figure out how to make sure that full path image links are included
- [ ] Update front page to have recent journal entries.
- [x] Display “via” frontmatter [[via]]
- [x] Turn off linking out to notes
+1 -1
journal.xml
···
{% if site.name %}
<dc:creator>{{ site.name | xml_escape }}</dc:creator>
{% endif %}
-
<description>{{ post.content | xml_escape }}</description>
<link>{{ site.url }}{{ post.url }}</link>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<guid isPermaLink="true">https://bmannconsulting.com{{ post.url }}</guid>
···
{% if site.name %}
<dc:creator>{{ site.name | xml_escape }}</dc:creator>
{% endif %}
+
<description>{{ post.content | xml_escape | replace: 'src=&quot;/', 'src=&quot;https://bmannconsulting.com/' }}</description>
<link>{{ site.url }}{{ post.url }}</link>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<guid isPermaLink="true">https://bmannconsulting.com{{ post.url }}</guid>