diff options
| author | Yasutake Yohei <yohei@yasutakeyohei.com> | 2026-07-01 18:36:44 +0900 |
|---|---|---|
| committer | Yasutake Yohei <yohei@yasutakeyohei.com> | 2026-07-01 18:36:44 +0900 |
| commit | 2d14a3fe38164cb1066b50f12b78dbcb97279902 (patch) | |
| tree | 1008d37f545549a4eefd9ad5d2d7056e030b831a | |
| parent | 6ae791ee8ee72bee88ec852e237a70fefbecd2d0 (diff) | |
og-image.ts: 目次非表示のCSSをrevert
| -rw-r--r-- | src/plugins/og-image.ts | 8 |
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"); } }, |
