✨ Bug fixes
This commit is contained in:
		| @@ -10,8 +10,8 @@ const { slug } = Astro.params; | ||||
|  | ||||
| const { posts } = ( | ||||
|   await graphQuery( | ||||
|     `query Query($where: PostWhereInput!) { | ||||
|   posts(where: $where) { | ||||
|     `query Query($where: PostWhereInput!, $orderBy: [PostOrderByInput!]!) { | ||||
|   posts(where: $where, orderBy: $orderBy) { | ||||
|     slug | ||||
|     type | ||||
|     title | ||||
| @@ -33,7 +33,14 @@ const { posts } = ( | ||||
|     createdAt | ||||
|   } | ||||
| }`, | ||||
|     { where: { categories: { some: { slug: { equals: slug } } } } } | ||||
|     { | ||||
|       orderBy: [ | ||||
|         { | ||||
|           createdAt: "desc", | ||||
|         }, | ||||
|       ], | ||||
|       where: { categories: { some: { slug: { equals: slug } } } }, | ||||
|     } | ||||
|   ) | ||||
| ).data; | ||||
| --- | ||||
|   | ||||
| @@ -13,8 +13,8 @@ const { slug } = Astro.params; | ||||
|  | ||||
| const { post } = ( | ||||
|   await graphQuery( | ||||
|     `query Query($where: PostWhereUniqueInput!) { | ||||
|   post(where: $where) { | ||||
|     `query Query($where: PostWhereInput!, $orderBy: [PostOrderByInput!]!) { | ||||
|   posts(where: $where, orderBy: $orderBy) { | ||||
|     slug | ||||
|     type | ||||
|     title | ||||
| @@ -43,7 +43,14 @@ const { post } = ( | ||||
|     createdAt | ||||
|   } | ||||
| }`, | ||||
|     { where: { slug } } | ||||
|     { | ||||
|       orderBy: [ | ||||
|         { | ||||
|           createdAt: "desc", | ||||
|         }, | ||||
|       ], | ||||
|       where: { slug }, | ||||
|     } | ||||
|   ) | ||||
| ).data; | ||||
| --- | ||||
|   | ||||
							
								
								
									
										24
									
								
								src/pages/projects/index.astro
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								src/pages/projects/index.astro
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| --- | ||||
| import PageLayout from "../../layouts/PageLayout.astro"; | ||||
| --- | ||||
|  | ||||
| <PageLayout> | ||||
|   <div role="alert" class="alert alert-info"> | ||||
|     <svg | ||||
|       xmlns="http://www.w3.org/2000/svg" | ||||
|       fill="none" | ||||
|       viewBox="0 0 24 24" | ||||
|       class="stroke-current shrink-0 w-6 h-6" | ||||
|       ><path | ||||
|         stroke-linecap="round" | ||||
|         stroke-linejoin="round" | ||||
|         stroke-width="2" | ||||
|         d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" | ||||
|       ></path></svg | ||||
|     > | ||||
|     <div> | ||||
|         <p>暂无可公开企划,若想进一步探索,可以加入我们的 GoatChat!</p> | ||||
|         <a class="link" href="https://matrix.to/#/#plaza:matrix.smartsheep.studio">邀请链接 👈</a> | ||||
|     </div> | ||||
|   </div> | ||||
| </PageLayout> | ||||
| @@ -10,8 +10,8 @@ const { slug } = Astro.params; | ||||
|  | ||||
| const { posts } = ( | ||||
|   await graphQuery( | ||||
|     `query Query($where: PostWhereInput!) { | ||||
|   posts(where: $where) { | ||||
|     `query Query($where: PostWhereInput!, $orderBy: [PostOrderByInput!]!) { | ||||
|   posts(where: $where, orderBy: $orderBy) { | ||||
|     slug | ||||
|     type | ||||
|     title | ||||
| @@ -33,7 +33,14 @@ const { posts } = ( | ||||
|     createdAt | ||||
|   } | ||||
| }`, | ||||
|     { where: { tags: { some: { slug: { equals: slug } } } } } | ||||
|     { | ||||
|       orderBy: [ | ||||
|         { | ||||
|           createdAt: "desc", | ||||
|         }, | ||||
|       ], | ||||
|       where: { tags: { some: { slug: { equals: slug } } } }, | ||||
|     } | ||||
|   ) | ||||
| ).data; | ||||
| --- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user