diff --git a/repos/.vitepress/config/markdown.ts b/repos/.vitepress/config/markdown.ts index 1329a652a..b0e5ae17f 100644 --- a/repos/.vitepress/config/markdown.ts +++ b/repos/.vitepress/config/markdown.ts @@ -9,7 +9,7 @@ export const markdown: MarkdownOptions = { config: (md) => { md.renderer.rules.heading_close = (tokens, idx, options, env, slf) => { let htmlResult = slf.renderToken(tokens, idx, options, env, slf) - if (tokens[idx].tag === 'h1') htmlResult += `\n` + if (tokens[idx].tag === 'h1') htmlResult += `\n` return htmlResult } } diff --git a/repos/.vitepress/theme/components/ArticleMetadata.vue b/repos/.vitepress/theme/components/ArticleMetadata.vue index 4fa4ecc46..1b9b5254d 100644 --- a/repos/.vitepress/theme/components/ArticleMetadata.vue +++ b/repos/.vitepress/theme/components/ArticleMetadata.vue @@ -1,5 +1,5 @@ @@ -48,7 +42,6 @@ const toDate = dayjs().to(dayjs(frontmatter.value.date)) } .meta-item { display: inline-block; - margin-right: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @@ -58,9 +51,12 @@ const toDate = dayjs().to(dayjs(frontmatter.value.date)) cursor: default; font-size: 14px; } +.meta-item:not(:last-child) { + margin-right: 1.25rem; +} .meta-icon, meta-content { display: inline-block; - margin-right: 8px; + margin-right: .375rem; vertical-align: middle; } .meta-icon {