Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the new behavior?
Bookmark is a plugin that allow the users save their reading position. (using
window.localStorage
)The users could just click the bookmark icon (like 🔖) in left-top of the page to save the position.
And when they visit your blog in the next time, they can continue the last reading position by clicking the bookmark icon from the home page.
Screens with this changes:
On the left-top of the page: → mouse over →
When you click it:
In the post page: it will save the current scroll position of the current page. (If the
bookmark.save
have been set to'auto'
, it is no need to manual click it.)In the other page: it will take you to the last page you have read, and scroll to the last reading position.
The icon will not appear in the mobile layout, but the function is well working: if you enter a page, the reading position will be automatically loaded.
Link to demo site with this changes: https://tsanie.us
How to use?
In NexT
_config.yml
:Does this PR introduce a breaking change?