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, + }, +})