15.8k sao GitHub và vẫn tăng — iissnan/hexo-theme-next là dự án JavaScript mà TopGit đang theo dõi trên nền tảng. Elegant theme for Hexo.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Clone command will give you the whole repository. And in any time you can switch to any tagged release.
Get tags list:
$ cd themes/next
$ git tag -l
…
v5.0.0
v5.0.1
v5.1.0
v5.1.1
v5.1.2
For example, you want to switch on v5.1.0 tagged release version. Input the following command:
$ git checkout tags/v5.1.0
Note: checking out 'tags/v5.1.0'.
…
HEAD now on 1f72f68... CSS: Remove global list-style setting of ul
And if you want to switch back on master branch, input this command:
$ git checkout master
3. Set theme in main hexo root config_config.yml file:
theme: next
Bugs
For those who also encounter Error: Cannot find module 'hexo-util' issue, please check your NPM version.
> 3: Still not work. Please remove node_modules directory and reinstall using npm install.
< 3: Please add hexo-util explicitly via npm install --save-dev hexo-util to you site package deps.
Update
$ cd themes/next
$ git pull
Bugs
Commit your changes or stash them before you can merge
You must Commit, Stash or Discard local changes. See here how to do it.
Theme configurations using Hexo data files (#328)
Currently, it is not smooth to update NexT theme from pulling or downloading new releases. It is quite often running into conflict status when updating NexT theme via git pull, or need to merge configurations manually when upgrading to new releases.
At present, NexT encourages users to store some options in site's _config.yml and other options in theme's _config.yml. This approach is applicable, but has some drawbacks:
Configurations are splited into two pieces
Users maybe confuse which place should be for options
In order to resolve this issue, NexT will take advantage of Hexo Data files. Because Data files is introduced in Hexo 3, so you need upgrade Hexo to 3.0 (or above) to use this feature.
If you prefer Hexo 2.x, you can still use the old approach for configurations. NexT is still compatible with Hexo 2.x.
Benefits
With this feature, now you can put all your configurations into one place (source/_data/next.yml), you don't need to touch next/_config.yml. If there are any new options in new releases, you just need to copy those options from next/_config.yml, paste into _data/next.yml and set their values to whatever you want.
How to use this feature
Please ensure you are using Hexo 3 (or above)
Create an file named next.yml in site's source/_data directory (create _data directory if it did not exist)
Copy NexT theme options both in site's _config.yml and theme's _config.yml into next.yml.
Use --config source/_data/next.yml parameter to start server, generate or deploy.
For example: hexo clean --config source/_data/next.yml && hexo g --config source/_data/next.yml.
Features
Multiple languages support, including:
:cn: Simplified Chinese & Traditional Chinese.
:us: English
:ru: Russian
:fr: French
:de: German
:jp: Japanese
:indonesia: Indonesian
:portugal: Portuguese (Brazil)
:kr: Korean
:it: Italian
:netherlands: Dutch
:vietnam: Vietnamese
Default language is English.
language: en
# language: zh-Hans
# language: zh-hk
# language: zh-tw
# language: ru
# language: fr-FR
# language: de
# language: ja
# language: id
# language: pt
# language: pt-BR
# language: ko
# language: it
# language: nl-NL
# language: vi
Set language field as following in site _config.yml to change to Chinese.
language: zh-Hans
Comment support.
NexT has native support for DuoShuo and Disqus comment systems.
Set rss field in theme's _config.yml, as the following value:
rss: false will totally disable feed link.
rss: use sites' feed link. This is the default option.
Follow the installation instruction in the plugin's README. After the configuration is done for this plugin, the feed link is ready too.
rss: http://your-feed-url set specific feed link.
Up to 5 code highlight themes built-in.
NexT uses Tomorrow Theme with 5 themes for you to choose from.
Next use normal by default. Have a preview about normal and night:
Head over to Tomorrow Theme for more details.
Configuration
NexT comes with few configurations.
# Menu configuration.
menu:
home: /
archives: /archives
# Favicon
favicon: /favicon.ico
# Avatar (put the image into next/source/images/)
# can be any image format supported by web browsers (JPEG,PNG,GIF,SVG,..)
avatar: /default_avatar.png
# Code highlight theme
# available: normal | night | night eighties | night blue | night bright
highlight_theme: normal
# Fancybox for image gallery
fancybox: true
# Specify the date when the site was setup
since: 2013
Browser support
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.
Contributing
Contribution is welcome, feel free to open an issue and fork. Waiting for your pull request.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/iissnan/hexo-theme-next là nguồn chính thức.
iissnan/hexo-theme-next có phải mã nguồn mở không?
Có — iissnan/hexo-theme-next phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/iissnan/hexo-theme-next.
iissnan/hexo-theme-next có trang demo không?
Dự án có trang chủ ở http://notes.iissnan.com. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
iissnan/hexo-theme-next dùng license gì?
iissnan/hexo-theme-next phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
iissnan/hexo-theme-next là gì?
iissnan/hexo-theme-next (iissnan/hexo-theme-next) là dự án JavaScript trên GitHub. Theo mô tả gốc: Elegant theme for Hexo.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về hexo-theme-next?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về hexo-theme-next.