@@ -38,43 +38,51 @@ if (post.data.author) {
3838 alt ={ post .data .title + ' featured image' }
3939 class =' relative h-64 w-full overflow-hidden rounded-lg bg-purple-100 object-cover object-center group-hover:opacity-75 dark:bg-purple-800'
4040 />
41- <p class =' sr-only' >{ post .data .title } </p >
41+ <p itemprop = ' name ' class =' sr-only' >{ post .data .title } </p >
4242 </a >
4343 <div class =' p-6' >
4444 { post .data .categories && <Categories categories = { post .data .categories } />}
45- <a href ={ import .meta .env .BASE_URL + ' blog/' + post .slug } >
45+ <a itemprop = ' url ' href ={ import .meta .env .BASE_URL + ' blog/' + post .slug } >
4646 <h1
47+ itemprop =' name'
4748 class =' title-font mt-2 text-xl font-bold text-purple-600 hover:text-pink-600 dark:text-purple-300 dark:hover:text-pink-300'
4849 >
4950 { post .data .title }
5051 </h1 >
5152 </a >
5253 <div class =' flex flex-wrap items-center' >
53- <span
54- class =' mr-3 inline-flex items-center border-r-2 border-purple-200 py-1 pr-3 text-xs leading-none text-gray-500 dark:border-purple-600 dark:text-gray-400'
55- >
56- <Icon class =' mr-1 h-4 w-4' name =' heroicons:calendar-days' />
57- { post .data .publishDate .toDateString ()}
58- </span >
5954 {
60- post .data .minutesRead && (
61- <span class = ' mr-3 inline-flex items-center border-r-2 border-purple-200 py-1 pr-3 text-xs leading-none text-gray-500 dark:border-purple-600 dark:text-gray-400' >
62- <Icon class = ' mr-1 h-4 w-4' name = ' heroicons:clock' />
63- { post .data .minutesRead }
55+ post .data .pubDate && (
56+ <span
57+ itemprop = ' datePublished'
58+ class = ' mr-3 inline-flex items-center border-r-2 border-purple-200 py-1 pr-3 text-xs leading-none text-gray-500 dark:border-purple-600 dark:text-gray-400'
59+ >
60+ <Icon class = ' mr-1 h-4 w-4' name = ' heroicons:calendar-days' />
61+ { post .data .pubDate .toDateString ()}
6462 </span >
6563 )
6664 }
6765 {
68- post .data .author && (
69- <span class = ' text-rosely1 dark:text-rosely7 inline-flex items-center text-xs leading-none' >
70- <Icon class = ' mr-1 h-4 w-4' name = ' heroicons:user-circle ' />
71- { author .data .title }
66+ post .data .minutesRead && (
67+ <span class = ' mr-3 inline-flex items-center border-r-2 border-purple-200 py-1 pr-3 text-xs leading-none text-gray-500 dark:border-purple-600 dark:text-gray-400 ' >
68+ <Icon class = ' mr-1 h-4 w-4' name = ' heroicons:clock ' />
69+ { post .data .minutesRead }
7270 </span >
7371 )
7472 }
73+ <span
74+ itemprop =' author'
75+ class =' inline-flex items-center text-xs leading-none text-gray-500 dark:text-gray-400'
76+ >
77+ <Icon class =' mr-1 h-4 w-4' name =' heroicons:user-circle' />
78+ { author .data .title }
79+ </span >
7580 </div >
7681
77- <p class =' mt-3 text-sm italic text-gray-600 dark:text-gray-300' >
82+ <p
83+ itemprop =' abstract description'
84+ class =' mt-3 text-sm italic text-gray-600 dark:text-gray-300'
85+ >
7886 { post .data .description }
7987 </p >
8088 <Tags tags ={ post .data .tags } />
0 commit comments