Skip to content

Commit

Permalink
Add RSS feed to blog
Browse files Browse the repository at this point in the history
closes #168
  • Loading branch information
lanesawyer authored Aug 5, 2021
1 parent f82ded8 commit 6713aaf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ This changelog follows the patterns described here: https://keepachangelog.com/e
Subheadings to categorize changes are `added, changed, deprecated, removed, fixed, security`.

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

## 0.12.1
### fixed
Expand Down
1 change: 1 addition & 0 deletions site/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ compile_sass = true
highlight_code = true
highlight_theme = "inspired-github"
build_search_index = true
generate_feed = true

theme = "juice"

Expand Down
7 changes: 7 additions & 0 deletions site/templates/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

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

{% block head %}
{% block rss %}
<link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
{% endblock %}
{% endblock head %}

{% block header %}
<header class="box-shadow">
{{ macros::render_header() }}
Expand All @@ -11,6 +17,7 @@

{% block toc %}
<div class="toc">
<h2 class="toc-item"><a href="/atom.xml">Subscribe</a></h2>
<div class="toc-sticky">
{% for post in section.pages %}
<div class="toc-item">
Expand Down

0 comments on commit 6713aaf

Please sign in to comment.