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

Add beian option at footer for Chinese website owner #438

Merged
merged 6 commits into from
Oct 25, 2018

Conversation

sli1989
Copy link
Collaborator

@sli1989 sli1989 commented Oct 10, 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?

Issue Number(s): N/A

What is the new behavior?

ADD: beian option in _config.yml - theme - footer.

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

How to use?

In NexT _config.yml:

...

Does this PR introduce a breaking change?

  • Yes.
  • No.

@@ -1,6 +1,9 @@
<div class="copyright">{#
#}{% set current = date(Date.now(), "YYYY") %}{#
#}&copy; {% if theme.footer.since and theme.footer.since != current %}{{ theme.footer.since }} – {% endif %}{#
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is not &mdash;. Here is n-dash (this: –, not that: —)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, &mdash will be displaced.

Copy link

@ifmos ifmos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems ok

@sli1989 sli1989 added this to the v6.5.0 milestone Oct 23, 2018
@sli1989 sli1989 merged commit ac19ae3 into theme-next:master Oct 25, 2018
@@ -1,6 +1,9 @@
<div class="copyright">{#
#}{% set current = date(Date.now(), "YYYY") %}{#
#}&copy; {% if theme.footer.since and theme.footer.since != current %}{{ theme.footer.since }} – {% endif %}{#
#}{% if theme.footer.beian.enable %}{#
#}<a target="_blank" rel="external nofollow" href="http://www.miitbeian.gov.cn/"> {{theme.footer.beian.icp}} </a>{#
Copy link

@MoshiCoCo MoshiCoCo Jan 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened the "beian" option today and found that the "beian" option and "since2015" are crowded on the same line. It is not very beautiful. If you display the "beian" message text on a separate line, it will be more beautiful.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can create your own pull request with this changes. Welcome!

Copy link

@MoshiCoCo MoshiCoCo Jan 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can create your own pull request with this changes. Welcomeo'k!

ok,thanks reply。

@sli1989 sli1989 deleted the beian-dev branch March 1, 2019 09:19
@stevenjoezhang stevenjoezhang changed the title add beian option at footer for Chinese website owner Add beian option at footer for Chinese website owner Sep 15, 2019
tongluyang pushed a commit to tongluyang/hexo-theme-next that referenced this pull request Nov 19, 2019
* finish beian featrue

* update style

* replace mdash
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.

5 participants