aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/plugins/og-image.ts
diff options
context:
space:
mode:
authorYasutake Yohei <yohei@yasutakeyohei.com>2026-07-01 18:36:44 +0900
committerYasutake Yohei <yohei@yasutakeyohei.com>2026-07-01 18:36:44 +0900
commit2d14a3fe38164cb1066b50f12b78dbcb97279902 (patch)
tree1008d37f545549a4eefd9ad5d2d7056e030b831a /src/plugins/og-image.ts
parent6ae791ee8ee72bee88ec852e237a70fefbecd2d0 (diff)
og-image.ts: 目次非表示のCSSをrevert
Diffstat (limited to 'src/plugins/og-image.ts')
-rw-r--r--src/plugins/og-image.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/plugins/og-image.ts b/src/plugins/og-image.ts
index d85f87b..358d36f 100644
--- a/src/plugins/og-image.ts
+++ b/src/plugins/og-image.ts
@@ -32,14 +32,6 @@ export default function ogImageIntegration(): AstroIntegration {
// Fix breadcrumb: replace directory slug with Japanese label
html = html.replace(/>about-dyslexia</g, `>ディスレクシアについて<`);
- // 一般質問ページ: 目次サイドバーを非表示
- if (page.pathname.includes("ippan-situmon")) {
- html = html.replace(
- "</head>",
- "<style>.right-sidebar-container{display:none!important}.main-pane{width:100%!important}</style></head>",
- );
- }
-
fs.writeFileSync(htmlPath, html, "utf-8");
}
},