some small fix about img font

This commit is contained in:
tangly1024.com
2023-11-21 12:52:27 +08:00
parent 8d7b1e2010
commit 67d3e166ba
3 changed files with 18 additions and 9 deletions

View File

@@ -61,8 +61,7 @@ const BlogCard = ({ index, post, showSummary, siteInfo }) => {
</Link>}
<div className="md:flex-nowrap flex-wrap md:justify-start inline-block">
<div>
{post.tagItems.map((tag) => (
{post.tagItems?.map((tag) => (
<TagItemMini key={tag.name} tag={tag} />
))}
</div>

View File

@@ -48,12 +48,14 @@ const LayoutBase = (props) => {
const leftAreaSlot = <Live2D />
const { onLoading } = useGlobal()
const FUKASAWA_SIDEBAR_COLLAPSE_SATUS_DEFAULT = siteConfig('FUKASAWA_SIDEBAR_COLLAPSE_SATUS_DEFAULT', null, CONFIG)
// 侧边栏折叠从 本地存储中获取 open 状态的初始值
const [isCollapsed, setIsCollapse] = useState(() => {
if (typeof window !== 'undefined') {
return localStorage.getItem('fukasawa-sidebar-collapse') === 'true' || siteConfig('FUKASAWA_SIDEBAR_COLLAPSE_SATUS_DEFAULT', null, CONFIG)
return localStorage.getItem('fukasawa-sidebar-collapse') === 'true' || FUKASAWA_SIDEBAR_COLLAPSE_SATUS_DEFAULT
}
return siteConfig('FUKASAWA_SIDEBAR_COLLAPSE_SATUS_DEFAULT', null, CONFIG)
return FUKASAWA_SIDEBAR_COLLAPSE_SATUS_DEFAULT
})
// 在组件卸载时保存 open 状态到本地存储中