@sugarat/theme 0.4.5 → 0.4.7

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.
package/node.js CHANGED
@@ -40,7 +40,7 @@ module.exports = __toCommonJS(node_exports);
40
40
  // src/utils/node/mdPlugins.ts
41
41
  var import_module = require("module");
42
42
 
43
- // ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.2.3_@algolia+client-search@4.19.1_@types+node@20.6.3__tasys46ln23ubdv2to2chczqqi/node_modules/vitepress-plugin-tabs/dist/index.js
43
+ // ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.3.0_@algolia+client-search@4.19.1_@types+node@20.6.3__sj5mge46erqqa56uabqhqr6ucy/node_modules/vitepress-plugin-tabs/dist/index.js
44
44
  var tabsMarker = "=tabs";
45
45
  var tabsMarkerLen = tabsMarker.length;
46
46
  var ruleBlockTabs = (state, startLine, endLine, silent) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sugarat/theme",
3
- "version": "0.4.5",
3
+ "version": "0.4.7",
4
4
  "description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
5
5
  "author": "sugar",
6
6
  "license": "MIT",
@@ -50,9 +50,9 @@
50
50
  "vitepress-markdown-timeline": "^1.2.1",
51
51
  "vitepress-plugin-mermaid": "2.0.13",
52
52
  "vitepress-plugin-tabs": "0.2.0",
53
- "@sugarat/theme-shared": "0.0.1",
54
- "vitepress-plugin-rss": "0.2.7",
55
- "vitepress-plugin-pagefind": "0.4.2"
53
+ "@sugarat/theme-shared": "0.0.2",
54
+ "vitepress-plugin-pagefind": "0.4.5",
55
+ "vitepress-plugin-rss": "0.2.8"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@element-plus/icons-vue": "^2.3.1",
@@ -62,7 +62,7 @@
62
62
  "sass": "^1.76.0",
63
63
  "typescript": "^5.4.5",
64
64
  "vite": "^5.2.11",
65
- "vitepress": "1.2.3",
65
+ "vitepress": "1.3.0",
66
66
  "vue": "^3.4.26"
67
67
  },
68
68
  "scripts": {
@@ -12,10 +12,11 @@ const author = computed(() =>
12
12
  ?? site.value.themeConfig?.blog?.author
13
13
  )
14
14
  const logo = computed(() =>
15
- frontmatter.value.logo
15
+ frontmatter.value?.logo
16
16
  ?? frontmatter.value?.blog?.logo
17
17
  ?? home?.logo
18
- ?? site.value.themeConfig.logo
18
+ ?? site.value?.themeConfig?.logo
19
+ ?? '/logo.png'
19
20
  )
20
21
  const show = computed(() => author.value || logo.value)
21
22
  </script>
@@ -9,7 +9,8 @@ const logo = computed(() =>
9
9
  frontmatter.value.logo
10
10
  ?? frontmatter.value?.blog?.logo
11
11
  ?? home?.logo
12
- ?? site.value.themeConfig.logo
12
+ ?? site.value.themeConfig?.logo
13
+ ?? '/logo.png'
13
14
  )
14
15
  const alwaysHide = computed(() => frontmatter.value.blog?.minScreenAvatar === false)
15
16
  </script>