Чистый URL для cookie-policy: cookie-policy/ вместо cookie-policy.html
This commit is contained in:
1 parent
c4bfe5c9ee
commit
8ce691eee7
35 files changed
+1157
-5177
No files matched your search
@@ -103,6 +103,8 @@ function build() {
|
||||
const pageDirRel = path.dirname(rel);
|
||||
const depth = pageDirRel === "." ? 0 : pageDirRel.split(path.sep).length;
|
||||
const isCase = relNorm.startsWith("cases/");
|
||||
const isResume = relNorm === "resume.html";
|
||||
const isCookiePolicy = relNorm === "cookie-policy.html";
|
||||
|
||||
let outPath;
|
||||
let vars;
|
||||
@@ -114,6 +116,18 @@ function build() {
|
||||
assetPrefix: "../../",
|
||||
casesPrefix: "../",
|
||||
};
|
||||
} else if (isResume) {
|
||||
outPath = path.join(outDir, "resume", "index.html");
|
||||
vars = {
|
||||
assetPrefix: "../",
|
||||
casesPrefix: "",
|
||||
};
|
||||
} else if (isCookiePolicy) {
|
||||
outPath = path.join(outDir, "cookie-policy", "index.html");
|
||||
vars = {
|
||||
assetPrefix: "../",
|
||||
casesPrefix: "",
|
||||
};
|
||||
} else {
|
||||
outPath = path.join(outDir, rel);
|
||||
vars = {
|
||||
|
||||
@@ -4,7 +4,7 @@ import { dirname, resolve } from 'path';
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
const OUT = resolve(__dirname, '../public/assets/resume/Mamadaev_Nik__CV__Product_Designer_UX-UI.pdf');
|
||||
const PAGE = process.argv[2] || 'http://localhost:4175/resume-5.html';
|
||||
const PAGE = process.argv[2] || 'http://localhost:4175/resume/';
|
||||
const FONT = process.argv[3] || 'geologica';
|
||||
|
||||
const browser = await puppeteer.launch({ headless: true });
|
||||
|
||||
Reference in new issue
Block a user