Skip to content

Commit 4e84aa3

Browse files
authored
rm
1 parent 37d4d96 commit 4e84aa3

File tree

5 files changed

+4
-369
lines changed

5 files changed

+4
-369
lines changed

src/components/widget/Profile.astro

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@ import { Icon } from "astro-icon/components";
33
import { profileConfig } from "../../config";
44
import { url } from "../../utils/url-utils";
55
import ImageWrapper from "../misc/ImageWrapper.astro";
6-
7-
import { umamiConfig } from "../../config";
8-
9-
// 解析 umami
10-
const umamiEnabled = umamiConfig.enabled || false;
11-
const umamiWebsiteId =
12-
umamiConfig.scripts.match(/data-website-id="([^"]+)"/)?.[1] || "";
13-
const umamiApiKey = umamiConfig.apiKey || "";
14-
const umamiBaseUrl = umamiConfig.baseUrl || "";
156
---
167

178
<div class="card-base p-3">

src/layouts/Layout.astro

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ interface Props {
2424
title?: string;
2525
description?: string;
2626
lang?: string;
27-
setOGTypeArticle?: boolean;
2827
postSlug?: string;
2928
}
3029
31-
let { title, description, lang, setOGTypeArticle, postSlug } = Astro.props;
30+
let { title, description, lang, postSlug } = Astro.props;
3231
3332
// apply a class to the body element to decide the height of the banner, only used for initial page load
3433
// Swup can update the body for each page visit, but it's after the page transition, causing a delay for banner height change
@@ -93,13 +92,6 @@ const siteLang = lang.replace("_", "-");
9392
<meta property="og:url" content={Astro.url}>
9493
<meta property="og:title" content={pageTitle}>
9594
<meta property="og:description" content={description || pageTitle}>
96-
{
97-
setOGTypeArticle ? (
98-
<meta property="og:type" content="article" />
99-
) : (
100-
<meta property="og:type" content="website" />
101-
)
102-
}
10395

10496
<meta name="twitter:card" content="summary_large_image">
10597
<meta property="twitter:url" content={Astro.url}>

src/layouts/MainGridLayout.astro

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const {
1717
title,
1818
description,
1919
lang,
20-
setOGTypeArticle,
2120
postSlug,
2221
headings = [],
2322
} = Astro.props;
@@ -155,7 +154,6 @@ const mainContentClass = `
155154
title={title}
156155
description={description}
157156
lang={lang}
158-
setOGTypeArticle={setOGTypeArticle}
159157
postSlug={postSlug}
160158
>
161159

@@ -179,8 +177,7 @@ const mainContentClass = `
179177

180178
<!-- Main content -->
181179
<div
182-
class={`absolute w-full z-30 pointer-events-none ${mobileNonHomeBannerClass ? "mobile-main-no-banner" : ""} ${siteConfig.wallpaper.mode !== "banner" ? "no-banner-layout" : ""} ${transparentClass}`}
183-
style={`top: ${finalMainPanelTop}`}
180+
class={`absolute w-full z-30 pointer-events-none "no-banner-layout"`}
184181
>
185182
<!-- The pointer-events-none here prevent blocking the click event of the TOC -->
186183
<div
@@ -198,7 +195,7 @@ const mainContentClass = `
198195
hasLeftSidebar && (
199196
<SideBar
200197
side="left"
201-
class={`${leftSidebarClass} ${transparentClass}`}
198+
class={`${leftSidebarClass} `}
202199
headings={headings}
203200
/>
204201
)
@@ -210,7 +207,7 @@ const mainContentClass = `
210207
hasRightSidebar && (
211208
<SideBar
212209
side="right"
213-
class={`${rightSidebarClass} ${transparentClass}`}
210+
class={`rightSidebarClass`}
214211
headings={headings}
215212
/>
216213
)
@@ -257,10 +254,6 @@ const mainContentClass = `
257254
hasRightSidebar && !hasLeftSidebar
258255
? "-left-[var(--toc-width)]"
259256
: "-right-[var(--toc-width)]",
260-
{
261-
"toc-hide":
262-
siteConfig.wallpaper.mode === "banner",
263-
},
264257
]}
265258
>
266259
<div

0 commit comments

Comments
 (0)