8000 docs: tidy up content collections · nuxt-hub/core@099c91b · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 099c91b

Browse files
committed
docs: tidy up content collections
1 parent a4e0758 commit 099c91b

File tree

7 files changed

+151
-258
lines changed
  • docs
    • app/pages
  • content
  • 7 files changed

    +151
    -258
    lines changed

    docs/app/pages/blog/[slug].vue

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -116,7 +116,7 @@ onMounted(() => {
    116116
    </UPageBody>
    117117

    118118
    <template #right>
    119-
    <UContentToc v-if="post.body && post.body.toc" :links="post.body.toc.links" :title="toc.title" />
    119+
    <UContentToc v-if="post.body && post.body.toc" :links="post.body.toc.links" :title="toc.title" highlight />
    120120
    </template>
    121121
    </UPage>
    122122
    </UPage>

    docs/app/pages/changelog/[slug].vue

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -113,7 +113,7 @@ onMounted(() => {
    113113
    </UPageBody>
    114114

    115115
    <template #right>
    116-
    <UContentToc v-if="post.body && post.body.toc" :links="post.body.toc.links" :title="toc.title" />
    116+
    <UContentToc v-if="post.body && post.body.toc" :links="post.body.toc.links" :title="toc.title" highlight />
    117117
    </template>
    118118
    </UPage>
    119119
    </UPage>

    docs/app/pages/docs/[...slug].vue

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -68,7 +68,7 @@ onMounted(() => {
    6868
    </div>
    6969

    7070
    <template v-if="page.body?.toc" #right>
    71-
    <UContentToc :title="toc?.title" :links="page.body?.toc?.links" />
    71+
    <UContentToc :title="toc?.title" :links="page.body?.toc?.links" highlight />
    7272
    </template>
    7373
    </UPage>
    7474
    </template>

    docs/app/pages/index.vue

    Lines changed: 14 additions & 14 deletions
    Original file line numberDiff line numberDiff line change
    @@ -145,11 +145,11 @@ onMounted(() => {
    145145
    </UModal>
    146146
    </UPageHero>
    147147
    <!-- features section -->
    148-
    <UPageSection :ui="{ container: 'py-6 pb-12 sm:py-12 lg:py-12' }">
    148+
    <UPageSection :ui="{ container: 'py-6 pb-12 sm:py-12 lg:py-12 xl:pb-24' }">
    149149
    <ul class="grid grid-cols-1 gap-x-6 sm:grid-cols-2 lg:grid-cols-3 gap-y-6 lg:gap-x-8 lg:gap-y-8 xl:gap-y-10">
    150150
    <li
    151151
    v-for="feature in page?.features"
    152-
    :key="feature.name"
    152+
    :key="feature.title"
    153153
    class="flex items-start gap-x-3 relative group"
    154154
    :class="{ 'opacity-75': feature.soon }"
    155155
    >
    @@ -161,7 +161,7 @@ onMounted(() => {
    161161
    </div>
    162162
    <div class="flex flex-col">
    163163
    <h2 class="font-medium text-(--ui-text-highlighted) inline-flex items-center gap-x-1">
    164-
    {{ feature.name }} <UBadge v-if="feature.soon" color="neutral" variant="subtle" size="sm" class="rounded-full">
    164+
    {{ feature.title }} <UBadge v-if="feature.soon" color="neutral" variant="subtle" size="sm" class="rounded-full">
    165165
    Soon
    166166
    </UBadge>
    167167
    <UIcon v-if="feature.to" name="i-lucide-arrow-right" class="size-4 flex-shrink-0 opacity-0 group-hover:opacity-100 transition-all duration-200 -translate-x-1 group-hover:translate-x-0" />
    @@ -175,13 +175,13 @@ onMounted(() => {
    175175
    </UPageSection>
    176176

    177177
    <UPageCTA
    178-
    :description="page.creator.quote"
    178+
    :description="page.testimonial.quote"
    179179
    variant="subtle"
    180180
    class="rounded-none"
    181181
    :ui="{ container: 'sm:py-12 lg:py-12 sm:gap-8', description: 'before:content-[open-quote] after:content-[close-quote] !text-base' }"
    182182
    >
    183183
    <UUser
    184-
    v-bind="page.creator.author"
    184+
    v-bind="page.testimonial.author"
    185185
    size="xl"
    186186
    class="justify-center"
    187187
    />
    @@ -194,7 +194,7 @@ onMounted(() => {
    194194
    :key="index"
    195195
    v-bind="feature"
    196196
    orientation="vertical"
    197-
    :ui="{ icon: 'text-(--ui-text-highlighted)' }"
    197+
    :ui="{ leadingIcon: 'text-(--ui-text-highlighted)' }"
    198198
    />
    199199
    </template>
    200200
    </UPageSection>
    @@ -210,10 +210,10 @@ onMounted(() => {
    210210
    <ul class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-10 items-start justify-center" 9E81 >
    211211
    <li v-for="step in page?.deploy.steps" :key="step.title" class="flex flex-col gap-y-8 justify-center group">
    212212
    <UColorModeImage
    213-
    :light="step.img.srcLight"
    214-
    :dark="step.img.srcDark"
    215-
    :width="step.img.width"
    216-
    :height="step.img.height"
    213+
    :light="step.image.light"
    214+
    :dark="step.image.dark"
    215+
    :width="step.image.width"
    216+
    :height="step.image.height"
    217217
    :alt="step.title"
    218218
    lazy
    219219
    />
    @@ -267,10 +267,10 @@ onMounted(() => {
    267267
    />
    268268
    </template>
    269269
    <UColorModeImage
    270-
    :light="section.img.srcLight"
    271-
    :dark="section.img.srcDark"
    272-
    :width="section.img.width"
    273-
    :height="section.img.height"
    270+
    :light="section.image.light"
    271+
    :dark="section.image.dark"
    272+
    :width="section.image.width"
    273+
    :height="section.image.height"
    274274
    :alt="section.title"
    275275
    />
    276276
    </UPageSection>

    docs/app/pages/pricing.vue

    Lines changed: 6 additions & 6 deletions
    Original file line numberDiff line numberDiff line change
    @@ -152,17 +152,17 @@ onMounted(() => {
    152152
    <ul class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-10 items-start justify-center">
    153153
    <li v-for="step in home?.deploy.steps" :key="step.title" class="flex flex-col gap-y-8 justify-center group">
    154154
    <NuxtImg
    155-
    :src="step.img.srcDark"
    156-
    :width="step.img.width"
    157-
    :height="step.img.height"
    155+
    :src="step.image.dark"
    156+
    :width="step.image.width"
    157+
    :height="step.image.height"
    158158
    :alt="step.title"
    159159
    class="hidden dark:block"
    160160
    lazy
    161161
    />
    162162
    <NuxtImg
    163-
    :src="step.img.srcLight"
    164-
    :width="step.img.width"
    165-
    :height="step.img.height"
    163+
    :src="step.image.light"
    164+
    :width="step.image.width"
    165+
    :height="step.image.height"
    166166
    :alt="step.title"
    167167
    class="block dark:hidden"
    168168
    lazy

    0 commit comments

    Comments
     (0)
    0