Get blog pages working
This commit is contained in:
1 parent
ab06eb5902
commit
bc703961cc
7 files changed
+45
-13
No files matched your search
@@ -18,7 +18,25 @@ if (!page.value) {
|
||||
<article
|
||||
class="prose prose-invert prose-orange m-auto min-h-[70%] max-w-screen-lg px-12 pb-20"
|
||||
>
|
||||
<ContentRenderer v-if="page" :value="page" />
|
||||
<h1 class="pb-0! mb-0! leading-none!" v-if="page?.title">
|
||||
{{ page.title }}
|
||||
</h1>
|
||||
<div class="opacity-60">
|
||||
<a v-if="page?.author" :href="page.author.url">{{
|
||||
page.author.name
|
||||
}}</a>
|
||||
<span v-if="page?.author && page?.date" class="mx-2">•</span>
|
||||
<span v-if="page?.date">{{
|
||||
new Date(page.date).toLocaleDateString(undefined, {
|
||||
year: "numeric",
|
||||
month: "long",
|
||||
day: "numeric",
|
||||
})
|
||||
}}</span>
|
||||
</div>
|
||||
<ContentRenderer class="mt-10" v-if="page" :value="page">
|
||||
Hello
|
||||
</ContentRenderer>
|
||||
</article>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in new issue
Block a user