mirror of
https://github.com/cupcakearmy/liquet.git
synced 2024-12-22 08:06:24 +00:00
swup ignore anchor links
This commit is contained in:
parent
80f048de3a
commit
5d708919b6
@ -2,7 +2,7 @@
|
||||
Theme Name: Liquet
|
||||
Author: Niccolo Borgioli
|
||||
Description: Minimalistic clean theme
|
||||
Version: 0.11
|
||||
Version: 0.12
|
||||
License: MIT
|
||||
Tags: minimal, simple, typography, clean
|
||||
Author URI: https://nicco.io
|
||||
|
@ -5,7 +5,7 @@ import swup from './swup'
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
lights()
|
||||
lazy()
|
||||
swup(()=> {
|
||||
swup(() => {
|
||||
lazy()
|
||||
})
|
||||
})
|
@ -1,8 +1,9 @@
|
||||
import Swup from 'swup'
|
||||
import SwupPreloadPlugin from '@swup/preload-plugin';
|
||||
import SwupPreloadPlugin from '@swup/preload-plugin'
|
||||
|
||||
export default (fn) => {
|
||||
const swup = new Swup({
|
||||
linkSelector: `a[href^="${window.location.origin}"]:not([data-no-swup]), a[href^="/"]:not([data-no-swup])`,
|
||||
plugins: [new SwupPreloadPlugin()],
|
||||
containers: ['#app']
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user