fix(talks): add missing const

This commit is contained in:
Oliver Davies 2023-08-02 23:38:17 +01:00
parent a174746500
commit fab344bb78
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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}`;