commit b1b1821a47ffc971ef73bb5bf499cbcbd7cedd4f
parent 6bd1e0e428c8770e49ba7fbfd14dbe029fea3c1e
Author: oscarbenedito <oscar@oscarbenedito.com>
Date:   Sat, 18 Apr 2020 16:59:22 +0200

Blogroll generation is now automatic from JSON file

Diffstat:
Mcontent/resources.md | 26+-------------------------
Adata/blogroll.json | 126+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Alayouts/shortcodes/blogroll.html | 5+++++
3 files changed, 132 insertions(+), 25 deletions(-)

diff --git a/content/resources.md b/content/resources.md @@ -17,28 +17,4 @@ I have also found [AlternativeTo](https://alternativeto.net/) to be really usefu Blogs I have found interesting, alphabetically sorted. - - [blacklight447](https://write.privacytools.io/my-thoughts-on-security/) — [Feed](https://write.privacytools.io/my-thoughts-on-security/feed/) - - [Brendan Abolivier](https://brendan.abolivier.bzh/) — [Feed](https://brendan.abolivier.bzh/index.xml) - - [Codesections](https://www.codesections.com/blog/) — [Feed](https://www.codesections.com/rss.xml) - - [Ctrl blog](https://www.ctrl.blog/) — [Feed](https://feed.ctrl.blog/latest.atom) - - [davd.io](https://www.davd.io/) — [Feed](https://www.davd.io/index.xml) - - [Dave Lane](https://davelane.nz/blog) — [Feed](https://davelane.nz/rss.xml) - - [Desmond Rivet](https://desmondrivet.com/blog/) — [Feed](https://desmondrivet.com/feeds/blog.rss) - - [Emanuel Pina](https://emanuelpina.pt/) — [Feed](https://emanuelpina.pt/index.xml) - - [Henrique Dias](https://hacdias.com/blog/) — [Feed](https://hacdias.com/blog/feed.xml) - - [InfoSec Handbook](https://infosec-handbook.eu/blog/) — [Feed](https://infosec-handbook.eu/blog/index.xml) - - [Jan-Lukas Else](https://jlelse.blog/) — [Feed](https://jlelse.blog/index.xml) - - [Justin Vollmer](https://www.justinvollmer.com/) — [Feed](https://www.justinvollmer.com/feed/) - - [Kev Quirk](https://kevq.uk/) — [Feed](https://kevq.uk/feed) - - [Marko Saric](https://markosaric.com/blog/) — [Feed](https://markosaric.com/blog/feed/) - - [Matthias Ott](https://matthiasott.com/) — [Feed](https://matthiasott.com/rss) - - [mcol](https://mcol.xyz/) — [Feed](https://mcol.xyz/rss.xml) - - [Mike Babb](https://mikebabb.com/blog/) — [Feed](https://mikebabb.com/feed.xml) - - NCSC Guidance Feed — [Feed](https://www.ncsc.gov.uk/feeds/guidance.xml) - - [PapaTutuWawa](https://blog.polynom.me/) — [Feed](https://blog.polynom.me/atom.xml) - - [PINE64](https://www.pine64.org/blog/) — [Feed](https://www.pine64.org/feed/) - - [Privacy International](https://privacyinternational.org/) — [Feed](https://privacyinternational.org/rss.xml) - - [privacytools.io](https://blog.privacytools.io/) — [Feed](https://blog.privacytools.io/rss/) - - [Sheogorath](https://shivering-isles.com/#blog) — [Feed](https://shivering-isles.com/feed.xml) - - [The New Oil](https://write.as/thenewoil/) — [Feed](https://write.as/thenewoil/feed/) - - [Tutanota](https://tutanota.com/blog/) — [Feed](https://tutanota.com/blog/feed.xml) +{{< blogroll >}} diff --git a/data/blogroll.json b/data/blogroll.json @@ -0,0 +1,126 @@ +[ + { + "name": "blacklight447", + "url": "https://write.privacytools.io/my-thoughts-on-security/", + "feed": "https://write.privacytools.io/my-thoughts-on-security/feed/" + }, + { + "name": "Brendan Abolivier", + "url": "https://brendan.abolivier.bzh/", + "feed": "https://brendan.abolivier.bzh/index.xml" + }, + { + "name": "Codesections", + "url": "https://www.codesections.com/blog/", + "feed": "https://www.codesections.com/rss.xml" + }, + { + "name": "Ctrl blog", + "url": "https://www.ctrl.blog/", + "feed": "https://feed.ctrl.blog/latest.atom" + }, + { + "name": "davd.io", + "url": "https://www.davd.io/", + "feed": "https://www.davd.io/index.xml" + }, + { + "name": "Dave Lane", + "url": "https://davelane.nz/blog", + "feed": "https://davelane.nz/rss.xml" + }, + { + "name": "Desmond Rivet", + "url": "https://desmondrivet.com/blog/", + "feed": "https://desmondrivet.com/feeds/blog.rss" + }, + { + "name": "Emanuel Pina", + "url": "https://emanuelpina.pt/", + "feed": "https://emanuelpina.pt/index.xml" + }, + { + "name": "Henrique Dias", + "url": "https://hacdias.com/blog/", + "feed": "https://hacdias.com/blog/feed.xml" + }, + { + "name": "InfoSec Handbook", + "url": "https://infosec-handbook.eu/blog/", + "feed": "https://infosec-handbook.eu/blog/index.xml" + }, + { + "name": "Jan-Lukas Else", + "url": "https://jlelse.blog/", + "feed": "https://jlelse.blog/index.xml" + }, + { + "name": "Justin Vollmer", + "url": "https://www.justinvollmer.com/", + "feed": "https://www.justinvollmer.com/feed/" + }, + { + "name": "Kev Quirk", + "url": "https://kevq.uk/", + "feed": "https://kevq.uk/feed" + }, + { + "name": "Marko Saric", + "url": "https://markosaric.com/blog/", + "feed": "https://markosaric.com/blog/feed/" + }, + { + "name": "Matthias Ott", + "url": "https://matthiasott.com/", + "feed": "https://matthiasott.com/rss" + }, + { + "name": "mcol", + "url": "https://mcol.xyz/", + "feed": "https://mcol.xyz/rss.xml" + }, + { + "name": "Mike Babb", + "url": "https://mikebabb.com/blog/", + "feed": "https://mikebabb.com/feed.xml" + }, + { + "name": "NCSC Guidance Feed", + "feed": "https://www.ncsc.gov.uk/feeds/guidance.xml" + }, + { + "name": "PapaTutuWawa", + "url": "https://blog.polynom.me/", + "feed": "https://blog.polynom.me/atom.xml" + }, + { + "name": "PINE64", + "url": "https://www.pine64.org/blog/", + "feed": "https://www.pine64.org/feed/" + }, + { + "name": "Privacy International", + "url": "https://privacyinternational.org/", + "feed": "https://privacyinternational.org/rss.xml" + }, + { + "name": "privacytools.io", + "url": "https://blog.privacytools.io/", + "feed": "https://blog.privacytools.io/rss/" + }, + { + "name": "Sheogorath", + "url": "https://shivering-isles.com/#blog", + "feed": "https://shivering-isles.com/feed.xml" + }, + { + "name": "The New Oil", + "url": "https://write.as/thenewoil/", + "feed": "https://write.as/thenewoil/feed/" + }, + { + "name": "Tutanota", + "url": "https://tutanota.com/blog/", + "feed": "https://tutanota.com/blog/feed.xml" + } +] diff --git a/layouts/shortcodes/blogroll.html b/layouts/shortcodes/blogroll.html @@ -0,0 +1,5 @@ +<ul> + {{- range sort $.Site.Data.blogroll "name" }} + <li>{{ if .url }}<a href="{{ .url }}">{{ .name }}</a>{{ else }}{{ .name }}{{ end }}{{ with .feed }} — <a href="{{ . }}">Feed</a>{{ end }}</li> + {{- end }} +</ul>