Conversation
* Remove per_page option * Add home and archive option
|
I'm a newbee so I comitted codes many times on a same feature, but I think it's enough now. Most useful functions of quicklink has been implemented. We can control any page or post to load quicklink or not and custom ignore patterns, timeout, privoity. It's done, thank you all. |
|
Are custom pages included? (e.g. tags, categories) |
|
@stevenjoezhang tags and categories or other pages included, need |
ivan-nginx
left a comment
There was a problem hiding this comment.
Need to add docs on NexT site with new settings.
I'm waiting for some suggestions 🍵 |
ivan-nginx
left a comment
There was a problem hiding this comment.
What suggestions? It seems all fine.
|
@ivan-nginx Some pages with deeper level URLs won't be controlled, they never load quicklink, maybe it's not important? |
|
Oh, it's bad. Why they want be controlled? /categories/xxx/ or same with tags – i think not actually important. |
|
Any page or post has index.md, they can be controlled. |
|
So, if I want to enable qicklink for all pages/posts without front-matter editing for pages, will it work? |
|
@ivan-nginx It won't, in previous version we can globally load quicklink but couldn't control home and archive page fully, so I commit this PR. I think editing scaffolds/page.md or post.md is good. ---
title: {{ title }}
date: {{ date }}
comments: false
quicklink: true
--- |
|
Maybe need to add option for global usage, like in MathJax? Why you remove |
|
@ivan-nginx At first I followed the code of mathjax and pdf.js, they all have the By now we have these options, they are "descending": quicklink:
# which page or post load quicklink
enable: true # On-off
home: true # load in home or not
archive: true # load in archive or not
# load quicklink
delay: true # page loaded or not -> initialize
timeout: 3000 # timeout -> execute prefetching
priority: true # fetch -> XHR
ignores: # custom ignore patterns # current page's URL and URLs include '#' have been ignored by default. |
* Remove per_page option (theme-next#637 ) * Add home and archive option

PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
#637 introduced
per_page: trueoption to load quicklink on demand, but home page and archive page can't be fully controlled.What is the new behavior?
quicklink: truein front matter for those pages or posts you want.home:andarchive:option.How to use?
In NexT
_config.yml:Does this PR introduce a breaking change?