bug fixed

This commit is contained in:
emengweb
2023-04-25 12:46:00 +00:00
parent 7bd8337019
commit 164832ff69
2 changed files with 6 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ const FacebookPage = dynamic(
* @constructor
*/
const LayoutBase = props => {
const { children, headerSlot, floatSlot, meta, siteInfo, showTag } = props
const { children, headerSlot, floatSlot, meta, siteInfo } = props
const [showFloatButton, switchShow] = useState(false)
// const [percent, changePercent] = useState(0) // 页面阅读百分比
const rightAreaSlot = (

View File

@@ -47,16 +47,12 @@ export default function ArticleRecommend({ recommendPosts, siteInfo }) {
style={{ backgroundImage: headerImage }}
>
<div className="flex items-center justify-center bg-black bg-opacity-60 hover:bg-opacity-10 w-full h-full duration-300 ">
<div className=" text-md text-white text-center shadow-text">
<div className="px-4 font-normal hover:underline">{post.title}</div>
<div className="md:flex-nowrap flex-wrap md:justify-start inline-block">
<div>
{' '}
{post.tagItems.map(tag => (
<div className='font-light'>{selected && <i className='mr-1 fa-tag'/>} {tag.name + (tag.count ? `(${tag.count})` : '')} </div>
))}
</div>
<div className=" text-sm text-white text-center shadow-text">
<div>
<i className="fas fa-calendar-alt mr-1" />
{post.date?.start_date}
</div>
<div className="">{post.title}</div>
</div>
</div>
</div>