Skip to content

Commit 1f54838

Browse files
committed
Generate absolute URLs automatically
This allows a `localhost:4000`-style URL to be generated for local testing, but still gives an absolute URL, which enhances compatibility with RSS readers. A comment is added explaining the reason for the absolute URL. Closes #1374
1 parent 5571358 commit 1f54838

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_includes/downloads/board_image.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{% assign small_image = "/assets/images/boards/small/" | append: include.board_image %}
22
{% assign large_image = "/assets/images/boards/large/" | append: include.board_image %}
3-
<img srcset="https://circuitpython.org{{ small_image }} 300w,
4-
https://circuitpython.org{{ large_image }} 700w"
3+
<!-- (uses an absolute URL for better compatibility with RSS readers -->
4+
<img srcset="{{ small_image | absolute_url }} 300w,
5+
{{ large_image | absolute_url }} 700w"
56
sizes="(max-width: 1024px) 700px,
67
300px"
78
src="https://circuitpython.org{{ large_image }}" alt="Image of Board" loading="lazy">

0 commit comments

Comments
 (0)