The bmannconsulting.com website

absolute image path hack

Changed files
+20 -2
_journals
_notes
+17
_journals/2024-01-05_0042.md
··· 1 + --- 2 + title: January 5th, 2024 3 + date: 2024-01-05, 00:42:53 -08:00 4 + section: journal 5 + aliases: 6 + tags: 7 + - jekyll 8 + - rss 9 + link: https://bdunagan.com/2021/10/29/jekyll-tip-absolute-urls-for-links-and-images-in-rss-feed/ 10 + --- 11 + OK, one more quick hack to the Journal feed. 12 + 13 + 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. 14 + 15 + [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. 16 + 17 + I'll test it tomorrow by posting an image. Time for bed!
+2 -1
_notes/BMC.md
··· 6 6 7 7 ## To Do 8 8 9 - - [ ] Journal feed modification to truncate and include link back to journal post. Will Microblog respect 500 characters? 9 + - [ ] Journal feed modifications 10 10 - Maybe not? I think things are coming through OK 11 11 - I should consider linking back to the actual journal entry. Hmm, or maybe appending a hashtag like `BMCJournal` for context 12 12 - could also do tags-as-hashtags and append them 13 13 - Maybe: do something special if link exists 14 + - Figure out how to make sure that full path image links are included 14 15 - [ ] Update front page to have recent journal entries. 15 16 - [x] Display “via” frontmatter [[via]] 16 17 - [x] Turn off linking out to notes
+1 -1
journal.xml
··· 18 18 {% if site.name %} 19 19 <dc:creator>{{ site.name | xml_escape }}</dc:creator> 20 20 {% endif %} 21 - <description>{{ post.content | xml_escape }}</description> 21 + <description>{{ post.content | xml_escape | replace: 'src=&quot;/', 'src=&quot;https://bmannconsulting.com/' }}</description> 22 22 <link>{{ site.url }}{{ post.url }}</link> 23 23 <pubDate>{{ post.date | date_to_rfc822 }}</pubDate> 24 24 <guid isPermaLink="true">https://bmannconsulting.com{{ post.url }}</guid>