diff --git a/package-lock.json b/package-lock.json index 3afec12..a5bcc5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "memset0-blog", - "version": "0.1.1", + "version": "0.1.2", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/src/components/Article/ArticleList.js b/src/components/Article/ArticleList.js index 64b13d9..be26ff5 100644 --- a/src/components/Article/ArticleList.js +++ b/src/components/Article/ArticleList.js @@ -11,6 +11,8 @@ import CardMedia from "@mui/material/CardMedia"; import Grid from "@mui/material/Grid"; import Typography from "@mui/material/Typography"; +import { isNegativeIndentTitleRequired } from "../../utils/frontend"; + const renderAst = new rehypeReact({ createElement: React.createElement, }).Compiler; @@ -41,7 +43,7 @@ const ArticleList = ({ posts }) => { {/* 封面 */} - + { {/* 内容 */} - + - - + + {post.node.frontmatter.title} diff --git a/src/components/Layout.js b/src/components/Layout.js index 162becd..e55cb3c 100644 --- a/src/components/Layout.js +++ b/src/components/Layout.js @@ -110,7 +110,7 @@ const Layout = ({ children, title, maxWidth }) => { aria-label="open drawer" onClick={isDesktop ? toggleDrawer : toggleMobileDrawer} sx={{ - marginRight: "36px", + marginRight: { xs: "12px", md: "24px" }, }} >