2025-2-26-fixed
This commit is contained in:
17
themes/next/layout/_third-party/quicklink.swig
vendored
Normal file
17
themes/next/layout/_third-party/quicklink.swig
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{%- if page.quicklink.enable %}
|
||||
{%- set quicklink_uri = theme.vendors.quicklink or next_vendors('//cdn.jsdelivr.net/npm/quicklink@1/dist/quicklink.umd.js') %}
|
||||
<script src="{{ quicklink_uri }}"></script>
|
||||
<script>
|
||||
{%- if page.quicklink.delay %}
|
||||
window.addEventListener('load', () => {
|
||||
{%- endif %}
|
||||
quicklink({
|
||||
timeout : {{ page.quicklink.timeout }},
|
||||
priority: {{ page.quicklink.priority }},
|
||||
ignores : [uri => uri.includes('#'),uri => uri === '{{ url | replace('index.html', '') }}',{{ page.quicklink.ignores }}]
|
||||
});
|
||||
{%- if page.quicklink.delay %}
|
||||
});
|
||||
{%- endif %}
|
||||
</script>
|
||||
{%- endif %}
|
||||
Reference in New Issue
Block a user