themekit-js 1.1.20 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,10 +31,10 @@ const styles=computed(()=>{
|
|
|
31
31
|
|
|
32
32
|
let _styles:string=""
|
|
33
33
|
if(frontmatter.value["header-background"]!=null){
|
|
34
|
-
_styles+="background:"+frontmatter.value["header-background"]
|
|
34
|
+
_styles+="background:"+frontmatter.value["header-background"]
|
|
35
35
|
}
|
|
36
36
|
if(frontmatter.value["header-color"]!=null){
|
|
37
|
-
_styles+="color:"+frontmatter.value["header-color"]
|
|
37
|
+
_styles+="color:"+frontmatter.value["header-color"]
|
|
38
38
|
}
|
|
39
39
|
return _styles
|
|
40
40
|
|
|
@@ -95,6 +95,7 @@ watchPostEffect(() => {
|
|
|
95
95
|
transition: background-color 0.5s;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
.dark .VPNavBar{ background-color: var(--vp-c-bg) !important;}
|
|
98
99
|
.VPNavBar:not(.home) {
|
|
99
100
|
background-color: var(--vp-nav-bg-color);
|
|
100
101
|
}
|
package/dist/node/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-
|
|
1
|
+
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-B2ZqpcxS.js';
|
|
2
2
|
import { createLogger } from 'vite';
|
|
3
3
|
import 'path';
|
|
4
4
|
import 'shiki';
|
package/dist/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalizePath } from 'vite';
|
|
2
2
|
export { loadEnv } from 'vite';
|
|
3
|
-
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-
|
|
4
|
-
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-
|
|
3
|
+
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-B2ZqpcxS.js';
|
|
4
|
+
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-B2ZqpcxS.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|
|
@@ -38250,6 +38250,22 @@ async function createMarkdownToVueRenderFn(srcDir, options = {}, pages, isBuild
|
|
|
38250
38250
|
);
|
|
38251
38251
|
let includes = [];
|
|
38252
38252
|
src = processIncludes(srcDir, src, fileOrig, includes);
|
|
38253
|
+
function param(regex2, src2) {
|
|
38254
|
+
let val;
|
|
38255
|
+
let val2 = null;
|
|
38256
|
+
while (val = regex2.exec(src2)) {
|
|
38257
|
+
val2 = val[0].substring(val[0].indexOf(":") + 1).trim();
|
|
38258
|
+
}
|
|
38259
|
+
return val2;
|
|
38260
|
+
}
|
|
38261
|
+
let layoutVal = param(/(?<=<!--\$layout).*?(?=-->)/g, src);
|
|
38262
|
+
if (layoutVal != null && layoutVal == "binding") {
|
|
38263
|
+
const binding = param(/(?<=<!--\$binding).*?(?=-->)/g, src);
|
|
38264
|
+
const bindPath = path$q.join(path$q.dirname(file), binding == null ? "" : binding);
|
|
38265
|
+
src = fs$a.readFileSync(bindPath).toString();
|
|
38266
|
+
layoutVal = param(/(?<=<!--\$layout).*?(?=-->)/g, src);
|
|
38267
|
+
}
|
|
38268
|
+
console.log("Layout:" + layoutVal);
|
|
38253
38269
|
const env = {
|
|
38254
38270
|
path: file,
|
|
38255
38271
|
relativePath,
|
|
@@ -38260,14 +38276,6 @@ async function createMarkdownToVueRenderFn(srcDir, options = {}, pages, isBuild
|
|
|
38260
38276
|
const blocksRegex = /<!--#([\s\S]*?)#-->/g;
|
|
38261
38277
|
let blockRaws = [];
|
|
38262
38278
|
let blockRaw;
|
|
38263
|
-
const regexLayout = /(?<=<!--\$layout).*?(?=-->)/g;
|
|
38264
|
-
let layout;
|
|
38265
|
-
let layoutVal = "doc";
|
|
38266
|
-
while (layout = regexLayout.exec(src)) {
|
|
38267
|
-
const attrStart = layout[0].indexOf(":");
|
|
38268
|
-
layoutVal = layout[0].substring(attrStart + 1).trim();
|
|
38269
|
-
}
|
|
38270
|
-
console.log("Layout:" + layoutVal);
|
|
38271
38279
|
let blocks = [];
|
|
38272
38280
|
if (layoutVal == "block" || layoutVal == "home") {
|
|
38273
38281
|
while ((blockRaw = blocksRegex.exec(src)) !== null) {
|
|
@@ -46725,7 +46733,7 @@ function escapeHtml(string) {
|
|
|
46725
46733
|
|
|
46726
46734
|
var escape$1 = /*@__PURE__*/getDefaultExportFromCjs(escapeHtml_1);
|
|
46727
46735
|
|
|
46728
|
-
var version = "1.1.
|
|
46736
|
+
var version = "1.1.22";
|
|
46729
46737
|
|
|
46730
46738
|
async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
|
|
46731
46739
|
const routePath = `/${page.replace(/\.md$/, "")}`;
|