diff --git a/src/pages/404.astro b/src/pages/404.astro new file mode 100644 index 0000000..9dab61c --- /dev/null +++ b/src/pages/404.astro @@ -0,0 +1,19 @@ +--- +// 公共 Layout +import Layout from "../layouts/Layout.astro"; +// Aside组件 +import Aside from "../components/Aside.astro"; +// 文章页面样式 +import "../styles/Article.less"; +--- + + +
+
+
+

404 Not Found

+
+
+
+
diff --git a/src/pages/rss.xml.ts b/src/pages/rss.xml.ts index 73099aa..684317e 100644 --- a/src/pages/rss.xml.ts +++ b/src/pages/rss.xml.ts @@ -16,6 +16,6 @@ export async function GET(context: any) { pubDate: post.data.updated || post.data.date, description: getDescription(post), link: `/article/${post.data.id}` - })).reverse(), + })).sort((a: any, b: any) => (new Date(b.pubDate).getTime() - new Date(a.pubDate).getTime())), }); } diff --git a/src/styles/Article.less b/src/styles/Article.less index 068e380..ce1877e 100644 --- a/src/styles/Article.less +++ b/src/styles/Article.less @@ -38,6 +38,10 @@ section.vh-container { padding-bottom: 1rem; font-size: 1.58rem; + &.error-title { + font-size: 1.88rem; + } + &::before { display: none; }