feat: i18n, page title
(cherry picked from commit 0d9fc72bee009c591400055725680a6a0f5a9c83)
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
import {getSortedPosts} from "../../../utils/content-utils";
|
||||
import MainGridLayout from "../../../layouts/MainGridLayout.astro";
|
||||
import ArchivePanel from "../../../components/ArchivePanel.astro";
|
||||
import {i18n} from "../../../i18n/translation";
|
||||
import I18nKey from "../../../i18n/i18nKey";
|
||||
|
||||
|
||||
export async function getStaticPaths() {
|
||||
@@ -30,6 +32,6 @@ const { category } = Astro.params;
|
||||
|
||||
---
|
||||
|
||||
<MainGridLayout>
|
||||
<MainGridLayout title={i18n(I18nKey.archive)}>
|
||||
<ArchivePanel categories={[category]}></ArchivePanel>
|
||||
</MainGridLayout>
|
||||
|
||||
@@ -2,9 +2,11 @@
|
||||
import { getCollection, getEntry } from "astro:content";
|
||||
import MainGridLayout from "../../layouts/MainGridLayout.astro";
|
||||
import ArchivePanel from "../../components/ArchivePanel.astro";
|
||||
import {i18n} from "../../i18n/translation";
|
||||
import I18nKey from "../../i18n/i18nKey";
|
||||
---
|
||||
|
||||
<MainGridLayout>
|
||||
<MainGridLayout title={i18n(I18nKey.archive)}>
|
||||
<ArchivePanel></ArchivePanel>
|
||||
</MainGridLayout>
|
||||
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
import {getSortedPosts} from "../../../utils/content-utils";
|
||||
import MainGridLayout from "../../../layouts/MainGridLayout.astro";
|
||||
import ArchivePanel from "../../../components/ArchivePanel.astro";
|
||||
|
||||
import {i18n} from "../../../i18n/translation";
|
||||
import I18nKey from "../../../i18n/i18nKey";
|
||||
|
||||
|
||||
export async function getStaticPaths() {
|
||||
@@ -29,6 +30,6 @@ const { tag } = Astro.params;
|
||||
|
||||
---
|
||||
|
||||
<MainGridLayout>
|
||||
<MainGridLayout title={i18n(I18nKey.archive)}>
|
||||
<ArchivePanel tags={[tag]}></ArchivePanel>
|
||||
</MainGridLayout>
|
||||
|
||||
Reference in New Issue
Block a user