Skip to content

Commit

Permalink
fix: remove body container on changelog page
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Mar 14, 2024
1 parent 4962a8f commit 2c90f19
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions pages/changelog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (!page.value) {
}
const { data: versions } = await useAsyncData("versions", () =>
queryContent("/changelog")
queryContent("/changelog/")
.where({ _extension: "md" })
.sort({ date: -1, title: -1 })
.find(),
Expand Down Expand Up @@ -46,23 +46,25 @@ defineOgImageComponent("Default", {
<ContentRenderer v-if="page!.body" :value="page" />
</UPageBody>

<div
v-for="version in versions"
:key="version.title"
class="relative grid border-b border-gray-200 py-[50px] md:grid-cols-3 dark:border-gray-800"
>
<div>
<h2 class="text-xl font-semibold">
{{ version.title }}
</h2>
<p class="mt-2 text-gray-500 dark:text-gray-400">
{{ formatTimeAgo(new Date(version.date)) }}
</p>
</div>
<div class="divide-y-gray-200 dark:divide-y-gray-800 divide-y pb-24">
<div
class="prose prose-primary dark:prose-invert max-w-none md:col-span-2"
v-for="version in versions"
:key="version.title"
class="relative grid py-[48px] md:grid-cols-3"
>
<ContentRenderer :value="version" />
<div>
<h2 class="text-xl font-semibold">
{{ version.title }}
</h2>
<p class="mt-2 text-gray-500 dark:text-gray-400">
{{ formatTimeAgo(new Date(version.date)) }}
</p>
</div>
<div
class="prose prose-primary dark:prose-invert max-w-none md:col-span-2"
>
<ContentRenderer :value="version" />
</div>
</div>
</div>
</UContainer>
Expand Down

0 comments on commit 2c90f19

Please sign in to comment.