Skip to content

Commit

Permalink
Fix image footer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Bennett committed Apr 10, 2024
1 parent 817ae6f commit aaabd72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions theme/components/ThemeItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const props = defineProps<{
const image = computed(() => {
if (props.content.startsWith('/') || props.content.startsWith('http')) {
if (props.content.includes('/') || props.content.startsWith('http')) {
return resolveAssetUrl(props.content);
} else {
return false;
Expand All @@ -21,6 +21,6 @@ const image = computed(() => {
</script>

<template>
<img v-if="image" :src="props.content" :class="props.class" />
<img v-if="image" :src="image" :class="props.class" />
<div v-else class="mb-0" :class="props.class"><Link class="important-border-none" :to=props.content>{{ props.content }}</Link></div>
</template>

0 comments on commit aaabd72

Please sign in to comment.