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 #4remotes/oscarmlage/main
parent
01d9c06d02
commit
64d48fcba8
2
TODO.md
2
TODO.md
|
@ -23,7 +23,7 @@
|
||||||
- [x] Add dotfiles to the resume
|
- [x] Add dotfiles to the resume
|
||||||
- [x] Add segun to the colophon
|
- [x] Add segun to the colophon
|
||||||
- [x] Take a look to the twitter-card/og for the index page
|
- [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
|
- [ ] Add vim + productivity to "hobbies" or "tools" section
|
||||||
- [ ] General review + Clean some stuff here and there
|
- [ ] General review + Clean some stuff here and there
|
||||||
- [ ] Some images contains a `<p>`, get rid of it.
|
- [ ] Some images contains a `<p>`, get rid of it.
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
<li><a href="">twitter</a></li>
|
<li><a href="">twitter</a></li>
|
||||||
<li><a href="">instagram</a></li>
|
<li><a href="">instagram</a></li>
|
||||||
<li><a href="">twich</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>
|
</ul>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -28,7 +28,9 @@
|
||||||
<meta name="theme-color" content="#ffffff">
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
<!-- RSS -->
|
<!-- 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 -->
|
<!-- Metas -->
|
||||||
<meta itemprop="description" content="{{ .Content | plainify | htmlUnescape | truncate 100 }}">
|
<meta itemprop="description" content="{{ .Content | plainify | htmlUnescape | truncate 100 }}">
|
||||||
|
|
Loading…
Reference in New Issue