{"id":13714048,"url":"https://github.com/eastonman/material","last_synced_at":"2025-04-30T08:14:08.100Z","repository":{"id":107793085,"uuid":"116939777","full_name":"eastonman/material","owner":"eastonman","description":"New Material —— A Material Design Theme for Typecho","archived":false,"fork":false,"pushed_at":"2018-12-08T15:43:47.000Z","size":6221,"stargazers_count":156,"open_issues_count":6,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-30T08:14:01.245Z","etag":null,"topics":["material","material-theme","theme","typecho","typecho-theme","typecho-theme-material"],"latest_commit_sha":null,"homepage":"https://blog.eastonman.com","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/eastonman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-10T09:51:19.000Z","updated_at":"2024-10-14T13:28:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"49ef2dcf-32bd-46f4-a3ea-930e6d9d2c26","html_url":"https://github.com/eastonman/material","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eastonman%2Fmaterial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eastonman%2Fmaterial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eastonman%2Fmaterial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eastonman%2Fmaterial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eastonman","download_url":"https://codeload.github.com/eastonman/material/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251666361,"owners_count":21624298,"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-theme","theme","typecho","typecho-theme","typecho-theme-material"],"created_at":"2024-08-02T23:01:50.695Z","updated_at":"2025-04-30T08:14:08.080Z","avatar_url":"https://github.com/eastonman.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# New Material \n\n\u003e Embrace Material Design\n\nNew Material 是一款遵循 Material Design 的 Typecho 主题\n\n![https://travis-ci.org/manyang901/material](https://img.shields.io/travis/manyang901/material.svg)\n![https://github.com/manyang901/material/releases](https://img.shields.io/github/downloads/manyang901/material/total.svg)\n![](https://img.shields.io/github/license/manyang901/material.svg)\n![](https://img.shields.io/badge/PR-welcome-blue.svg)\n\n\n![](https://ww2.sinaimg.cn/large/a15b4afegy1fof5zmd07rj20uk0i20zl.jpg)\n\n## Contents 目录\n\n\u003c!-- MarkdownTOC --\u003e\n\n- [General 概括](#general-概括)\n- [Feature 特性](#feature-特性)\n- [Compatibility 兼容性](#compatibility-兼容性)\n- [Demo 演示](#demo-演示)\n- [Install 安装](#install-安装)\n- [Configure 配置](#configure-配置)\n    - [Function Switch 功能开关](#function-switch-功能开关)\n        - [ViewCount 无插件访客统计](#viewcount-无插件访客统计)\n    - [IconURL Icon地址](#iconurl-icon地址)\n    - [Template-Links 友链模板](#template-links-友链模板)\n- [Preview 预览](#preview-预览)\n- [Contributing 贡献](#contributing-贡献)\n- [License 许可证](#license-许可证)\n\n\u003c!-- /MarkdownTOC --\u003e\n\n## General 概括\n\n- Author 作者：Manyang901\n- Original Author 原作者：Viosey\n- Version 版本：2.10.1\n- [![Gitter](https://img.shields.io/gitter/room/material-theme/typecho.svg?style=flat-square)](https://gitter.im/material-theme/typecho?utm_source=share-link\u0026utm_medium=link\u0026utm_campaign=share-link)\n\n## Feature 特性\n\n- 遵循Google Material Design标准\n- 响应式设计，根据访问设备分辨率的不同显示不同的样式\n- 无JQuery，全部采用MDUI内置方法\n- Vanilla-Lazyload 首页缩略图“懒加载”\n- 全站 PJAX 无刷新技术\n- 压缩HTML，CSS 高速加载\n- 非插件实现访客数量统计，使用cookies验证，使用自定义字段储存计数器，不修改数据库，高解耦。\n- Update Checker 更新检查(实验性功能，谨慎使用！)\n- 友链模板\n- 自定义侧栏链接\n\n## Compatibility 兼容性\n- PHP: 5.3+ ,仅在5.6和7.2上测试，建议使用PHP7.2\n- Database 数据库: MySQL, Sqlite3, Postgresql(只要有相应的pdo驱动)\n- Typecho: 1.0、1.1、1.1测试版(仅在typecho/master 分支上测试)\n- Browser Compatibility 浏览器兼容性: Chrome Desktop 49+ , Firefox 60+ , Safari 11.1+ , Chrome Android 67+ , Internet explorer 11(无lazyload无flexbox), Microsoft Edge 17+(无lazyload)\n\n## Demo 演示\n\n[PolyQY Blog](https://kucloud.win)\n\n## Install 安装\n\n- 在[Github Release](https://github.com/manyang901/material/releases)页面，点击\"material.tar.gz\"下载，解压后将文件夹改名为 \"Material\"(或其他) 后上传到 `/usr/themes`，并启用主题。2.1.0版本引入Travis CI自动压缩css后，不建议直接clone项目，推荐在release界面下载。\n- 下载最新文件 然后覆盖原文件即可更新主题, 部分新增加的功能需要到后台开启才会生效 (建议更新后先切换为其他主题, 再切换回该主题)。否则会导致新增设置项空白。\n- 修改主题目录权限，使PHP-FPM在目录有写权限，若启用Openbase_dir也需配置允许写入主题目录\n- 首页文章概览默认最大输出80个字符, 可手动添加截断符 `\u003c!-- more --\u003e` 控制输出。\n- 若要使用Webp自适应图片，需要将解压出文件中serviceworker.js复制到网站的根目录(这是由于serviceworker作用范围的限制和typecho主题结构的特殊性)，不使用则所有设备全部返回png格式的图片，注意，现有策略是全部替换请求中的.png为.webp，这意味着若png图没有对应的webp图像则会返回404\n- 若需使用PWA，请自行在网站根目录加入manifest.json文件，也可以在线生成\n- 请确保已经安装php-curl扩展，否则可能出错或无法收集错误信息，更新检测功能也不能使用(可能会导致严重问题)，通常可以使用apt install php-curl等安装扩展\n- 可以在php交互模式下输入curl_init();以查看是否安装php-curl扩展\n- 更新检测并未加入任何容错和环境检查，请谨慎使用！\n- 友链模板需在管理独立页面中自定义字段设置\n\n\n## Configure 配置\n\n### Function Switch 功能开关\n\n- Lazyload \n- 首页两个欢迎图\n- 无插件访客统计\n\n#### ViewCount 无插件访客统计\n勾选此选项即可开始使用，注意此选项关闭时不统计数据。\n此访客统计不会影响数据库结构，Typecho原生备份可以正常使用。\n\n### IconURL Icon地址\n此项用于设置站点的图标，包括favicon、ios和windows桌面图标。\n默认情况下主题会加载位于img/icon下的图标，设置该项后加载所设url内的/img/icon下的图标，例如:\n- 此项填入`https://www.google.com`\n- 主题将会加载`https://www.google.com/img/icon/`下的图标\n注意！图标文件名必须与默认图标的文件名相同,否则不能加载。\n\n### Template-Links 友链模板\n需要在管理-\u003e独立页面中设置自定义字段，分为link, avatar和name\n三者可以有任意共同后缀\n比如\n- 'link_foo' =\u003e 'https://php.net'\n- 'avatar_foo' =\u003e 'somewhere'\n- 'name_foo' =\u003e 'PHP'\n必须填写links和avatar, name可以空缺\n\n## Preview 预览\n\n\u003cimg style=\"float: left;\" width=\"50%\" src=\"https://i.loli.net/2018/07/14/5b4a0e1e818c5.png\" alt=\"screenshot_1526462277.png\" title=\"screenshot_1526462277.png\" /\u003e\u003cimg style=\"float: right;\" width=\"50%\" src=\"https://i.loli.net/2018/07/14/5b4a0e1ec030f.png\"\u003e\n\n![](https://i.loli.net/2018/07/14/5b4a0e1e62b2e.png)\n\n## Contributing 贡献\n\nAll kinds of contributions (enhancements, new features, documentation \u0026 code improvements, issues \u0026 bugs reporting) are welcome.Looking forward to you `Pull Request`\n\nFormatted code is required , code with comments is strongly recommended. Commit Message is required to be formatted as Angular .\n\n欢迎各种形式的贡献，包括但不限于优化，添加功能，文档 \u0026 代码的改进，问题和 bugs 的报告。期待您的 `Pull Request`。\n\n对代码要求格式化，新增代码块要有注释。commit message要求按照Angular.js项目的格式填写。\n\n\n## License 许可证\n\nOpen sourced under the GPL-3.0 license.\n\n根据 GPL-3.0 许可证开源。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feastonman%2Fmaterial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feastonman%2Fmaterial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feastonman%2Fmaterial/lists"}