Skip to content

Commit c721da9

Browse files
author
y-yamasaki
committed
パス調整
1 parent 7c781cf commit c721da9

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

assets/js/layout.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ document.addEventListener("DOMContentLoaded", () => {
1111

1212
// header と footer をまとめて読み込む
1313
Promise.all([
14-
fetch("partials/header.html").then((r) => r.text()),
15-
fetch("partials/footer.html").then((r) => r.text()),
14+
fetch("/WebSite/partials/header.html").then((r) =>
15+
r.text(),
16+
),
17+
fetch("/WebSite/partials/footer.html").then((r) =>
18+
r.text(),
19+
),
1620
])
1721
.then(([headerHtml, footerHtml]) => {
1822
// body の先頭に header、末尾に footer を挿入

tools/build-blog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function createHtml({
4747
<meta property="og:title" content="${safeTitle} | PanKUN Blog" />
4848
<meta property="og:description" content="${safeDesc}" />
4949
<meta property="og:type" content="article" />
50-
<meta property="og:image" content="https://breadmotion.github.io/WebSite/assets/img/ogp.png" />
50+
<meta property="og:image" content="../assets/img/ogp.png" />
5151
5252
<link rel="stylesheet" href="../assets/css/base.css" />
5353
<link rel="stylesheet" href="../assets/css/layout.css" />

0 commit comments

Comments
 (0)