Skip to content

Commit 6713aaf

Browse files
authored
Add RSS feed to blog
closes #168
1 parent f82ded8 commit 6713aaf

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ This changelog follows the patterns described here: https://keepachangelog.com/e
55
Subheadings to categorize changes are `added, changed, deprecated, removed, fixed, security`.
66

77
## Unreleased
8+
### added
9+
- Closed [#168](https://github.com/thedodd/trunk/issues/158): RSS feed for blog
810

911
## 0.12.1
1012
### fixed

site/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ compile_sass = true
66
highlight_code = true
77
highlight_theme = "inspired-github"
88
build_search_index = true
9+
generate_feed = true
910

1011
theme = "juice"
1112

site/templates/blog.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
{% block title %}{{ section.title }} | {{ super() }} {% endblock title %}
55

6+
{% block head %}
7+
{% block rss %}
8+
<link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
9+
{% endblock %}
10+
{% endblock head %}
11+
612
{% block header %}
713
<header class="box-shadow">
814
{{ macros::render_header() }}
@@ -11,6 +17,7 @@
1117

1218
{% block toc %}
1319
<div class="toc">
20+
<h2 class="toc-item"><a href="/atom.xml">Subscribe</a></h2>
1421
<div class="toc-sticky">
1522
{% for post in section.pages %}
1623
<div class="toc-item">

0 commit comments

Comments
 (0)