修复fontawesome尺寸问题
This commit is contained in:
tangly1024
2021-12-08 15:40:15 +08:00
parent 980531b1ee
commit 04ec195520
6 changed files with 13 additions and 13 deletions

View File

@@ -17,10 +17,10 @@ const BlogPostCard = ({ post, tags }) => {
</Link>
<div className='px-4 py-4 col-span-3'>
<div className='w-52'>
<div>
<Link href={`/category/${post.category}`} passHref>
<span className='cursor-pointer dark:text-gray-200 text-gray-400 text-sm py-1.5 mr-1 hover:underline hover:text-blue-500 dark:hover:text-blue-400 transform'>
<FontAwesomeIcon icon={faFolder} size='sm' className='mr-1 text-sm' />{post.category}
<span className='cursor-pointer dark:text-gray-200 text-gray-400 text-sm hover:underline hover:text-blue-500 dark:hover:text-blue-400 transform'>
<FontAwesomeIcon icon={faFolder} size='sm' className='mr-1 w-5 text-sm' />{post.category}
</span>
</Link>
<span className='mx-1 dark:text-gray-400'>|</span>

View File

@@ -13,7 +13,7 @@ const CategoryGroup = ({ currentCategory, categories }) => {
? 'bg-gray-200 dark:bg-black text-black dark:text-white'
: 'dark:text-gray-400 text-gray-500') +
' duration-300 hover:text-blue-500 dark:hover:text-blue-400 hover:underline px-5 cursor-pointer py-2'}>
<FontAwesomeIcon icon={selected ? faFolderOpen : faFolder} className={`${selected ? 'text-black dark:text-white' : 'text-gray-400'} mr-2 `} />{category}({categories[category]})</div>
<FontAwesomeIcon icon={selected ? faFolderOpen : faFolder} className={`${selected ? 'text-black dark:text-white' : 'text-gray-400'} mr-2 w-5`} />{category}({categories[category]})</div>
</Link>
})}
</div>

View File

@@ -10,16 +10,16 @@ const Footer = ({ fullWidth = true }) => {
<footer
className='bg-gray-800 dark:bg-black dark:border-gray-900 border-t flex-shrink-0 justify-center text-center m-auto w-full text-gray-400 text-sm p-6'
>
<FontAwesomeIcon size='sm' className='text-sm' icon={faCopyright} /> {` ${y}`} <span> <a href='https://blog.tangly1024.com/article/about' className='underline font-bold text-gray-100'>blog.tangly1024.com</a>. Powered by <a href='https://notion.so' className='underline font-bold text-gray-100'>Notion</a> & <a href='https://github.com/tangly1024/NotionNext' className='underline font-bold text-gray-100'>NotionNext</a>.</span>
<FontAwesomeIcon size='sm' className='text-sm w-5' icon={faCopyright} /> {` ${y}`} <span> <a href='https://blog.tangly1024.com/article/about' className='underline font-bold text-gray-100'>blog.tangly1024.com</a>. Powered by <a href='https://notion.so' className='underline font-bold text-gray-100'>Notion</a> & <a href='https://github.com/tangly1024/NotionNext' className='underline font-bold text-gray-100'>NotionNext</a>.</span>
<br />
<FontAwesomeIcon size='sm' className='text-sm' icon={faShieldAlt} /> <a href='https://beian.miit.gov.cn/' className='ml-1 font-bold'>闽ICP备20010331号</a>
<FontAwesomeIcon size='sm' className='text-sm w-5' icon={faShieldAlt} /> <a href='https://beian.miit.gov.cn/' className='ml-1 font-bold'>闽ICP备20010331号</a>
<span > <Link href='/article/privacy-policy' ><a className='ml-1 font-bold underline'>隐私政策</a></Link></span>
<span id='busuanzi_container_site_pv' className='hidden'>
<FontAwesomeIcon size='sm' className='text-sm' icon={faEye}/><span id='busuanzi_value_site_pv' className='px-1'> </span>pv
<FontAwesomeIcon size='sm' className='text-sm w-5' icon={faEye}/><span id='busuanzi_value_site_pv' className='px-1'> </span>pv
</span>
<span id='busuanzi_container_site_uv' className='pl-2 hidden'>
<FontAwesomeIcon size='sm' className='text-sm' icon={faUser}/> <span id='busuanzi_value_site_uv' className='px-1'> </span>uv </span>
<FontAwesomeIcon size='sm' className='text-sm w-5' icon={faUser}/> <span id='busuanzi_value_site_uv' className='px-1'> </span>uv </span>
</footer>
)
}

