diff --git a/README.md b/README.md index 9e3870c..46d9934 100644 --- a/README.md +++ b/README.md @@ -1,57 +1,79 @@ -# 重新编排 -Retypeset 是一款基于 [Astro](https://astro.build/) 框架的静态博客主题,中文名为重新编排,最初灵感来自 [Typography](https://astro-theme-typography.vercel.app/)。本主题以原主题风格为基础,通过建立统一的色彩、版式、字体规范,对所有页面都进行重新编排,力求还原活字印刷时代的阅读体验,同时不失现代设计的优雅与简约。处处皆为细节,方寸尽显优雅。 +# Retypeset -## 🚧 进度 -当前开发进度约 50%,暂不建议使用本主题 +一款基于 [Astro](https://astro.build/) 开发的博客主题。 -## 🔎 预览 -- [开发预览](https://retypeset.radishzz.cc/) -- [移动端设计图](https://mastergo.com/file/151079538766773?fileOpenFrom=home&page_id=M&source=link_share&shareId=151079538766773) -- [主题配置介绍](https://github.com/radishzzz/astro-theme-retypeset/blob/master/src/config.ts) +> 正在开发中,暂不建议使用 + + + +## 🔎 Demo + +- [Retypeset](https://retypeset.radishzz.cc/) +- [移动端设计稿](https://mastergo.com/file/151079538766773?fileOpenFrom=home&page_id=M&source=link_share&shareId=151079538766773) + +## ✨ 特征 + +- 基于 Astro 与 UnoCSS 开发 +- 支持 RSS、Sitemap、OpenGraph、MDX、LaTeX +- 亮色/暗色模式 +- i18n 多语言 +- 优雅的过渡动画 +- 中文排版优化 +- 响应式设计 +- 评论系统 +- 高度自定义 ## 🚀 性能 -[PageSpeed Insights](https://pagespeed.web.dev/analysis/https-retypeset-radishzz-cc/f3h9h891jn?form_factor=mobile) -## ✨ 特征: -1. 工具:基于 Astro、Typescript 与 Unocss 开发 -2. 扩展:支持 RSS、Sitemap、MDX、LaTeX 等 -3. i18n :支持简体中文、繁体中文、日语、英语、西班牙语、俄语 -4. 按键:支持多语言切换、亮暗主题切换、返回顶部/主页 -5. 字体:包含初夏明朝体 VF、Snell Roundhand SF、STIX Two Text VF,无商用/嵌入限制 -6. 排版:针对 CJK 字体,使用赫蹏进行排版样式增强 -7. 动画:支持 View Transitions 与 GSAP -8. 性能: 最小化 CSS 与 JavaScript,支持资源预加载、图片懒加载 -9. 配置:支持切换黑体/宋体、设置评论、站点验证、自定义页脚等 +

+ + Retypeset Lighthouse Score + +

-## 🎯 TODO -1. 英文 readme -2. waline 评论 -3. 目录 -4. 搜索 -5. 自动生成 OG -6. GSAP -7. 主题说明文档 -8. 优化 heti css -9. 自定义文章 slug -10. 首页同步滚动 -11. img to figure -12. 样式 bug 测试 -13. 内存异常增长测试 +## 📦 部署 -## 📦 安装 -Fork and Deploy +1. 点击 [`Fork`](https://github.com/radishzzz/astro-theme-retypeset/fork) 克隆仓库。 -## ⏫ 更新 -Sync Fork +2. 点击 `Deploy to Netlify` 或 `Deploy (to Vercel)`。 -## 📝 文档 -TODO + [![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start) +[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new) -## 💖 感谢 -优秀主题参考 -- [Typography](https://astro-theme-typography.vercel.app/) +3. 选择对应仓库,点击 `Deploy` 即可。 + +参考 [Astro 部署指南](https://docs.astro.build/zh-cn/guides/deploy/) 可选择其它平台进行部署。 + +## 更新 + +1. 参考 [GitHub 文档](https://docs.github.com/zh/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork)。 + +2. 在克隆仓库中执行 `Sync fork` 同步最新分支。 + +3. 不要点击 `Discard Changes` 放弃你的更改。 + +## 📄 文档 + +正在施工中... + +- [主题配置](https://github.com/radishzzz/astro-theme-retypeset/blob/master/src/config.ts) + +## ❤️ 感谢 + +- [Typography](https://github.com/moeyua/astro-theme-typography) - [Fuwriu](https://github.com/saicaca/fuwari) -- [Astro Paper](https://github.com/satnaing/astro-paper) +- [Redefine](https://github.com/EvanNotFound/hexo-theme-redefine) +- [AstroPaper](https://github.com/satnaing/astro-paper) +- [赫蹏](https://github.com/sivan/heti) +- [初夏明朝体](https://github.com/GuiWonder/EarlySummerSerif) -## 🌟 Star History -TODO +## ⭐ Star History + +

+ + + + + Star History Chart + +

