Add: RSS link in head and footer

RSS [is shipped with Hugo](https://gohugo.io/templates/rss/), only need to be
added to the proper places (head and footer in my case).

Fixes #4
remotes/oscarmlage/main
Óscar M. Lage 2022-04-01 09:41:55 +02:00
parent 01d9c06d02
commit 64d48fcba8
3 changed files with 9 additions and 3 deletions

View File

@ -23,7 +23,7 @@
- [x] Add dotfiles to the resume
- [x] Add segun to the colophon
- [x] Take a look to the twitter-card/og for the index page
- [ ] RSS
- [x] RSS + referencee it in header
- [ ] Add vim + productivity to "hobbies" or "tools" section
- [ ] General review + Clean some stuff here and there
- [ ] Some images contains a `<p>`, get rid of it.

View File

@ -6,6 +6,10 @@
<li><a href="">twitter</a></li>
<li><a href="">instagram</a></li>
<li><a href="">twich</a></li>
<li><a href="mailto:info@oscarmlage">info@oscarmlage.com</a></li>
{{ with .OutputFormats.Get "rss" -}}
<li><a href="{{ .RelPermalink }}">rss</a></li>
{{ end -}}
<li><a href="mailto:info@oscarmlage">info@oscarmlage.com</a></li>
</ul>
</footer>

View File

@ -28,7 +28,9 @@
<meta name="theme-color" content="#ffffff">
<!-- RSS -->
<link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ with .OutputFormats.Get "rss" -}}
<link href="{{ .RelPermalink }}" rel="{{ .Rel }}" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" />
{{ end -}}
<!-- Metas -->
<meta itemprop="description" content="{{ .Content | plainify | htmlUnescape | truncate 100 }}">