themekit-js 1.1.31 → 1.1.32
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.
|
@@ -25,7 +25,12 @@ function hasCover(children:any){
|
|
|
25
25
|
|
|
26
26
|
if(match.length>2&&match[1]=="class"&&match[2]=="cover"){
|
|
27
27
|
styles.push({"display":"block"})
|
|
28
|
-
|
|
28
|
+
const src=child["src"]
|
|
29
|
+
if(src.substring(0,1)=="/"){
|
|
30
|
+
styles.push({"background-image":"url("+ base.value+src.substring(1,src.length) +")"})
|
|
31
|
+
}else{
|
|
32
|
+
styles.push({"background-image":"url("+ src +")"})
|
|
33
|
+
}
|
|
29
34
|
break
|
|
30
35
|
}
|
|
31
36
|
}
|
|
@@ -70,7 +70,14 @@ const styles= computed(() => {
|
|
|
70
70
|
styles.push({ 'background-color':props.block['background-color']})
|
|
71
71
|
}
|
|
72
72
|
if(props.block['background-image']){
|
|
73
|
-
|
|
73
|
+
|
|
74
|
+
const src=props.block['background-image']
|
|
75
|
+
if(src.substring(0,1)=="/"){
|
|
76
|
+
styles.push({"background-image":"url("+ base.value+src.substring(1,src.length) +")"})
|
|
77
|
+
}else{
|
|
78
|
+
styles.push({"background-image":"url("+ src +")"})
|
|
79
|
+
}
|
|
80
|
+
|
|
74
81
|
}
|
|
75
82
|
if(props.block['color']){
|
|
76
83
|
styles.push({ 'color': props.block['color']})
|
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-DnyzZFIh.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-DnyzZFIh.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-DnyzZFIh.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|
|
@@ -46733,7 +46733,7 @@ function escapeHtml(string) {
|
|
|
46733
46733
|
|
|
46734
46734
|
var escape$1 = /*@__PURE__*/getDefaultExportFromCjs(escapeHtml_1);
|
|
46735
46735
|
|
|
46736
|
-
var version = "1.1.
|
|
46736
|
+
var version = "1.1.32";
|
|
46737
46737
|
|
|
46738
46738
|
async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
|
|
46739
46739
|
const routePath = `/${page.replace(/\.md$/, "")}`;
|