From b61bca4ea0acaedd37be6f899b626f5a593b2bab Mon Sep 17 00:00:00 2001 From: PyKen Date: Mon, 5 Sep 2022 20:20:41 +0900 Subject: [PATCH] Fix style reference for localized home page --- src/publishing/pagePublisher.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/publishing/pagePublisher.ts b/src/publishing/pagePublisher.ts index 21aefca3a..8a15cb6d8 100644 --- a/src/publishing/pagePublisher.ts +++ b/src/publishing/pagePublisher.ts @@ -97,9 +97,9 @@ export class PagePublisher implements IPublisher { template: template, styleReferences: [ `/styles/styles.css`, // global style reference - pagePermalink === "/" // local style reference - ? `/styles.css` // home page style reference - : `${pagePermalink}/styles.css` + page.permalink === "/" + ? `${pagePermalink}styles.css` // home page style reference + : `${pagePermalink}/styles.css` // local style reference ], author: siteAuthor, socialShareData: page.socialShareData,