diff --git a/Retypeset-lighthouse-score.svg b/Retypeset-lighthouse-score.svg new file mode 100644 index 0000000..db86b3d --- /dev/null +++ b/Retypeset-lighthouse-score.svg @@ -0,0 +1,159 @@ + + + + + + 100 + Performance + , + + + 100 + Accessibility + , + + + 100 + Best Practices + , + + + 100 + SEO + + + + + + + + + + + + + + 0-49 + 50-89 + 90-100 + + + \ No newline at end of file diff --git a/src/content/posts/markdown-extended.mdx b/src/content/posts/Markdown 扩展样式.mdx similarity index 97% rename from src/content/posts/markdown-extended.mdx rename to src/content/posts/Markdown 扩展样式.mdx index dcdcd46..2c6bc7f 100644 --- a/src/content/posts/markdown-extended.mdx +++ b/src/content/posts/Markdown 扩展样式.mdx @@ -1,8 +1,7 @@ --- -title: Markdown Extended Features +title: Markdown 扩展样式 published: 2022-04-01 tags: ["Markdown"] -lang: en --- FROM https://github.com/saicaca/fuwari diff --git a/src/content/posts/retypeset_en.md b/src/content/posts/retypeset_en.md index 9a7a55a..7501345 100644 --- a/src/content/posts/retypeset_en.md +++ b/src/content/posts/retypeset_en.md @@ -5,4 +5,4 @@ tags: ["Astro", "Blog Theme"] lang: en --- -Retypeset, an Astro-powered blog theme with the Chinese name "Recomposition", draws initial inspiration from typographic artistry. While preserving the quintessential charm of movable-type printing, it revolutionizes all page layouts with meticulous typographic design. This theme crafts a minimalist modern aesthetic that simultaneously resonates with the humanistic elegance inherent in traditional printing craftsmanship. +A blog theme based on [Astro](https://astro.build/) framework, initially inspired by [Typography](https://astro-theme-typography.vercel.app/). This theme builds upon its original style by establishing unified color schemes, layouts, font standards while recomposing all pages aiming at recreating reading experiences from movable type printing era without losing modern designs elegance & simplicity; every detail matters here where elegance is revealed within inches. diff --git a/src/content/posts/retypeset_zh.md b/src/content/posts/retypeset_zh.md index 98f533d..78e9be5 100644 --- a/src/content/posts/retypeset_zh.md +++ b/src/content/posts/retypeset_zh.md @@ -4,4 +4,4 @@ published: 2024-01-25 tags: ["Astro", "博客主题"] --- -Retypeset 是一款基于 Astro 的博客主题,中文名为『重新编排』,最初灵感来源于 Typography。本主题在保留原『活字印刷』风格的基础上,以版式设计为核心,对所有页面都进行了重新编排,营造出简约现代的视觉风格,同时又流淌着传统印刷的人文气韵。 +一款基于 [Astro](https://astro.build/) 框架的博客主题,中文名为重新编排,最初灵感来自 [Typography](https://astro-theme-typography.vercel.app/)。本主题以原主题风格为基础,通过建立统一的色彩、版式、字体规范,并对所有页面都进行重新编排,来还原活字印刷时代的阅读体验,同时不失现代设计的优雅与简约。处处皆为细节,方寸尽显优雅。 diff --git a/src/content/posts/容忍与自由.mdx b/src/content/posts/容忍与自由.mdx index 5798fc6..a635e71 100644 --- a/src/content/posts/容忍与自由.mdx +++ b/src/content/posts/容忍与自由.mdx @@ -5,7 +5,7 @@ tags: ["胡适"] --- import { Image } from 'astro:assets'; -一只猫在阳光下睡觉。 +这是图片的说明文字 十七八年前,我最后一次会见我的母校康耐儿大学的史学大师布尔先生(George Lincoln Burr)。我们谈到英国史学大师阿克顿(Lord Acton)一生准备要著作一部《自由之史》,没有写成他就死了。布尔先生那天谈话很多,有一句话我至今没有忘记。他说,“我年纪越大,越感觉到容忍(tolerance)比自由更重要”。 diff --git a/src/content/posts/故乡.mdx b/src/content/posts/故乡.mdx index 31fb652..d6b5afc 100644 --- a/src/content/posts/故乡.mdx +++ b/src/content/posts/故乡.mdx @@ -5,7 +5,7 @@ tags: ["鲁迅"] --- import { Image } from 'astro:assets'; -一只猫在阳光下睡觉。 +这是图片的说明文字 我冒了嚴寒,回到相隔二千餘里,別了二十餘年的故鄉去。 diff --git a/src/content/posts/羅生門.mdx b/src/content/posts/羅生門.mdx index 5e8ee55..ee2fab8 100644 --- a/src/content/posts/羅生門.mdx +++ b/src/content/posts/羅生門.mdx @@ -5,7 +5,7 @@ tags: ["芥川龙之介"] --- import { Image } from 'astro:assets'; -一只猫在阳光下睡觉。 +这是图片的说明文字 ある日の暮方の事である。一人の下人げにんが、羅生門らしょうもんの下で雨やみを待っていた。