mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Use title rather than alt for figures
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
export let src;
|
export let src;
|
||||||
export let alt;
|
export let alt;
|
||||||
|
export let title;
|
||||||
let className = ""
|
let className = ""
|
||||||
export { className as class };
|
export { className as class };
|
||||||
// console.log(src)
|
// console.log(src)
|
||||||
@@ -8,9 +9,9 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<figure class={className}>
|
<figure class={className}>
|
||||||
<img {src} {alt} />
|
<img {src} {alt} {title} />
|
||||||
{#if alt}
|
{#if title}
|
||||||
<figcaption>{alt}</figcaption>
|
<figcaption>{title}</figcaption>
|
||||||
{/if}
|
{/if}
|
||||||
</figure>
|
</figure>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user