{"id":17137760,"url":"https://github.com/xuexb/hexo-theme-mip","last_synced_at":"2025-04-13T09:51:34.640Z","repository":{"id":57263787,"uuid":"104558104","full_name":"xuexb/hexo-theme-mip","owner":"xuexb","description":"Hexo MIP 模板","archived":false,"fork":false,"pushed_at":"2018-02-23T08:23:00.000Z","size":121,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T01:12:54.534Z","etag":null,"topics":["hexo","hexo-blog","hexo-theme","mip"],"latest_commit_sha":null,"homepage":"https://xuexb.github.io/hexo-theme-mip-demo/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xuexb.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}},"created_at":"2017-09-23T09:59:06.000Z","updated_at":"2023-06-14T00:32:12.000Z","dependencies_parsed_at":"2022-08-25T02:51:52.059Z","dependency_job_id":null,"html_url":"https://github.com/xuexb/hexo-theme-mip","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuexb%2Fhexo-theme-mip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuexb%2Fhexo-theme-mip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuexb%2Fhexo-theme-mip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuexb%2Fhexo-theme-mip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xuexb","download_url":"https://codeload.github.com/xuexb/hexo-theme-mip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695300,"owners_count":21146952,"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":["hexo","hexo-blog","hexo-theme","mip"],"created_at":"2024-10-14T20:07:52.807Z","updated_at":"2025-04-13T09:51:34.612Z","avatar_url":"https://github.com/xuexb.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hexo-theme-mip\n\nHexo MIP 模板, [在线预览](https://xuexb.github.io/hexo-theme-mip-demo/)\n\n## 安装\n\n```bash\n# 安装依赖\nnpm install --save \\\n    hexo-browsersync \\\n    hexo-renderer-jade \\\n    hexo-generator-feed \\\n    hexo-generator-sitemap \\\n    hexo-generator-archive \\\n    hexo-generator-mip\n\n# 克隆主题\ngit clone https://github.com/xuexb/hexo-theme-mip.git themes/mip\n```\n\n## 配置\n\n修改 `_config.yml` 的 `theme` 配置项为 `mip`:\n\n```yaml\n# 站点信息\ntitle: '网站首页标题'\nsubtitle: '网站二级页面标题后缀'\ndescription: '网站描述'\nauthor: '网站作者, 导航和版权使用'\nurl: '网站绝对 http 链接'\nlanguage: zh-cn\n\n# 启用 mip 主题\ntheme: mip\n\n# 在归档页面显示所有文章\n# 需要上面安装的 hexo-generator-archive 插件支持\narchive_generator:\n    per_page: 0\n    yearly: false\n    monthly: false\n    daily: false\n```\n\n\n## 使用\n\n### 插入图片\n\n由于 [MIP img标签规范](https://www.mipengine.org/examples/mip/mip-img.html) , 在使用图片时必须设置宽高, 如:\n\n```html\n\u003cimg src=\"https://dummyimage.com/100x100\" width=\"100\" height=\"100\" alt=\"desc\"\u003e\n```\n\n\u003e 注意:如果你的图片是绝对定位的，请给 `img` 标签添加 `layout=\"fill\"` 属性。\n\n### 摘要\n\n在文单合适位置插入 `\u003c!-- more --\u003e` 将提取为主页的摘要文本\n\n### 描述\n\n- 首页使用 `config.description`\n- 文章页使用 `post.desc` , 如果不存在则使用 `post.title + config.author`\n\n### 警告块\n\n思路来自 [@pinggod/hexo-theme-apollo](https://github.com/pinggod/hexo-theme-apollo) , 颜色来自 [layui](http://www.layui.com/doc/element/color.html)\n\n#### 默认 - 绿色\n\n```html\n\u003cdiv class=\"tip\"\u003e\n    预处理器很强大，但它只是编写 CSS 的辅助工具。出于对扩展和维护等方面的考虑，在大型项目中有必要使用预处理器构建 CSS；但是对于小型项目，原生的 CSS 可能是一种更好的选择。不要肆意使用预处理器！\n\u003c/div\u003e\n```\n\n#### 提示 - 蓝色\n\n```html\n\u003cdiv class=\"tip-info\"\u003e\n    预处理器很强大，但它只是编写 CSS 的辅助工具。出于对扩展和维护等方面的考虑，在大型项目中有必要使用预处理器构建 CSS；但是对于小型项目，原生的 CSS 可能是一种更好的选择。不要肆意使用预处理器！\n\u003c/div\u003e\n```\n\n#### 警告 - 红色\n\n```html\n\u003cdiv class=\"tip-error\"\u003e\n    预处理器很强大，但它只是编写 CSS 的辅助工具。出于对扩展和维护等方面的考虑，在大型项目中有必要使用预处理器构建 CSS；但是对于小型项目，原生的 CSS 可能是一种更好的选择。不要肆意使用预处理器！\n\u003c/div\u003e\n```\n\n## todo\n\n- [ ] 标签页\n- [ ] 搜索页\n\n## contributors\n\n- [@yugasun](https://github.com/yugasun/)\n- [@xuexb](https://github.com/xuexb/)\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuexb%2Fhexo-theme-mip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxuexb%2Fhexo-theme-mip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuexb%2Fhexo-theme-mip/lists"}