Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/pages/en/articles/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ReadingProgress from '../../../components/ReadingProgress.astro'
import TableOfContents from '../../../components/TableOfContents.astro'
import ArticleNav from '../../../components/ArticleNav.astro'
import ArticleViews from '../../../components/ArticleViews.astro'
import Discussion from '../../../components/discussion/Discussion.tsx'
import { getCollection, render } from 'astro:content'
import { SITE } from '../../../config.mjs'
import { t } from '../../../i18n/index.ts'
Expand Down Expand Up @@ -155,6 +156,8 @@ const onThisPageLabel = t(labels, 'article.onThisPage')
<ArticleNav slug={article.data.slug} category={article.data.category} lang="en" labels={labels} />

<ShareButtons title={article.data.title} url={articleUrl} labels={labels} />

<Discussion client:visible slug={article.data.slug} labels={labels} />
</div>

<TableOfContents headings={tocHeadings} label={onThisPageLabel} title={article.data.title} />
Expand Down
7 changes: 2 additions & 5 deletions src/pages/en/tags/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ const tagArticles = allArticles.filter(
#{tag.slug}
</h1>
<p class="text-muted-foreground dark:text-muted-dark-foreground mb-8">{tag.description}</p>
{tagArticles.length}
{t(labels, 'tags.articlesTagged')}
<span class="font-mono text-foreground dark:text-foreground-dark">#{tag.slug}</span>.
</div>

<div class="bg-background dark:bg-background-dark rounded-lg shadow-flat-sm overflow-hidden">
<div class="bg-background dark:bg-background-dark rounded-lg shadow-flat-sm overflow-hidden">
{
tagArticles.length === 0 ? (
<div class="px-5 py-8 text-center text-sm text-muted-foreground dark:text-muted-dark-foreground">
Expand Down Expand Up @@ -76,4 +72,5 @@ const tagArticles = allArticles.filter(
)
}
</div>
</div>
</DocsLayout>
Loading