michal-sapka-me

Codebase for my homepage.
git clone git://vcs.sapka.me/michal-sapka-me
Log | Files | Refs

commit 646ce6e9a0f3f3357be229e9c772e96cd80e9a22
parent d5d27d6b6bbd0d189a3af9a61caa804c53668af6
Author: MichaƂ Sapka <michal@sapka.me>
Date:   Tue, 10 Jan 2023 17:23:02 +0100

feat: fsf post and badge

Diffstat:
Acontent/2023/i-am-now-an-fsf-associate.md | 12++++++++++++
Mlayouts/_default/list.html | 2+-
Alayouts/shortcodes/fsfbadge.html | 5+++++
3 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/content/2023/i-am-now-an-fsf-associate.md b/content/2023/i-am-now-an-fsf-associate.md @@ -0,0 +1,12 @@ +--- +title: "I am now an FSF associate" +category: "blog" +date: 2023-01-10T17:15:33+01:00 +draft: false +tags: ["fsf", "freedom", "meta"] +--- + +As of January 2023 I am an associate of Free Software Fundation. + +{{< fsfbadge >}} + diff --git a/layouts/_default/list.html b/layouts/_default/list.html @@ -1,5 +1,5 @@ {{ define "main" }} -{{- range where .Pages "Params.category" "!=" "pages"}} +{{- range where .Site.RegularPages "Params.category" "!=" "pages"}} <article class="list"> <a href="{{ .Page.Permalink }}"> <h2>{{ .Page.Title }}</h2> diff --git a/layouts/shortcodes/fsfbadge.html b/layouts/shortcodes/fsfbadge.html @@ -0,0 +1,5 @@ +<center> + <a href="https://my.fsf.org/join?referrer=6050678" target="_blank"> + <img src="https://static.fsf.org/nosvn/associate/crm/6050678.png" alt="I am an FSF associate" width="180" height="45"> + </a> +</center>