Added RSS Icon + Added image to items

This commit is contained in:
Melissa LeBlanc-Williams 2020-04-03 17:09:10 -07:00
parent 015fee32a2
commit 3581c2de24
4 changed files with 16 additions and 7 deletions

View file

@ -4,13 +4,11 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<!-- CircuitPython RSS Feed -->
<link rel="alternate"
type="application/rss+xml"
title="CircuitPython news!"
href="https://blog.adafruit.com/category/circuitpython/feed/"/>
<link rel="alternate" type="application/rss+xml" title="Latest Boards" href="/feed.rss"/>
<script src="{{ "/assets/javascript/header_mobile.js" | relative_url }}"></script>
</head>

View file

@ -8,7 +8,10 @@
<a {% if current[1] == 'awesome' %}class='active'{% endif %} href="{{ "/awesome" | relative_url }}">Awesome</a>
<a href="https://www.adafruitdaily.com/category/circuitpython">Newsletter</a>
<a href="https://forums.adafruit.com/viewforum.php?f=60">Help</a>
<a href="https://adafru.it/discord"><i class="fab fa-discord"></i></a>
<span>
<a href="https://adafru.it/discord"><i class="fab fa-discord"></i></a>
<a href="{{ '/feed.rss' | relative_url }}" type="application/rss+xml"><i class="fas fa-rss-square"></i></a>
</span>
</div>
</div>
</div>

View file

@ -41,7 +41,6 @@
justify-content: flex-end;
a {
margin-left: 40px;
font-size: 16px;
color: #999999;
@ -49,6 +48,15 @@
color: #fff;
}
}
&> a {
margin-left: 40px;
}
&> span {
margin-left: 35px;
a {
margin-left: 5px;
}
}
}
}

View file

@ -16,7 +16,7 @@ permalink: /feed.rss
<item>
<title>{{ board.name }}</title>
<link>{{ board.url | absolute_url }}</link>
<description><![CDATA[ <p>By {{ board.manufacturer }}</p> {{ board.content }} ]]></description>
<description><![CDATA[ {% include downloads/board_image.html board_image=board.board_image %}<p>By {{ board.manufacturer }}</p> {{ board.content }} ]]></description>
<category>CircuitPython</category>
<pubDate>{{ board.date_added | date: '%s' | plus: twelve_hours | date_to_rfc822 }}</pubDate>
<guid>{{ board.url | absolute_url }}</guid>
@ -27,7 +27,7 @@ permalink: /feed.rss
<item>
<title>{{ board.name }}</title>
<link>{{ board.url | absolute_url }}</link>
<description><![CDATA[ <p>By {{ board.manufacturer }}</p> {{ board.content }} ]]></description>
<description><![CDATA[ {% include downloads/board_image.html board_image=board.board_image %}<p>By {{ board.manufacturer }}</p> {{ board.content }} ]]></description>
<category>Blinka</category>
<pubDate>{{ board.date_added | date: '%s' | plus: twelve_hours | date_to_rfc822 }}</pubDate>
<guid>{{ board.url | absolute_url }}</guid>