File tree Expand file tree Collapse file tree 4 files changed +10
-13
lines changed
Expand file tree Collapse file tree 4 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,13 @@ module.exports = {
2424 path : '/pages/now/' ,
2525 } ,
2626 {
27- label : '#地圖 ' ,
28- path : '/travel /' ,
27+ label : '科技 ' ,
28+ path : '/tech /' ,
2929 } ,
3030 {
31- label : '#遙控 ' ,
32- path : '/category/遙控 /' ,
31+ label : '旅遊 ' ,
32+ path : '/travel /' ,
3333 } ,
34- // {
35- // label: '#科技',
36- // path: '/tech/',
37- // },
3834 ] ,
3935 author : {
4036 name : 'Samuel W.' ,
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ const ImageFeed = ({ edge }: EdgesType) => (
8888 { dayjs ( edge . node . frontmatter . date ) . format ( `MMMM YYYY` ) }
8989 </ Text >
9090
91- < Heading as = "h2" fontSize = "xl " mt = "2" color = "white" >
91+ < Heading as = "h2" fontSize = "2xl " mt = "2" color = "white" >
9292 { edge . node . frontmatter . title }
9393 </ Heading >
9494
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const MDXComponents = {
4545 inlineCode : InlineCode ,
4646 code : Codeblock ,
4747 pre : Pre ,
48- kbd : Kbd ,
48+ kbd : ( props ) => < Kbd mx = "2" { ... props } /> ,
4949 blockquote : ( props ) => (
5050 < Alert
5151 mt = "4"
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const TechPage = ({ data }) => {
2525 { featEdges . map ( ( edge ) => (
2626 < ImageFeed edge = { edge } />
2727 ) ) }
28- < Heading as = "h2" fontSize = "xl" >
28+ { /* <Heading as="h2" fontSize="xl">
2929 評測
3030 </Heading>
3131 {appEdges.map((edge) => (
@@ -34,6 +34,7 @@ const TechPage = ({ data }) => {
3434 <Heading as="h2" fontSize="xl">
3535 所有科技文章
3636 </Heading>
37+ */ }
3738 < PostList edges = { feedEdges } />
3839 </ Stack >
3940 </ Layout >
@@ -51,7 +52,7 @@ export const query = graphql`
5152 # socialImage: { regex: "/" }
5253 }
5354 }
54- limit: 1
55+ limit: 4
5556 sort: { order: DESC, fields: [frontmatter___date] }
5657 ) {
5758 edges {
@@ -84,7 +85,7 @@ export const query = graphql`
8485 # socialImage: { regex: "/" }
8586 }
8687 }
87- skip: 1
88+ skip: 4
8889 sort: { order: DESC, fields: [frontmatter___date] }
8990 ) {
9091 edges {
You can’t perform that action at this time.
0 commit comments