17 lines
286 B
Svelte
17 lines
286 B
Svelte
<script lang="ts">
|
|
export let contentType: string;
|
|
export let filename: string;
|
|
export let slug: string;
|
|
|
|
let ext = filename.split('.').pop();
|
|
</script>
|
|
|
|
<img src="/s/{slug}.{ext}" alt="shared" />
|
|
|
|
<style>
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
</style>
|