Skip to content

Commit 6f6aa86

Browse files
committed
Add RSS icon to nav and fix feed to full content
- Add RSS feed icon link in navigation bar with responsive sizing (20px mobile, 25px desktop) via .rss-icon class - Remove excerpt_only from feed config so feed serves full post HTML - Rebuild and verify feed.xml contains <content type="html"> tags
1 parent 4733f55 commit 6f6aa86

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

_config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ remote_theme: chesterhow/tale
2929

3030
# Feed settings
3131
feed:
32-
excerpt_only: true
3332
posts_limit: 50
3433

3534
# Build settings

_includes/navigation.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 01-.3-.94l1.22-3.78 2.31-7.15A.47.47 0 014.82 2c.14-.05.28-.05.42 0a.51.51 0 01.2.15.5.5 0 01.1.57l1.63 5.06h9.78l1.63-5.06a.5.5 0 01.56-.36.5.5 0 01.28.21l2.31 7.15 1.22 3.78a.84.84 0 01-.3.94z"/>
2424
</svg>
2525
</a>
26+
<a href="{{ '/feed.xml' | prepend: site.baseurl }}" class="nav-social-link" aria-label="RSS Feed">
27+
<svg class="rss-icon" viewBox="0 0 24 24" fill="currentColor">
28+
<path d="M6.18 17.82a2.18 2.18 0 1 0 0 4.36 2.18 2.18 0 0 0 0-4.36zM5 12a7 7 0 0 1 7 7h2.5a9.5 9.5 0 0 0-9.5-9.5V12zm0-5a12 12 0 0 1 12 12h2.5A14.5 14.5 0 0 0 5 4.5V7z"/>
29+
</svg>
30+
</a>
2631

2732
</div>
2833
</div>

assets/main.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ html, body {
5656
text-decoration: none;
5757
transition: all 0.2s ease;
5858

59+
svg.rss-icon {
60+
width: 20px;
61+
height: 20px;
62+
}
63+
5964
@media (min-width: 600px) {
6065
height: 48px;
6166
width: 48px;
@@ -64,6 +69,11 @@ html, body {
6469
width: 24px;
6570
height: 24px;
6671
}
72+
73+
svg.rss-icon {
74+
width: 25px;
75+
height: 25px;
76+
}
6777
}
6878

6979
&:hover {

0 commit comments

Comments
 (0)