Skip to content

Added RSS Icon + Added image to items #445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>


5 changes: 4 additions & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
10 changes: 9 additions & 1 deletion assets/sass/layout/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,22 @@
justify-content: flex-end;

a {
margin-left: 40px;
font-size: 16px;
color: #999999;

&:hover {
color: #fff;
}
}
&> a {
margin-left: 40px;
}
&> span {
margin-left: 35px;
a {
margin-left: 5px;
}
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions feed.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<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>
Expand All @@ -27,7 +27,7 @@
<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>
Expand Down