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

WIP fix: use canonical url for pages #46

Closed
wants to merge 10 commits into from

Conversation

curbengh
Copy link
Contributor

@curbengh curbengh commented May 31, 2019

Remove index.html from url of pages. Fixes #13. Based on https://github.com/pyyzcwg2833/hexo-generator-sitemap/commit/a92dbbb83cc39ff60d43faa5cd688a56574a3889 (credit @pyyzcwg2833).

Added test for pages. Updated the updated attribute of hexo.init() in the test for more predictable result.

The affected code uses ES6 syntax. Refactor everything else to ES6 should be in a separate PR.

Feel free to refactor .concat() and array-object-array conversion to something better.

Pull request tasks

  • Add test cases for the changes.
  • Passed the CI test.
    • will not pass in Node 6 environment.

@coveralls
Copy link

coveralls commented May 31, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 4936a5a on weyusi:remove-index-html into 77bf38b on hexojs:master.

@curbengh
Copy link
Contributor Author

curbengh commented May 31, 2019

Object spread is ES2018, not supported in Node <=8.2.

Replace istanbul with nyc to support it. (Superseded by #51)

hexojs/hexo#3508

@curbengh curbengh force-pushed the remove-index-html branch 3 times, most recently from 4b95ed9 to 4936a5a Compare June 5, 2019 06:50
@curbengh curbengh changed the title fix: use canonical url for pages WIP fix: use canonical url for pages Jun 29, 2019
@curbengh
Copy link
Contributor Author

Superseded by #59

@curbengh curbengh closed this Jul 10, 2019
@curbengh curbengh deleted the remove-index-html branch July 10, 2019 11:36
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.

page 页面URL格式问题
3 participants