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

feat: 适配 NexT 8.4.0 #1

Merged
merged 1 commit into from
May 29, 2021
Merged

feat: 适配 NexT 8.4.0 #1

merged 1 commit into from
May 29, 2021

Conversation

PaperStrike
Copy link

@PaperStrike PaperStrike commented Apr 29, 2021

NexT 8.4.0 会有几个不打算向后兼容的 Breaking Change,见 next-theme/hexo-theme-next#241 (comment)

此 PR 在不考虑旧版本兼容性的情况下初步适配 8.4.0,但还未经测试。可以仅作为适配参考。

@PaperStrike PaperStrike marked this pull request as draft April 29, 2021 15:28
@PaperStrike PaperStrike marked this pull request as ready for review April 29, 2021 15:44
@PaperStrike
Copy link
Author

需要兼容旧版时可以类似这样:

{%- if next_data %}
  {# 此 PR 代码 #}
{%- else %}
  {# 旧代码 #}
{%- endif %}

@ljcbaby
Copy link

ljcbaby commented May 28, 2021

@imaegoo

@imaegoo imaegoo merged commit d4773eb into twikoojs:master May 29, 2021
@imaegoo
Copy link
Member

imaegoo commented May 29, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants