v3: fix to site name substitution
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 40s
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 40s
This commit is contained in:
@@ -59,7 +59,10 @@ async function loadIndexHtml(): Promise<string | null> {
|
||||
const path of [`${Deno.cwd()}/dist/index.html`, `${Deno.cwd()}/index.html`]
|
||||
) {
|
||||
try {
|
||||
cachedHtml = await Deno.readTextFile(path);
|
||||
cachedHtml = (await Deno.readTextFile(path)).replaceAll(
|
||||
"__SITE_NAME__",
|
||||
OG_SITE_NAME,
|
||||
);
|
||||
return cachedHtml;
|
||||
} catch {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user