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> </script>
<template> <template>
<ul> <ul>
<li v-for="s in bib"> <li v-for="(s, index) in bib">
[{{ index }}]
<template v-if="typeof s.author !== 'undefined' && s.author !== ''"> <template v-if="typeof s.author !== 'undefined' && s.author !== ''">
<span class="author">{{ s.author }}</span>, <span class="author">{{ s.author }}</span>,
</template> </template>

View File

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