diff --git a/src/components/LatestComments.astro b/src/components/LatestComments.astro new file mode 100644 index 0000000..4566eba --- /dev/null +++ b/src/components/LatestComments.astro @@ -0,0 +1,175 @@ +--- +const { lang = "zh" } = Astro.props; +const host = import.meta.env.PUBLIC_REMARK42_HOST; +const siteId = import.meta.env.PUBLIC_REMARK42_SITE_ID; +const max = 10; +const heading = lang === "zh" ? "最新评论" : "Latest comments"; +--- + +
+

{heading}

+ + + +
+
+ + diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro index 7e21097..d2346e4 100644 --- a/src/components/Navigation.astro +++ b/src/components/Navigation.astro @@ -7,7 +7,7 @@ const t = getTranslations(lang);