Skip to content

Commit 2bceb35

Browse files
committed
🐛 Fix comments not coming out after routing
1 parent a4d4f91 commit 2bceb35

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.astro/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"devToolbar": {
33
"enabled": false
4+
},
5+
"_variables": {
6+
"lastUpdateCheck": 1715053823392
47
}
58
}

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
},
2424
"dependencies": {
2525
"@pagefind/default-ui": "^1.1.0",
26-
"astro": "^4.6.1",
27-
"dayjs": "^1.11.10",
26+
"astro": "^4.7.1",
27+
"dayjs": "^1.11.11",
2828
"lozad": "^1.16.0",
2929
"motion": "^10.17.0",
3030
"pagefind": "^1.1.0"
3131
},
3232
"devDependencies": {
3333
"@astrojs/rss": "^4.0.5",
3434
"@astrojs/tailwind": "^5.1.0",
35-
"@tailwindcss/typography": "^0.5.12",
35+
"@tailwindcss/typography": "^0.5.13",
3636
"@types/lozad": "^1.16.4",
3737
"node-html-parser": "^6.1.13",
3838
"prettier": "^3.2.5",

src/layouts/post.astro

+3-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ if (postIndex < allPosts.length) {
151151
.logo:active {
152152
text-decoration: none;
153153
border-block-end: none;
154-
padding-block-end: none;
154+
padding-block-end: unset;
155155
}
156156

157157
#grid-main {
@@ -175,7 +175,7 @@ if (postIndex < allPosts.length) {
175175
}
176176
.heti .pay-button:hover {
177177
border-block-end: none;
178-
padding-block-end: 0px;
178+
padding-block-end: 0;
179179
}
180180
</style>
181181
<ViewTransitions />
@@ -236,6 +236,7 @@ if (postIndex < allPosts.length) {
236236
</div>
237237
</div>
238238
<script
239+
data-astro-rerun
239240
src="https://giscus.app/client.js"
240241
data-repo={SITE.repo}
241242
data-repo-id="R_kgDOG4TsQA"

src/pages/index.astro

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import { ViewTransitions } from "astro:transitions";
23
import HeadCommon from '../components/HeadCommon.astro';
34
import HeadSEO from '../components/HeadSEO.astro';
45
import Card from '../components/Card.astro';
@@ -11,11 +12,12 @@ const posts = await Astro.glob('./posts/*.md');
1112
const allPosts = sortPosts(posts);
1213
---
1314

14-
<html lang="ch">
15+
<html lang="ch" transition:animate="none">
1516
<head>
1617
<HeadCommon />
1718
<HeadSEO pageURL={SITE.homePage} content={{}} />
1819
<title>{SITE.title}</title>
20+
<ViewTransitions />
1921
</head>
2022

2123
<body>

0 commit comments

Comments
 (0)