Skip to content

Commit

Permalink
🎉 Swup -> 2.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
EveSunMaple committed Aug 12, 2024
1 parent fc441d5 commit 550d718
Show file tree
Hide file tree
Showing 15 changed files with 18,099 additions and 7,974 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,3 +320,15 @@
### Fix

- 修复了部分手机导航栏无法跳转的问题

## [2.5.3] - 2024-8-12

### Features

- 添加了页面跳转的动画

### Fix

- 修复了不规范的导航栏文本
- 修复了在不同主题下跳转页面导致的闪烁问题
- 移除了 `astro:transition` 改成了 `swup` 修复了鼠标指针的闪烁问题
11 changes: 9 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ import tailwind from "@astrojs/tailwind";
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import playformCompress from "@playform/compress";
import vercel from '@astrojs/vercel/static';
import pagefind from "astro-pagefind";
import icon from "astro-icon";

import swup from '@swup/astro';
import SwupScrollPlugin from '@swup/scroll-plugin';
import SwupParallelPlugin from '@swup/parallel-plugin';


// https://astro.build/config
export default defineConfig({
site: 'https://frosti.saroprock.com',
Expand All @@ -17,7 +21,10 @@ export default defineConfig({
includePaths: ['./src/styles']
}
},
integrations: [mdx(), icon(), sitemap(), tailwind(), playformCompress(), pagefind()],
integrations: [mdx(), icon(), swup({
plugins: [new SwupScrollPlugin(), new SwupParallelPlugin()],
containers: ["#swup"]
}), sitemap(), tailwind(), playformCompress(), pagefind()],
markdown: {
shikiConfig: {
themes: {
Expand Down
Loading

0 comments on commit 550d718

Please sign in to comment.