@@ -8,7 +8,7 @@ const { data: page } = await useAsyncData(route.path, () => {
88
99<template >
1010 <div
11- class =" container mx-auto mb-10 max-w-[1024px] space-y-6 shadow-lg text-white"
11+ class =" container mx-auto mb-10 max-w-[1024px] space-y-6 text-white shadow-lg "
1212 v-if =" page"
1313 >
1414 <!-- title -->
@@ -18,44 +18,51 @@ const { data: page } = await useAsyncData(route.path, () => {
1818 <img class =" mr-4 h-16 border-2 border-black" :src =" page.cover_image" />
1919 </template >
2020
21- <h1 class =" text-xl font-bold md:text-3xl" >
21+ <h1 class =" text-2xl font-bold md:text-3xl" >
2222 {{ page.title }}
2323 </h1 >
2424 </div >
2525
26+ <h1 class =" font-bold text-gray-400" >
27+ <NuxtTime
28+ :datetime =" page .date "
29+ year="numeric"
30+ month="short"
31+ day="2-digit"
32+ />
33+ </h1 >
34+
2635 <!-- Meta -->
27- <div class =" flex space-x-2 " >
28- <div >
29- <div class = " mb-2 text-xs uppercase text-gray-400 " >
30- Category
31- </ div >
32- < div class = " flex flex-row space-x-2 " >
33- < NuxtLink
34- class="mr-2 w-min rounded-md text-sm font-bold hover: cursor-pointer hover: text-orange-500 bg-background "
35- v-for = " ( category , ix ) in page . categories "
36- : key = " ix "
37- : to = " ` /articles?category=${ category } ` "
38- >
39- {{ category }}
40- </NuxtLink >
36+ <div class =" hidden md:block " >
37+ <div class = " flex space-x-2 " >
38+ <div >
39+ < div class = " mb-2 text-xs uppercase text-gray-400 " > Category</ div >
40+ < div class = " flex flex-row space-x-2 " >
41+ < NuxtLink
42+ class="mr-2 w-min rounded-md bg-background text-sm font-bold hover: cursor-pointer hover: text-orange-500 "
43+ v-for = " ( category , ix ) in page . categories "
44+ : key = " ix "
45+ : to = " ` /articles?category=${ category } ` "
46+ >
47+ {{ category }}
48+ </ NuxtLink >
49+ </div >
4150 </div >
42- </div >
4351
44- <div class =" border-r border-gray-400" ></div >
52+ <div class =" border-r border-gray-400" ></div >
4553
46- <div >
47- <div class =" mb-2 text-xs uppercase text-gray-400" >
48- Tags
49- </div >
50- <div class =" flex flex-row md:space-x-2" >
51- <NuxtLink
52- class="mr-2 w-min rounded-md text-sm font-bold hover:cursor-pointer hover:text-orange-500 bg-background"
53- v-for =" (tag , ix ) in page .tags "
54- :key =" ix "
55- :to =" ` /articles?tag=${tag } ` "
56- >
57- {{ tag }}
58- </NuxtLink >
54+ <div >
55+ <div class =" mb-2 text-xs uppercase text-gray-400" >Tags</div >
56+ <div class =" flex flex-row md:space-x-2" >
57+ <NuxtLink
58+ class="mr-2 w-min rounded-md bg-background text-sm font-bold hover:cursor-pointer hover:text-orange-500 "
59+ v-for =" (tag , ix ) in page .tags "
60+ :key =" ix "
61+ :to =" ` /articles?tag=${tag } ` "
62+ >
63+ {{ tag }}
64+ </NuxtLink >
65+ </div >
5966 </div >
6067 </div >
6168 </div >
@@ -65,7 +72,7 @@ const { data: page } = await useAsyncData(route.path, () => {
6572 - Use prose-pre:bg-white to work with @nuxt/content syntax highlighting, otherwise background-color defaults to `.prose:where(pre)`
6673 -->
6774 <article
68- class =" prose max-w-[1024px] prose-h2:mt-8 prose-p:text-justify prose-a:font-bold prose-a:text-orange-400 prose-a:no-underline hover:prose-a:text-orange-500 prose-blockquote:text-gray-400 prose-code:text-white prose-pre:bg-black text-gray-300 "
75+ class =" prose max-w-[1024px] text-gray-300 prose-h2:mt-8 prose-p:text-justify prose-a:font-bold prose-a:text-orange-400 prose-a:no-underline hover:prose-a:text-orange-500 prose-blockquote:text-gray-400 prose-code:text-white prose-pre:bg-black prose-li:my-0 "
6976 >
7077 <ContentRenderer v-if =" page " :value =" page " />
7178 </article >
0 commit comments