-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4b967e
commit 664377b
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -507,6 +507,11 @@ han: false | |
# For more information: https://github.com/vinta/pangu.js | ||
pangu: false | ||
|
||
# quicklink Support | ||
# Dependencies: https://cdn.jsdelivr.net/npm/quicklink/dist/ | ||
# Visit https://github.com/GoogleChromeLabs/quicklink for details | ||
quicklink: false | ||
|
||
# Swiftype Search API Key | ||
#swiftype_key: | ||
|
||
|
@@ -1012,6 +1017,12 @@ vendors: | |
# pangu: //cdnjs.cloudflare.com/ajax/libs/pangu/3.3.0/pangu.min.js | ||
pangu: | ||
|
||
# Internal version: 1.0.0 | ||
# See: https://github.com/GoogleChromeLabs/quicklink | ||
# Example: | ||
# quicklink: //cdn.jsdelivr.net/npm/[email protected]/dist/quicklink.umd.js | ||
quicklink: | ||
|
||
# Internal version: 1.0.0 | ||
# See: https://github.com/revir/need-more-share2 | ||
# Example: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% if theme.quicklink %} | ||
{% set quicklink_uri = url_for(theme.vendors._internal + '/quicklink/dist/quicklink.umd.js') %} | ||
{% if theme.vendors.quicklink %} | ||
{% set quicklink_uri = theme.vendors.quicklink %} | ||
{% endif %} | ||
<script src="{{ quicklink_uri }}"></script> | ||
<script> | ||
window.addEventListener('load', () => { | ||
quicklink({ | ||
priority: true, | ||
ignores: [ | ||
uri => uri.includes('#') | ||
] | ||
}); | ||
}); | ||
</script> | ||
{% endif %} |