From 08e80d235fb9f9a911dde7c21a6e7a39b9a9c060 Mon Sep 17 00:00:00 2001 From: Emilien Mottet Date: Thu, 17 Aug 2023 17:57:11 +0200 Subject: [PATCH 1/6] Add strava svg --- strava.svg | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 strava.svg diff --git a/strava.svg b/strava.svg new file mode 100644 index 00000000..dcc5298f --- /dev/null +++ b/strava.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + From 968d1ccc120686f6c64f473c8c6793e838dafedb Mon Sep 17 00:00:00 2001 From: Emilien Mottet Date: Thu, 17 Aug 2023 17:58:29 +0200 Subject: [PATCH 2/6] Add strava example --- config/_default/languages.en.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index f138bb18..6b8802ec 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -53,6 +53,7 @@ title = "Blowfish" # { soundcloud = "https://soundcloud.com/username" }, # { stack-overflow = "https://stackoverflow.com/users/userid/username" }, # { steam = "https://steamcommunity.com/profiles/userid" }, +# { strava = "https://www.strava.com/athletes/userid"}, # { telegram = "https://t.me/username" }, # { tiktok = "https://tiktok.com/@username" }, # { tumblr = "https://username.tumblr.com" }, From 96fdb6db8b8d0bc5b89dd7e50ef1a9c992fda70a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Thu, 17 Aug 2023 22:01:42 +0100 Subject: [PATCH 3/6] updated logic for unique ids in shortcodes --- layouts/shortcodes/carousel.html | 3 +-- layouts/shortcodes/chart.html | 2 +- layouts/shortcodes/gallery.html | 2 +- layouts/shortcodes/typeit.html | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/layouts/shortcodes/carousel.html b/layouts/shortcodes/carousel.html index 742bb747..1f424a1d 100644 --- a/layouts/shortcodes/carousel.html +++ b/layouts/shortcodes/carousel.html @@ -1,5 +1,4 @@ -{{ $time := now.UnixNano }} -{{ $id := delimit (slice "gallery" $time) "-" }} +{{ $id := delimit (slice "carousel" .Ordinal now.UnixNano) "-" }} {{ $aspect := default "16-9" (.Get "aspectRatio") }} {{ $images := .Page.Resources.Match (.Get "images") }} {{ $interval := default "2000" (.Get "interval") }} diff --git a/layouts/shortcodes/chart.html b/layouts/shortcodes/chart.html index 98ae8fa7..82c92aad 100644 --- a/layouts/shortcodes/chart.html +++ b/layouts/shortcodes/chart.html @@ -1,5 +1,5 @@ +{{ $id := delimit (slice "chart" .Ordinal now.UnixNano) "-" }}
- {{ $id := delimit (shuffle (seq 1 9)) "" }}