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

Set inject default extname from file's extname #1281

Merged
merged 1 commit into from
Nov 22, 2019
Merged

Set inject default extname from file's extname #1281

merged 1 commit into from
Nov 22, 2019

Conversation

jiangtj
Copy link
Member

@jiangtj jiangtj commented Nov 21, 2019

PR Checklist

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

PR Type

  • 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?

If there is no extension, will add .swig.

What is the new behavior?

If there is no extension, will add file's extname or .swig.

e.g. use md extname https://gitlab.com/JiangTJ/next-test/blob/master/scripts/fix-scheme.js#L15-17
image
image

Does this PR introduce a breaking change?

  • Yes.
  • No.

@ivan-nginx
Copy link
Member

Codacy Here is an overview of what got changed by this pull request:

Complexity decreasing per file
==============================
+ scripts/events/lib/injects.js  -1
         

See the complete overview on Codacy

@jiangtj jiangtj added this to the v7.6.0 milestone Nov 21, 2019
@jiangtj jiangtj merged commit a11a729 into master Nov 22, 2019
@jiangtj jiangtj deleted the inject branch November 22, 2019 00:57
voidking pushed a commit to voidking/hexo-theme-next-2021 that referenced this pull request Oct 28, 2020
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.

4 participants