NexT

Theme for Hexo

Optimizations

  • Added deployer details configuration (#588)
  • Reorganize #576, using macro (#582)
  • Using Template literals (Template strings) (#557)
  • Fix #271: Add comment_count option (#559)
  • Code style update (formatting) (#563)

Bug Fixes

  • Revert using template literals in client side scripts. (#590)
  • Make request time of leancloud saved and let concurrent requests pass (#519)
  • Edit Google Analytics reference file address (#580)
  • Fix #573: [Muse & Mist] Footer is not at the bottom of the page (#574)
  • Update Gitment URL to use jsDelivr CDN (#572)
  • Fix #569 (#570)
  • Improve styles of Gitalk & Gitment (#568)
  • Optimize the loading of comment systems (#566)
  • Optimize the style of busuanzi, tag cloud and read more button (#561)

For full changes, see the comparison between 6.7.0 and 7.0.0

Detailed changes for NexT v7.0.0

From this year we will start to development NexT v7. And NexT v6 will not be cutted-out for now. Instead of this, we will continue maintenance for version 6 with simultaneous development of version 7.

Versions Difference

What changes planned in that versions? Good question, here they are:

  • Development (v7) mean → all bugfixes, optimizations and features will be added in this version.
  • Maintenance (v6) mean → all bugfixes and optimizations (partially) only will be added in this version.

As we can see, v6 will be more stable version, unlike of v7. If someone want more stability with less features, recommended to use v6 without any fear about no maintenance for this version in the future.

Objectives of Version 7

There are several globally targets for NexT v7 changes planned:

  • Replace all Nested Strings by Template Literals. This bring to code more readable (example: #557)
  • Cut out all possible 3rd-party libraries for provide minimum weight and maximum generation speed
  • Targets, described in NexT v7.x Roadmap.

Branching Models

All last year there are no problem with branching model management. All was simple:

  1. We had master branch, which at the same time was development and production branch.
  2. Changes created in separate temporarily branches were merged into master branch via pull request's.
  3. Once per month we made tag releases from current master branch.

It was when NexT development came with single version. For now, we must support multiple versions: v6.x and v7.x, what bring some complicated as for maintainers and for users too.

Last several days I thinking a lot about this and it seems the right way was successfully founded. And before understand my decision, let's see on all articles I finded.

  1. A successful Git branching modelhttps://nvie.com/posts/a-successful-git-branching-model/
    image
  2. Cactus modelhttps://barro.github.io/2016/02/a-succesful-git-branching-model-considered-harmful/
    image
  3. OneFlow modelhttps://www.endoflineblog.com/oneflow-a-git-branching-model-and-workflow
    image
  4. A stable mainline branching modelhttp://www.bitsnbites.eu/a-stable-mainline-branching-model-for-git/
    image
    image

So, lets comment this models:

  1. A little bit complicated for development. master branch keep only releases versions, but we already have tags once per month. And I read some negative responses about this branching model.
  2. Only one thing let me get to doubt: rebased branches. Yes, on local branches anyone can do what he's want, but we talking about remote branches, how we will working with them. This model is good, but need some changes to use it.
  3. Again: rebase + merge --no--ff – only with a little difference with allow to minimize merged commits history. Anyway, history will not linear.
  4. So, this is similar to our model, with except – releases created not only under the tags, but under branches too. As I understand, branches serve for temporary maintenance multiple software versions. And this model exactly what we need! With some changes, of course...
Read more »

\(^_^)/ Happy New Year!

Breaking Changes

Rename theme.vendors.Han to theme.vendors.han (#512)

Old configuration:

vendors:
...
# Internal version: 3.3.0
# See: https://github.com/ethantw/Han
- Han:

New configuration:

vendors:
...
# Internal version: 3.3.0
# See: https://github.com/ethantw/Han
# Example:
# han: //cdn.jsdelivr.net/npm/han-css@3/dist/han.min.css
# han: //cdnjs.cloudflare.com/ajax/libs/Han/3.3.0/han.min.css
han:

Features

  • Fix #553 New Feature: mhchem support (#554)
  • Format code & update CDN URLs & fix #269 (copy_tex for KaTeX) (#543)
  • Add toc max_depth support (#528)
  • Reorganize #274 Custom logo for Gemini & Pisces (#520)
  • Added post_edit option on pages & Maked some refactoring. (#499)

Optimizations

  • Updated site link & small corrections. (#518)
  • Refactored post navigation styles. (#509)
  • Conditional import Han style. (#507)

Bug Fixes

  • Bug fix in scripts/tags/tabs.js (#558)
  • Fixed b2t to work on all schemes (#552)
  • Fix #48 Footer position (#550)
  • Fix #481 Google Calendar (#549)
  • Fix #508 Reward comment position bug (#546)
  • Fix #271 CDN URL for leancloud (#541)
  • Fix localsearch wrong article url (#540)
  • Fix #537 The algolia search pagination's opacity is 0 (#538)
  • Fix #181 and #333 Right margin bug in mobile style (#534)
  • Fix #531, format code in _config.yml (#532)
  • Fix for metadata generation at index (#529)
  • Fix inline code font-size mismatch within headers (#514)
  • Fix #364 Copy code on mobile platform (#489)
  • Fixed Disqus URL. Again. A little bit hard. (#506)
  • Fixed Disqus bug if in permalink exists symbol «'» . (#504)
  • Fixed W3 validator errors. (#501)
  • Added disable_baidu_transformation option. (#500)
  • Fixed sidebar under Pisces / Gemini schemes for IE 11. (#498)
  • Fix submenu when path name is same (#497)
  • Menu external url (#476)
  • Fix #495, #473 and #231 url_for() misuse (#496)
  • Improve highlighting for Lisps (#493)
  • Define "builtin-name" for Lisp languages (#492)

For full changes, see the comparison between 6.6.0 and 6.7.0

Detailed changes for NexT v6.7.0

Breaking Changes

Joined post_copyright and creative_commons options into one.

Old configuration:

-# Creative Commons 4.0 International License.
-# http://creativecommons.org/
-# Available: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
-#creative_commons: by-nc-sa
-#creative_commons:

-# Declare license on posts
-post_copyright:
- enable: false
- license: <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="external nofollow" target="_blank">CC BY-NC-SA 4.0</a>

New configuration:

# Creative Commons 4.0 International License.
# https://creativecommons.org/share-your-work/licensing-types-examples/
# Available: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
creative_commons:
license: by-nc-sa
sidebar: false
post: false

Global improvement for ExtURL (#463)

From now no need to use exturl tag – all external links will be automatically replaced in posts (and in templates) with spanned links if exturl option will be enabled.

Old configuration:

 social_icons:
enable: true
icons_only: false
transition: false
- # Dependencies: exturl: true in Tags Settings section below.
- # To encrypt links above use https://www.base64encode.org
- # Example encoded link: `GitHub: aHR0cHM6Ly9naXRodWIuY29tL3RoZW1lLW5leHQ= || github`
- exturl: false

-# External URL with BASE64 encrypt & decrypt.
-exturl: false

New configuration:

# Automatically add external URL with BASE64 encrypt & decrypt.
exturl: false

How to use?

In NexT _config.yml:

# Reward
# If true, reward would be displayed in every article by default.
# And you can show or hide one article specially through add page variable `reward: true/false`.
reward:
enable: false
#comment: Donate comment here
#wechatpay: /images/wechatpay.jpg
#alipay: /images/alipay.jpg
#bitcoin: /images/bitcoin.png

Or special config in .md:

---
title: title-name
date: 2018-11-05
...
reward: true/false
---

Features

  • Add gitalk comment system (#464)
  • Add PDFObject and PDF.js support (#466)

Optimizations

  • Format code in _config.yml (#469)
  • Format code & change default CDN for pdfobject (#470)
  • Add enable option for read_more_btn (#446)

Bug Fixes

  • Fix the error when the Chinese is included in the hash (#452)
  • Fix images in an anchor being wrapped as fancybox #399 and #394 (#468)
  • Fix mathjax overflow (#488)

For full changes, see the comparison between 6.5.0 and 6.6.0

Detailed changes for NexT v6.6.0

0%