{"id":13714044,"url":"https://github.com/EAimTY/materiality-typecho-theme","last_synced_at":"2025-05-07T00:34:47.690Z","repository":{"id":51110990,"uuid":"85086928","full_name":"EAimTY/materiality-typecho-theme","owner":"EAimTY","description":"一款简洁并专注于显示文字内容的 Material Design 风格 Typecho 主题，基于 MDUI","archived":true,"fork":false,"pushed_at":"2021-11-30T10:28:19.000Z","size":3651,"stargazers_count":84,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-23T04:31:37.429Z","etag":null,"topics":["material","material-design","materiality-typecho-theme","theme","typecho"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EAimTY.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-15T15:09:01.000Z","updated_at":"2024-05-10T14:29:28.000Z","dependencies_parsed_at":"2022-09-01T16:20:39.260Z","dependency_job_id":null,"html_url":"https://github.com/EAimTY/materiality-typecho-theme","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Fmateriality-typecho-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Fmateriality-typecho-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Fmateriality-typecho-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Fmateriality-typecho-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EAimTY","download_url":"https://codeload.github.com/EAimTY/materiality-typecho-theme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224551135,"owners_count":17330081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["material","material-design","materiality-typecho-theme","theme","typecho"],"created_at":"2024-08-02T23:01:50.637Z","updated_at":"2024-11-14T01:30:30.911Z","avatar_url":"https://github.com/EAimTY.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# materiality-typecho-theme\n\n\u003cimg src=\"https://raw.githubusercontent.com/EAimTY/materiality-typecho-theme/master/materiality-typecho-theme.png\" alt=\"Logo\" width=\"192\" /\u003e\n\n一款简洁并专注于显示文字内容的 Material Design 风格 Typecho 主题，基于 [MDUI](https://www.mdui.org/)\n\nhttps://github.com/EAimTY/materiality-typecho-theme\n\n# 特性\n\n- 严格遵循 Material Design\n- 样式简洁，专注于显示文字内容\n- 支持 Pjax 无刷新加载页面\n- 支持图片懒加载\n- 可自由切换主题颜色\n- 可手动或根据访问者时间（20:00~7:00）与访问者系统全局暗色模式状态自动切换至暗色模式\n- 可在文章内容中的中文与西文、中文与数字间自动插入空格\n- 自动创建文章目录，并且可为每篇文章与页面分别设置其是否显示\n- 可自定义应用栏、侧边栏、文章信息、页脚中显示的内容\n- 主题选项中可直接设置友情链接\n\n# Demo\n\n![Demo](https://raw.githubusercontent.com/EAimTY/materiality-typecho-theme/master/screenshot.png)\n\n[https://www.eaimty.com/theme.html](https://www.eaimty.com/theme.html)\n\n# 使用帮助\n\n## 安装与更新主题\n\n**本主题在 Typecho 当前正式稳定版本（1.1）下开发并测试，使用需 PHP 7.0+**\n\n从其它主题更换为本主题，或从本主题较旧版本更新至新版本时，可能会出现显示 bug，这是由于浏览器与 CDN（如果有）的缓存没有更新。所以请在更换或更新主题后清除浏览器与 CDN 缓存以得到最佳显示效果\n\n1. 前往 [Releases页](https://github.com/EAimTY/materiality-typecho-theme/releases) 下载或使用 Git 克隆主题至`usr/themes/`下\n2. 进入后台并启用主题\n3. 进入设置外观并自定义主题\n4. 清除浏览器与 CDN 缓存以免与之前使用的主题发生冲突\n\n## 配置代码高亮\n\n代码高亮通过 [highlight.js](https://github.com/highlightjs/highlight.js) 实现，可以自动识别代码语言并着色，可在后台主题设置页面开启。由于每个博客需要代码高亮的语言都不相同，如果在构建时包含所有语言，脚本体积将会非常大，严重影响用户体验\n\n请进入 [highlight.js 自定义构建下载](https://highlightjs.org/download/) 页面，在 Custom package 节选择所需的语言支持，将下载到的 zip 文件中的`highlight.pack.js`文件重命名为`highlight.min.js`，并替换`主题目录/assets/js/highlight.min.js`\n\nhighlight.js 支持多种颜色主题，默认为 `atom-one-light`，如需自定义代码高亮颜色主题，请替换`主题目录/assets/css/highlight.min.css`（可在自定义构建下载到的`highlight.zip`中的`styles`目录下找到所有支持的主题）\n\n## 截断文章内容在目录中的显示\n\n默认下，Typecho 会将文章的全部内容显示在文章目录中，在文章内容过长时，可在需要截断的位置加入分割标记`\u003c!--more--\u003e`，Typecho 将仅显示分割标记前的内容：\n\n    这是一篇文章\n    这里的内容会在文章目录中显示\n    这里的内容也会在文章目录中显示\n\n    \u003c!--more--\u003e\n\n    这里的内容不会在文章目录中显示\n    这里的内容不会在文章目录中显示\n\n## 其它\n\n1. `显示暗色模式切换按钮`与`自动切换至暗色模式`互不依赖，可同时开启、关闭或分别开启\n2. 在开启 pangu 后，对于不需要在中文与西文、中文与数字间插入空格的内容，可将其放入`\u003cnopangu\u003e\u003c/nopangu\u003e`标签内，pangu 将不处理`\u003cnopangu\u003e`标签中的内容\n3. 由于 Pjax 与评论反垃圾不兼容，本主题默认关闭了评论反垃圾保护，如有需求可使用插件替代\n4. 如果您对本主题有任何建议或有问题需要反馈，可以提交 Issue、PR，或通过其它方式联系我\n\n# 版本\n\n4.8.10\n\n# 更新日志\n\n见 [CHANGELOG](https://github.com/EAimTY/materiality-typecho-theme/blob/master/CHANGELOG.md)\n\n# 开源许可\n\nThe GNU General Public License v3.0\n\n# 本项目使用了\n\n- [MDUI](https://www.mdui.org/)\n- [Pjax](https://github.com/MoOx/pjax)\n- [lazysizes](https://github.com/aFarkas/lazysizes)\n- [pangu.php](https://github.com/linclancey/pangu.php)\n- [highlight.js](https://github.com/highlightjs/highlight.js)\n- [smoothscroll-for-websites](https://github.com/gblazex/smoothscroll-for-websites)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEAimTY%2Fmateriality-typecho-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEAimTY%2Fmateriality-typecho-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEAimTY%2Fmateriality-typecho-theme/lists"}