improved opening images
This commit is contained in:
@@ -2,9 +2,11 @@
|
||||
export let contentType: string;
|
||||
export let filename: string;
|
||||
export let slug: string;
|
||||
|
||||
let ext = filename.split('.').pop();
|
||||
</script>
|
||||
|
||||
<img src="/s/{slug}" alt="shared" />
|
||||
<img src="/s/{slug}.{ext}" alt="shared" />
|
||||
|
||||
<style>
|
||||
img {
|
||||
|
||||
Reference in New Issue
Block a user