mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 19:51:07 +02:00
chore: change i18n example article and update i18n configuration
This commit is contained in:
parent
5584ef28ee
commit
355b044e9f
38 changed files with 1021 additions and 858 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
import PostTime from '@/components/PostTime.astro'
|
||||
import PostDate from '@/components/PostDate.astro'
|
||||
import { defaultLocale } from '@/config'
|
||||
|
||||
interface Post {
|
||||
|
@ -38,7 +38,7 @@ function getPostPath(post: Post) {
|
|||
<a
|
||||
class="hover:c-primary"
|
||||
href={getPostPath(post)}
|
||||
transition:name={`post-${post.data.abbrlink || post.slug}`}
|
||||
transition:name={`post-${post.data.abbrlink || post.slug}-${lang}`}
|
||||
data-disable-transition-on-theme
|
||||
>
|
||||
{post.data.title}
|
||||
|
@ -47,10 +47,10 @@ function getPostPath(post: Post) {
|
|||
{/* mobile post time */}
|
||||
<div
|
||||
class="uno-mobile-time"
|
||||
transition:name={`mobile-time-${post.data.abbrlink || post.slug}`}
|
||||
transition:name={`time-${post.data.abbrlink || post.slug}-${lang}`}
|
||||
data-disable-transition-on-theme
|
||||
>
|
||||
<PostTime
|
||||
<PostDate
|
||||
date={post.data.published}
|
||||
minutes={post.remarkPluginFrontmatter?.minutes}
|
||||
/>
|
||||
|
@ -59,10 +59,10 @@ function getPostPath(post: Post) {
|
|||
{/* desktop post time */}
|
||||
<div
|
||||
class="uno-desktop-time"
|
||||
transition:name={`desktop-time-${post.data.abbrlink || post.slug}`}
|
||||
transition:name={`time-${post.data.abbrlink || post.slug}`}
|
||||
data-disable-transition-on-theme
|
||||
>
|
||||
<PostTime
|
||||
<PostDate
|
||||
date={post.data.published}
|
||||
minutes={post.remarkPluginFrontmatter?.minutes}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue