diff --git a/README.md b/README.md index 9dd42a5..e9201ff 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Personal website created with Astro. - [x] Table of contents - [x] Content management via [Directus](https://directus.io/) - [x] Form handling -- [x] Comment system via [Disqus](https://disqus.com/) +- [x] Comment system via [Remark42](https://github.com/umputun/remark42) - [x] RSS Feed for articles - [x] SEO optimized - [x] Views counter diff --git a/package.json b/package.json index c805d47..a8bc8f4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "yarkov.tech", "private": false, - "version": "2.1.0", + "version": "2.2.0", "description": "Personal website created with Astro.", "author": { "name": "Sergey Yarkov", diff --git a/src/components/ArticleComments.astro b/src/components/ArticleComments.astro index cb3a4e2..f6e73fe 100644 --- a/src/components/ArticleComments.astro +++ b/src/components/ArticleComments.astro @@ -1,44 +1,53 @@ --- +import UIString from "./UIString.astro"; + interface Props { url: string; id: string; + lang: LanguageKeys; } -const { url, id } = Astro.props as Props; +const { url, id, lang } = Astro.props as Props; --- - diff --git a/src/components/ArticlePost.astro b/src/components/ArticlePost.astro index 74fde3e..fc5abc9 100644 --- a/src/components/ArticlePost.astro +++ b/src/components/ArticlePost.astro @@ -28,7 +28,9 @@ const { views, article_id: articleTranslations, } = article; + const t = useTranslation(Astro); +// const articleCodeLangs = articleTranslations?.translations?.map((t) => t?.languages_code?.code); ---
@@ -63,11 +65,7 @@ const t = useTranslation(Astro); - { - cover_image && ( - - ) - } + {cover_image && }

{description} @@ -76,9 +74,13 @@ const t = useTranslation(Astro); - +

+ +