Google Adsense
This commit is contained in:
tangly1024
2021-12-17 21:03:20 +08:00
parent d4d969a10d
commit 43de0a80d4
8 changed files with 88 additions and 47 deletions

View File

@@ -31,14 +31,12 @@ const LatestPostsGroup = ({ posts, sliceCount = 5 }) => {
const selected = currentPath === `${BLOG.path}/article/${post.slug}`
return (
<Link key={post.id} title={post.title} href={`${BLOG.path}/article/${post.slug}`} passHref>
<a className={(selected ? 'bg-blue-500 dark:bg-black ' : '') + ' my-1 px-5 flex font-light justify-between'}>
<a className={(selected ? 'text-white bg-blue-500 dark:bg-black ' : 'text-gray-500 dark:text-gray-300 ') + ' my-1 px-5 flex font-light justify-between'}>
<div className={ 'text-xs py-1 flex w-40 overflow-x-hidden whitespace-nowrap overflow-hidden ' +
'hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer hover:underline ' +
(selected ? 'text-white ' : 'text-gray-500 dark:text-gray-300')
}>
'hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer hover:underline ' }>
{post.title}
</div>
<div className='text-gray-500 text-xs py-1'>
<div className='text-xs py-1'>
{formatDateFmt(post.lastEditedTime, 'yyyy/MM/dd')}
</div>
</a>