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