11---
22import DefaultLayout from " ../../../layouts/DefaultLayout.astro" ;
33import TableOfContents from " ../../../components/TableOfContents.astro" ;
4- import GitInfo from " ../../../components/GitInfo.astro" ;
54import { getGitInfo } from " ../../../remark/remark-git-info" ;
65import { parseLocale , useTranslations } from " ../../../utils/i18n" ;
76import Comments from " ../../../components/Comments.astro" ;
@@ -20,6 +19,8 @@ import {
2019} from " ../../../utils/paths" ;
2120import ArticleWithAside from " ../../../layouts/pages/ArticleWithAside.astro" ;
2221import DateTime from " ../../../components/DateTime.astro" ;
22+ import VersioningDetails from " ../../../components/VersioningDetails.astro" ;
23+ import Details from " ../../../components/Details.astro" ;
2324
2425export const getStaticPaths = async () => {
2526 const routePattern = " [...locale]/[blog]/[...slug]" ;
@@ -61,22 +62,18 @@ const t = useTranslations(parseLocale(locale));
6162 <Comments />
6263 <Fragment slot =" title" >
6364 <h1 >{ title } </h1 >
64- { publishedAt && <DateTime date = { publishedAt } />}
6565 </Fragment >
6666 <Fragment slot =" aside" >
6767 <TableOfContents headings ={ headings } />
68- <GitInfo gitInfo ={ gitInfo } >
69- <Fragment slot =" after" >
70- <dt >{ t (" tagsLabel" )} </dt >
71- <dd >
72- {
73- tags .map ((tag ) => (
74- <a href = { resolvePath (blogPath , slug (tag ))} >{ tag } </a >
75- ))
76- }
77- </dd >
78- </Fragment >
79- </GitInfo >
68+ <Details defaultOpen title ={ t (" detailsLabel" )} >
69+ <dl >
70+ <dt >{ t (" createdAtLabel" )} </dt >
71+ <dd ><DateTime date ={ publishedAt } /></dd >
72+ <dt >{ t (" categorizedWithLabel" )} </dt >
73+ <dd >{ tags .map ((tag ) => <a href = { resolvePath (blogPath , slug (tag ))} >{ tag } </a >)} </dd >
74+ </dl >
75+ </Details >
76+ <VersioningDetails gitInfo ={ gitInfo } />
8077 </Fragment >
8178 </ArticleWithAside >
8279</DefaultLayout >
0 commit comments