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>
|
||||
export let src;
|
||||
export let alt;
|
||||
export let title;
|
||||
let className = ""
|
||||
export { className as class };
|
||||
// console.log(src)
|
||||
@@ -8,9 +9,9 @@
|
||||
</script>
|
||||
|
||||
<figure class={className}>
|
||||
<img {src} {alt} />
|
||||
{#if alt}
|
||||
<figcaption>{alt}</figcaption>
|
||||
<img {src} {alt} {title} />
|
||||
{#if title}
|
||||
<figcaption>{title}</figcaption>
|
||||
{/if}
|
||||
</figure>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user