File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed
Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -73,25 +73,30 @@ if (ogImageFilename) {
7373 showTitleAsH1={false}
7474 ogImage={ogImageUrl}>
7575
76- {/* Show full-width header if custom OG image is provided */}
77- {ogImageMetadata && (
78- <div class="w-full mb-8 -mt-8">
79- <Image
80- src={ogImageMetadata}
81- alt={post.data.title}
82- class="w-full h-auto rounded-lg"
83- />
84- </div>
85- )}
86-
8776 <div class="flex flex-col lg:flex-row mt-8 mb-8 border rounded-md bg-muted overflow-hidden">
8877
89- <div class="flex-1 ml-6 lg:ml-6 ml-0 p-4 lg:p-6">
78+ <div class="flex-1">
79+
80+ {/* Show full-width header if custom OG image is provided */}
81+ {ogImageMetadata && (
82+ <div class="w-full mb-8 -mt-8">
83+ <Image
84+ src={ogImageMetadata}
85+ alt={post.data.title}
86+ class="w-full h-auto rounded-lg"
87+ />
88+ </div>
89+ )}
90+ <div class="ml-6 lg:ml-6 ml-0 p-4 lg:p-6">
91+ {/* Only show sidebar image if no custom OG image */}
92+ {post.data.image && !ogImageMetadata && (
9093 <h1 class="pb-0 mb-0 text-muted-background leading-tight">{title}</h1>
94+ )}
9195 <p class="italic mt-1 pb-0 text-sm">
9296 Published on <b>{date}</b>
9397 </p>
9498 <AuthorCard author={author}/>
99+ </div>
95100 </div>
96101 {/* Only show sidebar image if no custom OG image */}
97102 {post.data.image && !ogImageMetadata && (
You can’t perform that action at this time.
0 commit comments