Skip to content

v6.6.0

Compare
Choose a tag to compare
@liolok liolok released this 01 Dec 10:01
· 707 commits to master since this release

Breaking Changes

Refactored Creative Commons copyright (#463)

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.
-# Usage: {% exturl text url "title" %}
-# Alias: {% extlink text url "title" %}
-exturl: false

New configuration:

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

Reward be more intelligent, related issue #280 (#465)

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