feat: show index

This commit is contained in:
kolaente 2023-11-14 19:35:33 +01:00
parent 1a9b7e61e2
commit 6e9077f240
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 4 additions and 2 deletions

View File

@ -19,7 +19,9 @@ const props = defineProps({
</script>
<template>
<ul>
<li v-for="s in bib">
<li v-for="(s, index) in bib">
[{{ index }}]
<template v-if="typeof s.author !== 'undefined' && s.author !== ''">
<span class="author">{{ s.author }}</span>,
</template>

View File

@ -1,6 +1,6 @@
{
"name": "slidev-addon-bibliography",
"version": "1.2.1",
"version": "1.2.2",
"description": "Slidev addon to provide bibliography sources for presentations.",
"scripts": {
"dev": "slidev example.md",