<!-- more --> tag?More tag usually used when we need excerpt post content in homepage. And when we press «Read More» button, in browser bar will added #more link to current URL. And, yes, it is SEO-sensitivity.
*.md file we write:---
permalink: post-more-link
title: Post More Link Test
date: {{ date }}
tags: [Post, More, test]
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<!--more-->
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
#more suffix at the end:
<!-- more --> section and we must now stay on http://localhost:777/post-more-link/#more URL:
For now #more link can be translated in languages here:
So, if we will choose zh-HK language:
In our browser bar permalink will http://localhost:777/post-more-link/#更多:

Plus it create additional bug because can't decode this URL correctly:

I think this bug can be fixed ASAP, but there are another additional suggestions about #more link.
For now i see similar ways to refactor this link:
#more in language files and just fix bug for correct URL decoding.#more from language files to NexT config and set as:yml
post_meta:
more:
*/#more) and if anyone want, he can define his own #more link translate (like custom menu/submenu items):yml
post_meta:
more: 更多
Actually, this feature was added in this pull (PART 3), but before we have no custom languages support, i think it's not comfortable for most users.
http://www.easypolls.net/poll.html?p=5ace0ed0e4b0f7307b1720cd
P.S. If anyone have no access to easypolls.net service, just:
And i voted for second, so, i need to dislike myself, lol :smiley:
Force #more instead #{{ __('post.more') }} regardless of languages in post link?
Force #more instead #{{ __('post.more') }} regardless of languages in post link?
I see that variant too, as 3rd variant: roll back just for #more without any translate.
And actually, i find this file and as we can see, with translated #more link option scroll_to_more: true will not work, will not scroll to <a id="more"></a> id in post.
So, here is that bug: if option scroll_to_more enabled, jquery can't find targeted ID and return error.
But this bug can be avoided, of course, by adding custom excerpt.js or something like this. But question is: is it needed and important? Just for one #more functions and one scroll_to_more: true option which can be disabled, we have this bug and some troubles with default translate files.
I just suggest to move this translate to NexT config and set default as #more.
Or force set #more to default, by removing lagnuage translating.
I suggest that force to #more and ignore languages, anyway, using other languages instead of English in URLs is not smart, I think. Usually people who are not programmers set their SSID or hostname to Chinese and cause a lot of troubles, but most Hexo users are programmers, I think, and they will agree
using English.
Merged #more as default for now. The post.more in lang yml file is kept at present.
This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.
Most helpful comment
I suggest that force to
#moreand ignore languages, anyway, using other languages instead of English in URLs is not smart, I think. Usually people who are not programmers set their SSID or hostname to Chinese and cause a lot of troubles, but most Hexo users are programmers, I think, and they will agreeusing English.