View File

@@ -41,7 +41,7 @@ const SideBar = ({ tags, currentTag, post, posts, categories, currentCategory, c
{posts && (
<section className='mt-4'>
<div className='text-sm py-2 px-5 flex flex-nowrap justify-between'>
<div className='font-bold text-gray-600 font-bold dark:text-gray-200'><FontAwesomeIcon icon={faArchive} className='mr-4' />{locale.COMMON.LATEST_POSTS}</div>
<div className='font-bold text-gray-600 font-bold dark:text-gray-200'><FontAwesomeIcon icon={faArchive} className='mr-4 w-5' />{locale.COMMON.LATEST_POSTS}</div>
</div>
<LatestPostsGroup posts={posts} />
</section>
@@ -51,7 +51,7 @@ const SideBar = ({ tags, currentTag, post, posts, categories, currentCategory, c
{categories && (
<section className='mt-8'>
<div className='text-sm py-2 px-5 flex flex-nowrap justify-between'>
<div className='font-bold text-gray-600 font-bold dark:text-gray-200'><FontAwesomeIcon icon={faThList} className='mr-4' />{locale.COMMON.CATEGORY}</div>
<div className='font-bold text-gray-600 dark:text-gray-200'><FontAwesomeIcon icon={faThList} className='mr-4 w-5' />{locale.COMMON.CATEGORY}</div>
<Link href='/category' passHref>
<div className='text-gray-400 hover:text-black dark:text-gray-400 dark:hover:text-white hover:underline cursor-pointer'>
{locale.COMMON.MORE} <FontAwesomeIcon icon={faAngleDoubleRight} />
@@ -66,7 +66,7 @@ const SideBar = ({ tags, currentTag, post, posts, categories, currentCategory, c
{tags && (
<section className='mt-8'>
<div className='text-sm py-2 px-5 flex flex-nowrap justify-between'>
<div className='text-gray-600 font-bold dark:text-gray-200'><FontAwesomeIcon icon={faTags} className='mr-4' />{locale.COMMON.TAGS}</div>
<div className='text-gray-600 font-bold dark:text-gray-200'><FontAwesomeIcon icon={faTags} className='mr-4 w-5'/>{locale.COMMON.TAGS}</div>
<Link href='/tag' passHref>
<div className='text-gray-400 hover:text-black dark:text-gray-400 dark:hover:text-white hover:underline cursor-pointer'>
{locale.COMMON.MORE} <FontAwesomeIcon icon={faAngleDoubleRight} />

View File

@@ -2,7 +2,7 @@ import { getCacheFromFile, setCacheToFile } from '@/lib/cache/local_file_cache'
import { getCacheFromMemory, setCacheToMemory } from '@/lib/cache/memory_cache'
import BLOG from '@/blog.config'
// 关闭本地缓存
const enableCache = false
const enableCache = true
/**
* 为减少频繁接口请求notion数据将被缓存

View File

@@ -17,7 +17,7 @@
"dev-mac": "NODE_OPTIONS='--inspect' next dev",
"build": "next build",
"start": "next start",
"postbuild": "next-sitemap --config next-sitemap.config.js"
"post-build": "next-sitemap --config next-sitemap.config.js"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.36",