janispagel.de

Source code for https://janispagel.de
Log | Files | Refs | README | LICENSE

commit 02ed8af220dfc31f06acc0b1d5fbc133cf3e3e78
parent 41a26b128283af9ae627c5e48adce9553e3caf5f
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Sat, 27 Jun 2020 22:19:05 +0200

Add feed icon

Diffstat:
M_layouts/home.html | 2+-
M_sass/minima/_custom-styles.scss | 4++++
Mnews.md | 2+-
3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/_layouts/home.html b/_layouts/home.html @@ -11,7 +11,7 @@ layout: default {%- if site.posts.size > 0 -%} <h2 class="post-list-heading"><a href="/news">{{ page.list_title | default: "News" }}</a></h2> - <h3><a href="/feed.xml">Atom feed</h3> + <h3><div class="feed-subscribe"><a href="/feed.xml"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"/></svg> Atom feed</a></div></h3> <ul class="post-list"> {%- for post in site.posts limit: 3 -%} <li> diff --git a/_sass/minima/_custom-styles.scss b/_sass/minima/_custom-styles.scss @@ -3,6 +3,10 @@ border-top: 0px; } +.feed-subscribe .svg-icon { + padding: 5px 5px 5px 0; +} + /* Override minima nav */ .site-nav { diff --git a/news.md b/news.md @@ -4,7 +4,7 @@ title: News permalink: /news/ --- -<h3><a href="/feed.xml">Atom feed</a></h3> +<h3><div class="feed-subscribe"><a href="/feed.xml"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"/></svg> Atom feed</a></div></h3> {%- if site.posts.size > 0 -%}