Skip to content

Commit

Permalink
chore: add the title
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Liendo committed Sep 2, 2024
1 parent e5d5ceb commit 914db32
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/routes/[[lang=lang]]/notes/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,19 @@
<div
class="max-w-5xl m-auto my-2 prose dark:prose-p:text-white prose-strong:text-green-500 dark:prose-headings:text-white prose-green prose-code:text-white dark:prose-li:text-slate-100 prose-li:text-slate-900 prose-code:!bg-dark-background prose-pre:bg-dark-background"
>
<figure class="flex justify-center items-center overflow-hidden rounded">
<img
src={data.note.cover}
alt={data.note.title}
class="h-96 w-full object-cover"
/>
</figure>
{#if data.note.cover}
<figure class="flex justify-center items-center overflow-hidden rounded">
<img
src={data.note.cover}
alt={data.note.title}
class="h-96 w-full object-cover"
/>
</figure>
{:else}
<h1 class="mt-20 text-4xl font-bold text-white">
{data.note.title}
</h1>
{/if}
<header class="">
<div class="flex mb-2">
<span class="flex items-center mr-2">
Expand Down

0 comments on commit 914db32

Please sign in to comment.