Browse Source

add RSS feed URL

main
Nicolas Massé 2 years ago
parent
commit
5cffa3680e
  1. 2
      i18n/en.yaml
  2. 2
      i18n/fr.yaml
  3. 6
      layouts/partials/icons/rss_feed.svg
  4. 5
      layouts/partials/toolbar.html

2
i18n/en.yaml

@ -38,3 +38,5 @@
translation: Show the menu
- id: file
translation: 'File "%s"'
- id: rss_feed
translation: 'RSS Feed'

2
i18n/fr.yaml

@ -38,3 +38,5 @@
translation: Afficher le menu
- id: file
translation: 'Fichier "%s"'
- id: rss_feed
translation: 'Flux RSS'

6
layouts/partials/icons/rss_feed.svg

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" height="32" viewBox="0 0 24 24" width="32">
<title>rss_feed</title>
<path d="M0 0h24v24H0z" fill="none"/>
<circle cx="6.18" cy="17.82" r="2.18"/>
<path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z"/>
</svg>

After

Width:  |  Height:  |  Size: 350 B

5
layouts/partials/toolbar.html

@ -14,5 +14,10 @@
<a href="{{ relref . "/search/index.md" }}" class="action" title="{{ i18n "search" }}">
{{- partial "icons/search.svg" . -}}
</a>
{{ with .OutputFormats.Get "rss" -}}
<a href="{{ .Permalink }}" class="action" title="{{ i18n "rss_feed" }}">
{{- partial "icons/rss_feed.svg" . -}}
</a>
{{ end }}
</div>
</aside>

Loading…
Cancel
Save