From af85336a314f07ae729c133f2f1d701d54c7b172 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 14 Nov 2023 16:46:50 +0100 Subject: [PATCH] feat: more attributes --- README.md | 8 +- components/Sources.vue | 24 +- package.json | 2 +- pnpm-lock.yaml | 4269 +++++++++++++++++++++++++--------------- 4 files changed, 2662 insertions(+), 1641 deletions(-) diff --git a/README.md b/README.md index 8718f0c..30b780a 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,13 @@ In the `bibliography.json` file, add sources like this: } ``` -Each source can have a url, a title or both. +Each source can have the following attributes: + +* `title` (mandatory) +* `url` +* `author` +* `accessed` (the date you've accessed the source) +* `date` (the date the source was published) In your slides, reference a source like this: diff --git a/components/Sources.vue b/components/Sources.vue index 5b382f4..7432d62 100644 --- a/components/Sources.vue +++ b/components/Sources.vue @@ -9,17 +9,35 @@ const bib = computed(() => { return [...bibliography.sources] .map(key => Bibliography[key]) }) + +const props = defineProps({ + accessedTitle: { + default: 'accessed', + type: String, + }, +})