themekit-js 1.1.39 → 1.1.41

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.
@@ -27,8 +27,8 @@ interface Props {
27
27
  const props = withDefaults(defineProps<Props>(), {
28
28
 
29
29
  })
30
-
31
- let HeroImg:any=null
30
+
31
+ let HeroImg:any={"src":""}
32
32
  const items=props.block.children
33
33
  for(let i=0;i<items.length;i++){
34
34
  if(items[i]["children"]!=null)
@@ -101,10 +101,16 @@ const styles= computed(() => {
101
101
  </h1>
102
102
  </template>
103
103
  <template v-if="item.block_type=='h2'">
104
- <p class="text">
104
+ <h2 class="text">
105
105
  <template v-for="(h2) in item.children" >
106
106
  {{h2.content}}
107
- </template></p>
107
+ </template></h2>
108
+ </template>
109
+ <template v-if="item.block_type=='h3'">
110
+ <h3 class="text">
111
+ <template v-for="(h3) in item.children" >
112
+ {{h3.content}}
113
+ </template></h3>
108
114
  </template>
109
115
  <template v-if="item.block_type=='p'">
110
116
  <p class="tagline">
@@ -118,7 +124,7 @@ const styles= computed(() => {
118
124
  :target="_blank"
119
125
  ></Button>
120
126
  </template>
121
- <template v-if="pItem.block_type=='text'">{{pItem.content}}</template>
127
+ <template v-if="pItem.block_type=='text'">{{pItem.content}}</template>
122
128
  <template v-if="pItem.block_type=='img'&&pItem.src!=HeroImg.src"><img :src="pItem.src"></template>
123
129
  </template>
124
130
  </p>
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-e4YIkJU_.js';
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-BpNkUWSF.js';
2
2
  import { createLogger } from 'vite';
3
3
  import 'path';
4
4
  import 'shiki';
@@ -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-e4YIkJU_.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-e4YIkJU_.js';
3
+ import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-BpNkUWSF.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-BpNkUWSF.js';
5
5
  import path from 'path';
6
6
  import 'crypto';
7
7
  import 'module';
@@ -46735,7 +46735,7 @@ function escapeHtml(string) {
46735
46735
 
46736
46736
  var escape$1 = /*@__PURE__*/getDefaultExportFromCjs(escapeHtml_1);
46737
46737
 
46738
- var version = "1.1.39";
46738
+ var version = "1.1.41";
46739
46739
 
46740
46740
  async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
46741
46741
  const routePath = `/${page.replace(/\.md$/, "")}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
- {
1
+ {
2
2
  "name": "themekit-js",
3
- "version": "1.1.39",
3
+ "version": "1.1.41",
4
4
  "description": "基于VitePress开发的Markdown静态网站生成器",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@8.15.6",