{"id":21955258,"url":"https://github.com/mindawei/next","last_synced_at":"2026-04-12T04:36:14.849Z","repository":{"id":215749585,"uuid":"131680888","full_name":"mindawei/next","owner":"mindawei","description":"Hexo 的 NEXT 主题备份","archived":false,"fork":false,"pushed_at":"2018-05-01T05:56:37.000Z","size":1380,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T23:15:31.638Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/mindawei.png","metadata":{"files":{"readme":"README.cn.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}},"created_at":"2018-05-01T05:48:17.000Z","updated_at":"2018-05-01T05:57:20.000Z","dependencies_parsed_at":"2024-01-06T10:32:33.095Z","dependency_job_id":null,"html_url":"https://github.com/mindawei/next","commit_stats":null,"previous_names":["mindawei/next"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindawei%2Fnext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindawei%2Fnext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindawei%2Fnext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindawei%2Fnext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mindawei","download_url":"https://codeload.github.com/mindawei/next/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245007170,"owners_count":20546143,"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":[],"created_at":"2024-11-29T07:30:16.118Z","updated_at":"2025-12-30T23:44:57.337Z","avatar_url":"https://github.com/mindawei.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"right\"\u003e\u003ca title=\"New «NexT» 6.0.0 version [Reloaded]\" href=\"https://github.com/theme-next/hexo-theme-next\"\u003eNexT v6.0.0 here :triangular_flag_on_post:\u003c/a\u003e\u003c/p\u003e\r\n\r\n\u003ch1 align=\"center\"\u003eNexT\u003c/h1\u003e\r\n\r\n\u003cp align=\"center\"\u003eNexT 是一个高质量并且优雅的\u003ca href=\"http://hexo.io\"\u003eHexo\u003c/a\u003e 主题。这是精心制作做出来的 hexo 主题。\u003c/p\u003e\r\n\r\n[![Join the chat at https://gitter.im/iissnan/hexo-theme-next](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/iissnan/hexo-theme-next?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\r\n[![mnt-image]][commits-url]\r\n[![travis-image]][travis-url]\r\n[![rel-image]][releases-url]\r\n[![hexo-image]][hexo-url]\r\n[![lic-image]](LICENSE)\r\n\r\n* \u003ca href=\"http://theme-next.iissnan.com\" target=\"_blank\"\u003eNexT 使用文档\u003c/a\u003e |  [English Documentation](README.md)\r\n\r\n## 实时预览 Live Preview\r\n\r\n\r\n* :heart_decoration: Muse 方案: [LEAFERx](https://leaferx.online) | [XiaMo](https://notes.wanghao.work) | [OAwan](https://oawan.me)\r\n* :six_pointed_star: Mist 方案: [Jeff](https://blog.zzbd.org) | [uchuhimo](http://uchuhimo.me) | [xirong](http://www.ixirong.com)\r\n* :pisces: Pisces 方案: [Vi](http://notes.iissnan.com) | [Acris](https://acris.me) | [Rainy](https://rainylog.com)\r\n* :gemini: Gemini 方案: [Ivan.Nginx](https://almostover.ru) | [Alynx](http://sh.alynx.xyz) | [Raincal](https://raincal.top)\r\n\r\n\r\n更多 NexT 例子点击 [这里](https://github.com/iissnan/hexo-theme-next/issues/119).\r\n\r\n## 安装 Installation\r\n\r\n**1.** 在终端切换到**hexo 根**目录. 在hexo目录下一定有 `node_modules`, `source`, `themes` 和其他文件夹:\r\n   ```sh\r\n   $ cd hexo\r\n   $ ls\r\n   _config.yml  node_modules  package.json  public  scaffolds  source  themes\r\n   ```\r\n\r\n**2.** 从 github 上获取主题 。这里有几种方式来获取主题:\r\n\r\n### 下载[最新发布的版本][releases-latest-url]  Download tagged release version\r\n   在大多数情况下 **稳定**。 推荐用户下载这个。\r\n\r\n   [![curl-tar-wget-image]][curl-tar-wget-url]\r\n\r\n   ```sh\r\n   $ mkdir themes/next\r\n   $ curl -s https://api.github.com/repos/iissnan/hexo-theme-next/releases/latest | grep tarball_url | cut -d '\"' -f 4 | wget -i - -O- | tar -zx -C themes/next --strip-components=1\r\n   ```\r\n\r\n### 下载[标签发布版本][releases-url]  Download tagged release version\r\n   您必须定义版本。从[标签列表][tags-url]里选择版本替换`v5.1.2`。\r\n\r\n   [![curl-tar-image]][curl-tar-url]\r\n\r\n   ```sh\r\n   $ mkdir themes/next\r\n   $ curl -L https://api.github.com/repos/iissnan/hexo-theme-next/tarball/v5.1.2 | tar -zxv -C themes/next --strip-components=1\r\n   ```\r\n\r\n   [![git-image]][git-url]\r\n\r\n   ```sh\r\n   $ git clone --branch v5.1.2 https://github.com/iissnan/hexo-theme-next themes/next\r\n   ```\r\n\r\n### 下载[最新的 master 分支][download-latest-url]  Download latest master branch\r\n  可能会 **不稳定**, 但是包含最新的特色，推荐开发者下载.\r\n\r\n   [![curl-tar-image]][curl-tar-url]\r\n\r\n   ```sh\r\n   $ mkdir themes/next\r\n   $ curl -L https://api.github.com/repos/iissnan/hexo-theme-next/tarball | tar -zxv -C themes/next --strip-components=1\r\n   ```\r\n\r\n   [![git-image]][git-url]\r\n\r\n   ```sh\r\n   $ git clone https://github.com/iissnan/hexo-theme-next themes/next\r\n   ```\r\n\r\n  使用克隆命令，你将得到**整个存储库**。而且在任何时候你都可以切换到任何标签发布版本。\r\n  获取标签列表：\r\n\r\n   ```sh\r\n   $ cd themes/next\r\n   $ git tag -l\r\n   …\r\n   v5.0.0\r\n   v5.0.1\r\n   v5.1.0\r\n   v5.1.1\r\n   v5.1.2\r\n   ```\r\n\r\n   例如, 你想要切换到`v5.1.0` [标签发布版本][tags-url]. 输入以下命令:\r\n\r\n   ```sh\r\n   $ git checkout tags/v5.1.0\r\n   Note: checking out 'tags/v5.1.0'.\r\n   …\r\n   HEAD now on 1f72f68... CSS: Remove global list-style setting of ul\r\n   ```\r\n\r\n   如果你想切换回 [master 分支][commits-url]的话, 输入这个命令:\r\n\r\n   ```sh\r\n   $ git checkout master\r\n   ```\r\n\r\n**3.** 在 **hexo 根目录下** 的配置文件`_config.yml`里设置主题:\r\n\r\n    theme: next\r\n\r\n### Bugs\r\n对于那些遇到 **Error: Cannot find module 'hexo-util'** [问题](https://github.com/iissnan/hexo-theme-next/issues/1490)的人, 请检查你的NPM 版本.\r\n\r\n- `版本 \u003e 3`: 如果仍然不行的话，请移除 `node_modules` 文件 然后重新安装，使用 `npm install`命令。\r\n- `版本 \u003c 3`: 请通过`npm install --save-dev hexo-util`命令添加`hexo-util`到你的站点包依赖里\r\n\r\n## 更新 Update\r\n\r\n```sh\r\n$ cd themes/next\r\n$ git pull\r\n```\r\n\r\n### Bugs\r\n\r\n\u003e 提交您的更改或存储它们，然后才能合并。\r\n\r\n您必须提交，存储或放弃本地更改. 看 [here](https://stackoverflow.com/a/15745424/5861495) 是如何做的。\r\n\r\n### 使用Hexo data files([#328](https://github.com/iissnan/hexo-theme-next/issues/328))配置主题  Theme configurations using Hexo data files #328\r\n\r\n\r\n目前升级 NexT 主题的时候并不是非常的流畅。若使用 `git pull` 的方式，很多时候可能会产生冲突；而下载新版本覆盖安装的方式又需要手动合并主题的 `_config.yml` 文件。\r\n\r\n在此修改之前， NexT 建议将配置分离，一部分在 站点的配置文件中，另外一部分在主题的配置文件中。将需要自定的选项放置在 站点配置文件中，从而脱离避免更新主题时可能遇到的麻烦。这种方式是可行，但是有一些缺点：\r\n\r\n1. 配置分离成了两个部分\r\n2. 用户可能会疑惑一些选项该放置在哪里比较合适\r\n\r\n为了解决这个问题， NexT 将会使用 Hexo 的 [Data Files](https://hexo.io/docs/data-files.html) 。然而由于 Data Files 是在 Hexo 3 版本时引进的，所以要使用这个特性，需要 Hexo 的版本不低于 3。\r\n\r\n若你比较喜欢 Hexo 2.x 版本，可以继续使用原先的配置方式。 NexT 保持着向下兼容。\r\n\r\n\r\n#### 特性 Benefits\r\n\r\n通过这个特性，你可以将所有的主题配置放置在站点的 `source/_data/next.yml` 文件中。原先放置在 站点配置文件 中的选项可以迁移到新的位置，同时，主题配置文件可以不用做任何修改。若后续版本有配置相关的改动时，你仅需在 `next.yml` 中做相应调整即可\r\n\r\n\r\n#### 如何使用这个特性 How to use this feature\r\n\r\n1. 请先确保你所使用的 Hexo 版本在 3 以上\r\n2. 在站点的 `source/_data` 目录下新建 `next.yml` 文件（`_data`目录可能需要新建）\r\n3. 迁移站点配置文件和主题配置文件中的配置到 `next.yml` 中\r\n4. 使用 `--config source/_data/next.yml` 参数启动服务器, 生成或者部署。\\\r\n   例如: `hexo clean --config source/_data/next.yml \u0026\u0026 hexo g --config source/_data/next.yml`。\r\n\r\n## 特色 Features\r\n\r\n### 支持多国语言, 包括:\r\n:cn: 简体中文 \u0026 繁体中文\u003cbr\u003e\r\n:us: 英语\u003cbr\u003e\r\n:ru: 俄语\u003cbr\u003e\r\n:fr: 法语\u003cbr\u003e\r\n:de: 德语\u003cbr\u003e\r\n:jp: 日语\u003cbr\u003e\r\n:indonesia: 印度尼西亚语\u003cbr\u003e\r\n:portugal: 葡萄牙语 (巴西)\u003cbr\u003e\r\n:kr: 朝鲜语\u003cbr\u003e\r\n:it: 意大利语\u003cbr\u003e\r\n:netherlands: 荷兰语\r\n\r\n默认语言是英语。\r\n\r\n```yml\r\nlanguage: en\r\n# language: zh-Hans\r\n# language: zh-hk\r\n# language: zh-tw\r\n# language: ru\r\n# language: fr-FR\r\n# language: de\r\n# language: ja\r\n# language: id\r\n# language: pt\r\n# language: pt-BR\r\n# language: ko\r\n# language: it\r\n# language: nl-NL\r\n```\r\n\r\n在站点配置文件`_config.yml`中可以将语言切换成中文\r\n\r\n```yml\r\nlanguage: zh-Hans\r\n```\r\n\r\n### 评论支持 Comment support\r\n\r\nNexT 已经原生支持 `多说` and `Disqus` 评论系统。\r\n\r\n添加以下代码到你的主题配置文件 `_config.yml`:\r\n\r\n```yml\r\nduoshuo:\r\n  enable: true\r\n  shortname: your-duoshuo-shortname\r\n```\r\n\r\n或者\r\n\r\n```yml\r\ndisqus_shortname: your-disqus-shortname\r\n```\r\n\r\n### 标签页 Tags page\r\n\r\n\u003e 添加一个标签页面，里面包含您网站中的所有标签。\r\n\r\n- 创建一个名为 `tags` 页面\r\n\r\n        hexo new page \"tags\"\r\n\r\n- 编辑标签页, 设置页面类型为`tags`.\r\n\r\n        title: All tags\r\n        date: 2014-12-22 12:39:04\r\n        type: \"tags\"\r\n\r\n- 添加 `tags` 到主题配置文件 `_config.yml` 里:\r\n\r\n        menu:\r\n          home: /\r\n          archives: /archives\r\n          tags: /tags\r\n\r\n### 分类页 Categories page\r\n\r\n\u003e 添加一个分类页面，里面包含您网站中的所有分类。\r\n\r\n- 创建一个名为 `categories` 页面\r\n\r\n        hexo new page \"categories\"\r\n\r\n- 编辑分类页, 设置页面类型为 `categories`.\r\n\r\n        title: All categories\r\n        date: 2014-12-22 12:39:04\r\n        type: \"categories\"\r\n\r\n- 添加 `categories` 到主题配置文件 `_config.yml` 里:\r\n\r\n        menu:\r\n          home: /\r\n          archives: /archives\r\n          categories: /categories\r\n\r\n### 社交媒体 Social Media\r\n\r\nNexT 可以自动添加链接到您的社交媒体帐户里:\r\n\r\n```yml\r\nsocial:\r\n  GitHub: your-github-url\r\n  Twitter: your-twitter-url\r\n  Weibo: your-weibo-url\r\n  DouBan: your-douban-url\r\n  ZhiHu: your-zhihu-url\r\n```\r\n\r\n### Feed 链接 Feed link\r\n\r\n\u003e 显示 feed 链接。\r\n\r\n在主题配置文件`_config.yml`里设置`rss` , 如下所示:\r\n\r\n1. `rss: false` 会禁用 feed 链接。\r\n2. `rss:  ` 使用站点 feed 链接。这是默认的选项。\r\n\r\n    按照插件[hexo-generator-feed](https://github.com/hexojs/hexo-generator-feed)的README中的安装说明进行操作。在完成这个插件的配置后，Feed链接也生成好了\r\n\r\n3. `rss: http://your-feed-url` 设置你的 feed 链接.\r\n\r\n### 内置5种代码高亮主题 Up to 5 code highlight themes built-in\r\n\r\nNexT 使用的是 [Tomorrow 主题](https://github.com/chriskempson/tomorrow-theme) ，一共有5种主题供你选择。\r\nNext 默认使用 `normal`. 下面是 `normal` 和 `night` 主题的预览:\r\n\r\n![Tomorrow Normal Preview](http://iissnan.com/nexus/next/tomorrow-normal.png)\r\n![Tomorrow Night Preview](http://iissnan.com/nexus/next/tomorrow-night.png)\r\n\r\n查看更多信息点击[Tomorrow 主题](https://github.com/chriskempson/tomorrow-theme)。\r\n\r\n## 配置 Configuration\r\n\r\nNexT 的配置很少\r\n\r\n```yml\r\n\r\n# Menu configuration.\r\nmenu:\r\n  home: /\r\n  archives: /archives\r\n\r\n# Favicon\r\nfavicon: /favicon.ico\r\n\r\n# Avatar (put the image into next/source/images/)\r\n# can be any image format supported by web browsers (JPEG,PNG,GIF,SVG,..)\r\navatar: /default_avatar.png\r\n\r\n# Code highlight theme\r\n# available: normal | night | night eighties | night blue | night bright\r\nhighlight_theme: normal\r\n\r\n# Fancybox for image gallery\r\nfancybox: true\r\n\r\n# Specify the date when the site was setup\r\nsince: 2013\r\n\r\n```\r\n\r\n\r\n## 浏览器支持 Browser support\r\n\r\n![Browser support](http://iissnan.com/nexus/next/browser-support.png)\r\n\r\n[![Browser Stack](.github/browserstack_logo.png)](https://www.browserstack.com/)\r\n\u003e**BrowserStack** is a cloud-based cross-browser testing tool that enables developers to test their websites across various browsers on different operating systems and mobile devices, without requiring users to install virtual machines, devices or emulators.\r\n\r\n## 贡献 Contributing\r\n\r\n接受各种形式的贡献，包括不限于提交问题与需求，修复代码。等待您的`Pull Request`。\r\n\r\nAny types of contribution are welcome. Thanks.\r\n\r\n**ATTENTION! Contributors on Chinese docs needed!**\\\r\nNeed to translate from [English docs](README.md) to Chinese docs.\\\r\nAny help wanted!\\\r\nThank's a lot!\r\n\r\n## 开发 Development\r\n\r\nNexT 主旨在于简洁优雅且易于使用，所以首先要尽量确保 NexT 的简洁易用性。\r\n\r\nNexT is built for easily use with elegant appearance. First things first, always keep things simple.\r\n\r\n## [开发历史 Changelog](https://github.com/iissnan/hexo-theme-next/wiki/Changelog)\r\n\r\n\r\n\r\n[browser-image]: https://img.shields.io/badge/browser-%20chrome%20%7C%20firefox%20%7C%20opera%20%7C%20safari%20%7C%20ie%20%3E%3D%209-lightgrey.svg\r\n[browser-url]: https://www.browserstack.com\r\n\r\n[gitter-image]: https://badges.gitter.im/Join%20Chat.svg\r\n[gitter-url]: https://gitter.im/iissnan/hexo-theme-next?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge\r\n\r\n[travis-image]: https://travis-ci.org/iissnan/hexo-theme-next.svg?branch=master\r\n[travis-url]: https://travis-ci.org/iissnan/hexo-theme-next?branch=master \"Travis CI\"\r\n\r\n[hexo-image]: https://img.shields.io/badge/hexo-%3E%3D%203.0-blue.svg\r\n[hexo-url]: http://hexo.io\r\n\r\n[mnt-image]: https://img.shields.io/maintenance/yes/2017.svg\r\n[rel-image]: https://img.shields.io/github/release/iissnan/hexo-theme-next.svg\r\n\u003c!--[lic-image]: https://img.shields.io/npm/l/hexo-theme-next.svg--\u003e\r\n[lic-image]: https://img.shields.io/dub/l/vibe-d.svg\r\n\r\n[git-image]: https://img.shields.io/badge/install%20with%20-git-blue.svg\r\n[curl-tar-image]: https://img.shields.io/badge/install%20with%20-curl%20%7C%20tar-blue.svg\r\n[curl-tar-wget-image]: https://img.shields.io/badge/install%20with%20-curl%20%7C%20tar%20%7C%20wget-blue.svg\r\n[git-url]: http://lmgtfy.com/?q=linux+git+install\r\n[curl-tar-url]: http://lmgtfy.com/?q=linux+curl+tar+install\r\n[curl-tar-wget-url]: http://lmgtfy.com/?q=linux+curl+tar+wget+install\r\n\r\n[download-latest-url]: https://github.com/iissnan/hexo-theme-next/archive/master.zip\r\n[releases-latest-url]: https://github.com/iissnan/hexo-theme-next/releases/latest\r\n[releases-url]: https://github.com/iissnan/hexo-theme-next/releases\r\n[tags-url]: https://github.com/iissnan/hexo-theme-next/tags\r\n[commits-url]: https://github.com/iissnan/hexo-theme-next/commits/master\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindawei%2Fnext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindawei%2Fnext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindawei%2Fnext/lists"}