Skip to content

Commit

Permalink
Fix images in rss feed and default blog post image
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteHamster committed Dec 3, 2024
1 parent 2053300 commit ac6ed9b
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blog/index.html
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ <h1 class="color-gray-800 weight-700">{% t titles.blog %}</h1>
<div class="col-12 col-md-4 mb-4 d-flex">
<div class="card highlight-card">
<a class="stretched-link" href="{{ site.baseurl }}{{ blog.url | replace:'.html','' }}"></a>
<img src="/assets/{% if blog.image %}images/blog/{{ blog.image }}{% else %}branding/default-cover.png{% endif %}" loading="lazy" />
<img src="/assets/images/blog/{% if blog.image %}{{ blog.image }}{% else %}2020/default.png{% endif %}" loading="lazy" />
<h3 class="weight-700 pt-4">{{ blog.title }}</h3>
<p class="mb-4">{{ blog.excerpt | strip_html | truncate: 100 }}</p>
<div class="bottom">
3 changes: 2 additions & 1 deletion rss.xml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ layout: null
<description>AntennaPod Blog posts</description>
<link>{{ site.url }}/blog</link>
<image>
<url>{{ site.url }}/assets/images/favicons/android-chrome-512x512.png</url>
<url>{{ site.url }}/assets/branding/favicons/android-chrome-512x512.png</url>
<title>AntennaPod Blog</title>
</image>
<language>en-us</language>
@@ -26,6 +26,7 @@ layout: null
{{ blog.content | replace:'="/',url_and_equals }}
]]></description>
<pubDate>{{ blog.date | date_to_rfc822 }}</pubDate>
<image><url>{{ site.url }}/assets/images/blog/{% if blog.image %}{{ blog.image }}{% else %}2020/default.png{% endif %}</url></image>
</item>
{% endif %}
{% endfor %}

0 comments on commit ac6ed9b

Please sign in to comment.