hexo-theme-next/docs/ru/README.md
2020-07-16 00:56:20 +08:00

7.4 KiB
Raw Blame History

Язык: 🇺🇸 🇨🇳 🇷🇺

NexT preview

NexT logo

NexT

«NexT» — элегантная высококачественная тема под Hexo. Сделана с нуля, с любовью.

NPM version Required Hexo version License Code Quality Build Status Build Status

Демо

💟 Muse | 🔯 Mist | Pisces | Gemini

Больше примеров «NexT» здесь.

Установка

Простейший вариант установки — склонировать весь репозиторий:

$ cd hexo
$ git clone https://github.com/next-theme/hexo-theme-next themes/next

Или предлагаю почитать детальные инструкции по установке, если вариант выше не устраивает.

Плагины

Plugins extend and expand the functionality of NexT. There are two types of plugins: core plugins and third-party plugins. The core plugins are required by the basic functions of NexT. Third-party plugins are loaded from jsDelivr CDN by default, and they provide a large number of optional features.

Configuring these plugins is very easy. Например, Вы хотите использовать pjax для своего сайта. Открываем конфиг NexT'а и находим:

# Easily enable fast Ajax navigation on your website.
# For more information: https://github.com/next-theme/pjax
pjax: true

Configure CDN

If you want to specify the CDN provider for any plugins, you need to set / update the CDN URL.

For example, if you want to set the CDN URL for mediumzoom, go to NexT config and see:

vendors:
  # ...
  # Some contents...
  # ...
  mediumzoom: # Set or update mediumzoom CDN URL.

Обновление

NexT выпускает новые версии каждый месяц. Можно обновить до последней мастер-ветки следующей командой:

$ cd themes/next
$ git pull

А если всплывают ошибки во время обновления (что-то наподобии «Commit your changes or stash them before you can merge»), рекомендуется ознакомиться с особенностью хранения Alternate Theme Config.
Как бы то ни было, можно обойти ошибки при обновлении если «Закомитить», «Стэшнуть» или «Откатить» локальные изменения. Смотрим здесь как это сделать.

Если нужно обновиться с версии v5.x / v7.x на последней версиями, читаем здесь.

Обратная связь

Contributing

We welcome you to join the development of NexT. Please see contributing document. 🤗

Also, we welcome Issue or PR to our official-plugins.

Содействие

Contributors

Благодарности

«NexT» send special thanks to these great services that sponsor our core infrastructure:

GitHub allows us to host the Git repository and run the test suite.

Netlify allows us to distribute the documentation.

Crowdin allows us to translate conveniently the documentation.

Thanks jsDelivr for providing public CDN service.