Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options to better control footer. #1886

Merged
merged 4 commits into from
Sep 28, 2017
Merged

Options to better control footer. #1886

merged 4 commits into from
Sep 28, 2017

Conversation

Haocen
Copy link
Contributor

@Haocen Haocen commented Sep 17, 2017

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?

Issue Number(s): N/A

What is the new behavior?

Description about this pull, in several words...

  • Screens with this changes: N/A
  • Link to demo site with this changes: N/A

How to use?

In NexT _config.yml:

Old footer configuration:

-# Specify the date when the site was setup
-#since: 2015

-# icon between year and author @Footer
-authoricon: heart

-# Footer `powered-by` and `theme-info` copyright
-copyright: true

New footer configuration:

footer:
  # Specify the date when the site was setup.
  # If not defined, current year will be used.
  #since: 2015

  # Icon between year and copyright info.
  icon: user

  # If not defined, will be used `author` from Hexo main config.
  copyright:
  # -------------------------------------------------------------
  # Hexo link (Powered by Hexo).
  powered: true

  theme:
    # Theme & scheme info link (Theme - NexT.scheme).
    enable: true
    # Version info of NexT after scheme info (vX.X.X).
    version: true
  # -------------------------------------------------------------
  # Any custom text can be defined here.
  #custom_text: Hosted by <a target="_blank" href="https://pages.github.com">GitHub Pages</a>

Does this PR introduce a breaking change?

  • Yes.
  • No.

Signed-off-by: jokiestrunk <haocen.xu@gmail.com>
@Haocen
Copy link
Contributor Author

Haocen commented Sep 17, 2017

#1873

Haocen and others added 3 commits September 18, 2017 13:25
Signed-off-by: jokiestrunk <haocen.xu@gmail.com>
1. Fix by comments some blocks.
2. Target blank in external links.
3. Separate `powered`, `theme` and `custom` options & refactor some formatting.
1. Separate `powered`, `theme` and `custom` options.
2. Refactor some options and comments & add template to `custom_text`.
@ivan-nginx
Copy link
Collaborator

ivan-nginx commented Sep 28, 2017

Tested. Improved. Merged.
@Haocen good job, thank u!

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