mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-19 14:43:29 +09:00
tags pages added
This commit is contained in:
@@ -3,6 +3,8 @@ import { getLangFromUrl } from "@/lib/utils/i18nUtils";
|
||||
import { plainify } from "@/lib/utils/textConverter";
|
||||
import ImageMod from "./ImageMod.astro";
|
||||
import Social from "./Social.astro";
|
||||
import config from "@/config/config.json";
|
||||
const { default_language } = config.settings;
|
||||
|
||||
const { data } = Astro.props;
|
||||
const { title, image, social } = data.data;
|
||||
@@ -25,7 +27,8 @@ const lang = getLangFromUrl(Astro.url);
|
||||
)
|
||||
}
|
||||
<h4 class="mb-3">
|
||||
<a href={`/${lang === "en" ? "authors" + "/" : lang}/${data.slug}`}
|
||||
<a
|
||||
href={`/${lang === default_language ? "authors" + "/" : lang}/${data.slug}`}
|
||||
>{title}</a
|
||||
>
|
||||
</h4>
|
||||
|
||||
Reference in New Issue
Block a user