From fab344bb78acee78b8540a471e691aba1ac66788 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 2 Aug 2023 23:38:17 +0100 Subject: [PATCH] fix(talks): add missing const --- justfile | 2 +- src/pages/talks/index.astro | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 385abd1c..8a1199b3 100644 --- a/justfile +++ b/justfile @@ -8,7 +8,7 @@ start: create-daily date title: #!/usr/bin/env bash - vim $(./tools/scripts/create-daily.sh {{ date }} {{ title }}) + vim $(./tools/scripts/create-daily.sh {{ date }} "{{ title }}") deploy sha: rsync -r -avhP --delete dist/* opdavies@104.248.165.137:/srv/oliverdavies.uk diff --git a/src/pages/talks/index.astro b/src/pages/talks/index.astro index b203b2cb..197b76e4 100644 --- a/src/pages/talks/index.astro +++ b/src/pages/talks/index.astro @@ -10,6 +10,8 @@ const talkCount = _(talks) .flatMap((talk) => talk.data.events) .size(); +const today = new Date().valueOf(); + const sortedTalks = talks .map((talk) => { const slug = `/talks/${talk.slug}`;