Skip to content

Reward be more intelligent, related issue #280#465

Merged
ivan-nginx merged 2 commits intotheme-next:masterfrom
jiangtj:reward
Nov 7, 2018
Merged

Reward be more intelligent, related issue #280#465
ivan-nginx merged 2 commits intotheme-next:masterfrom
jiangtj:reward

Conversation

@jiangtj
Copy link
Member

@jiangtj jiangtj commented Nov 5, 2018

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines.
  • Tests for the changes have been added (for bug fixes / features).
    • Muse | Mist have been tested.
    • Pisces | Gemini have been tested.
  • Docs have been added / updated (for bug fixes / features).

PR Type

What kind of change does this PR introduce?

  • Bugfix.
  • Feature.
  • Code style update (formatting, local variables).
  • Refactoring (no functional changes, no api changes).
  • Build related changes.
  • CI related changes.
  • Documentation content changes.
  • Other... Please describe:

What is the current behavior?

The reward setting is only a switch
Issue Number(s): #280

What is the new behavior?

The reward setting is a switch that reward is or isn't displayed by default.
And you can show or hide one article specially through add page variable reward: true/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
---

Does this PR introduce a breaking change?

  • Yes.
  • No.

Breaking change

image

@ivan-nginx ivan-nginx added this to the v6.6.0 milestone Nov 7, 2018
@ivan-nginx ivan-nginx merged commit be2ce63 into theme-next:master Nov 7, 2018
@jiangtj jiangtj deleted the reward branch December 10, 2018 16:05
@stevenjoezhang stevenjoezhang mentioned this pull request Mar 22, 2019
11 tasks
tongluyang pushed a commit to tongluyang/hexo-theme-next that referenced this pull request Nov 19, 2019
Reward be more intelligent, related issue theme-next#280
wens07 pushed a commit to wens07/hexo-theme-next that referenced this pull request May 8, 2023
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants