diff --git a/README.md b/README.md index 6f398f8..0b9c7ce 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,9 @@ # Retypeset -A blog theme based on the Astro framework, inspired by Typography. This theme is based on the style of Typography, through the establishment of a new visual standard, all the pages are rearranged to create a reading experience like the pages of a paper book, reviving the beauty of traditional layouts. Details in every sight, elegance in every space. +A static blog theme based on the Astro framework, inspired by Typography. This theme is based on the style of Typography, through the establishment of a new visual standard, all the pages are rearranged to create a reading experience like the pages of a paper book, reviving the beauty of typography. + +Details in every sight, elegance in every space. - [Live Demo](https://retypeset.radishzz.cc/) - [Mobile design](https://mastergo.com/file/151079538766773?fileOpenFrom=home&page_id=M&source=link_share&shareId=151079538766773) diff --git a/README.zh.md b/README.zh.md index 6cb26bd..72e0ece 100644 --- a/README.zh.md +++ b/README.zh.md @@ -19,7 +19,9 @@ # 重新编排 -一款基于 Astro 框架的博客主题,最初灵感来自 Typography。本主题以活版印刷风格为基础,通过建立全新的视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现传统版式之美。所见皆为细节,方寸尽显优雅。 +一款基于 Astro 框架的静态博客主题,灵感来自 Typography。本主题以活版印刷风格为基础,通过建立全新视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现版式之美。 + +所见皆为细节,方寸尽显优雅。 - [在线预览](https://retypeset.radishzz.cc/) - [移动端设计稿](https://mastergo.com/file/151079538766773?fileOpenFrom=home&page_id=M&source=link_share&shareId=151079538766773) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 55fb685..a01e82e 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -27,12 +27,12 @@ const year = Number(startYear) === currentYear ]} >

- {linkAName} / - {linkBName} / - {linkCName} + {linkAName} / + {linkBName} / + {linkCName}

- Powered by Astro and Retypeset + Powered by Astro and Retypeset

© {year} {author} diff --git a/src/content/posts/retypeset_en.md b/src/content/posts/retypeset_en.md index 0fddfb1..5784d6f 100644 --- a/src/content/posts/retypeset_en.md +++ b/src/content/posts/retypeset_en.md @@ -5,4 +5,6 @@ tags: ["Astro", "Markdown"] lang: en --- -A blog theme based on the Astro framework, inspired by Typography. This theme is based on the style of Typography, through the establishment of a new visual standard, all the pages are rearranged to create a reading experience like the pages of a paper book, reviving the beauty of traditional layouts. Details in every sight, elegance in every space. +A static blog theme based on the Astro framework, inspired by Typography. This theme is based on the style of Typography, through the establishment of a new visual standard, all the pages are rearranged to create a reading experience like the pages of a paper book, reviving the beauty of typography. + +Details in every sight, elegance in every space. diff --git a/src/content/posts/retypeset_zh.md b/src/content/posts/retypeset_zh.md index cb43c64..cd0281e 100644 --- a/src/content/posts/retypeset_zh.md +++ b/src/content/posts/retypeset_zh.md @@ -4,4 +4,6 @@ published: 2024-01-25 tags: ["Astro", "Markdown"] --- -一款基于 Astro 框架的博客主题,最初灵感来自 Typography。本主题以活版印刷风格为基础,通过建立全新的视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现传统版式之美。所见皆为细节,方寸尽显优雅。 +一款基于Astro框架的静态博客主题,灵感来自Typography。本主题以活版印刷风格为基础,通过建立全新视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现传统版式之美。 + +所见皆为细节,方寸尽显优雅。 diff --git a/src/pages/about.astro b/src/pages/about.astro index e0baf81..fb47d9c 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -5,6 +5,7 @@ import Layout from '@/layouts/Layout.astro'

-

一款基于 Astro 框架的博客主题,最初灵感来自 Typography。本主题以活版印刷风格为基础,通过建立全新的视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现传统版式之美。所见皆为细节,方寸尽显优雅。

+

一款基于Astro框架的静态博客主题,灵感来自Typography。本主题以活版印刷风格为基础,通过建立全新视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现传统版式之美。

+

所见皆为细节,方寸尽显优雅。

diff --git a/src/pages/posts/[slug].astro b/src/pages/posts/[slug].astro index aeeb49d..3949ef2 100644 --- a/src/pages/posts/[slug].astro +++ b/src/pages/posts/[slug].astro @@ -25,7 +25,7 @@ const { Content, remarkPluginFrontmatter } = await post.render() postDescription={post.data.description} postImage={post.data.image} > -
+

- - {post.data.tags && post.data.tags.length > 0 && ( -
-
-
- {post.data.tags.map(tag => ( - - {tag} - - ))} -
-
- )}

+ + {post.data.tags && post.data.tags.length > 0 && ( +
+
+
+ {post.data.tags.map(tag => ( + + {tag} + + ))} +
+
+ )} + diff --git a/src/styles/heti.css b/src/styles/heti.css index b8523e2..f9bb8b0 100644 --- a/src/styles/heti.css +++ b/src/styles/heti.css @@ -23,6 +23,9 @@ .heti>*:last-child,.heti section>*:last-child,.heti td>*:last-child { margin-block-end:0 !important } +.heti a { + --at-apply: 'uno-custom-underline'; +} .heti blockquote { margin-block-start:12px; margin-block-end:24px; diff --git a/uno.config.ts b/uno.config.ts index 32549ac..3fdbe64 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -32,7 +32,9 @@ export default defineConfig({ serif: ['STIX', 'EarlySummer', 'Georgia', 'ui-serif', 'Georgia', 'Cambria', 'Times New Roman', 'Times', 'serif'], }, }, - shortcuts: {}, + shortcuts: { + 'uno-custom-underline': 'underline mx-0.3em decoration-secondary/35 font-medium underline-0.075em underline-offset-0.2em hover:(c-primary decoration-primary/50 transition underline-0.1em)', + }, rules: [ ['scrollbar-hidden', { 'scrollbar-width': 'none',