Skip to content

Commit 96b909b

Browse files
authored
Merge pull request #445 from makermelissa/master
Added RSS Icon + Added image to items
2 parents 015fee3 + 3581c2d commit 96b909b

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

_includes/head.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
55
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
66
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
7-
87
<!-- CircuitPython RSS Feed -->
98
<link rel="alternate"
109
type="application/rss+xml"
1110
title="CircuitPython news!"
1211
href="https://blog.adafruit.com/category/circuitpython/feed/"/>
12+
<link rel="alternate" type="application/rss+xml" title="Latest Boards" href="/feed.rss"/>
1313
<script src="{{ "/assets/javascript/header_mobile.js" | relative_url }}"></script>
1414
</head>
15-
16-

_includes/header.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
<a {% if current[1] == 'awesome' %}class='active'{% endif %} href="{{ "/awesome" | relative_url }}">Awesome</a>
99
<a href="https://www.adafruitdaily.com/category/circuitpython">Newsletter</a>
1010
<a href="https://forums.adafruit.com/viewforum.php?f=60">Help</a>
11-
<a href="https://adafru.it/discord"><i class="fab fa-discord"></i></a>
11+
<span>
12+
<a href="https://adafru.it/discord"><i class="fab fa-discord"></i></a>
13+
<a href="{{ '/feed.rss' | relative_url }}" type="application/rss+xml"><i class="fas fa-rss-square"></i></a>
14+
</span>
1215
</div>
1316
</div>
1417
</div>

assets/sass/layout/_header.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,22 @@
4141
justify-content: flex-end;
4242

4343
a {
44-
margin-left: 40px;
4544
font-size: 16px;
4645
color: #999999;
4746

4847
&:hover {
4948
color: #fff;
5049
}
5150
}
51+
&> a {
52+
margin-left: 40px;
53+
}
54+
&> span {
55+
margin-left: 35px;
56+
a {
57+
margin-left: 5px;
58+
}
59+
}
5260
}
5361
}
5462

feed.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<item>
1717
<title>{{ board.name }}</title>
1818
<link>{{ board.url | absolute_url }}</link>
19-
<description><![CDATA[ <p>By {{ board.manufacturer }}</p> {{ board.content }} ]]></description>
19+
<description><![CDATA[ {% include downloads/board_image.html board_image=board.board_image %}<p>By {{ board.manufacturer }}</p> {{ board.content }} ]]></description>
2020
<category>CircuitPython</category>
2121
<pubDate>{{ board.date_added | date: '%s' | plus: twelve_hours | date_to_rfc822 }}</pubDate>
2222
<guid>{{ board.url | absolute_url }}</guid>
@@ -27,7 +27,7 @@
2727
<item>
2828
<title>{{ board.name }}</title>
2929
<link>{{ board.url | absolute_url }}</link>
30-
<description><![CDATA[ <p>By {{ board.manufacturer }}</p> {{ board.content }} ]]></description>
30+
<description><![CDATA[ {% include downloads/board_image.html board_image=board.board_image %}<p>By {{ board.manufacturer }}</p> {{ board.content }} ]]></description>
3131
<category>Blinka</category>
3232
<pubDate>{{ board.date_added | date: '%s' | plus: twelve_hours | date_to_rfc822 }}</pubDate>
3333
<guid>{{ board.url | absolute_url }}</guid>

0 commit comments

Comments
 (0)