valaxy-theme-yun 0.23.2 → 0.23.4

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.
@@ -0,0 +1,20 @@
1
+ <script setup lang="ts">
2
+ import { useFrontmatter, useFullUrl, useSiteConfig } from 'valaxy'
3
+ import { computed } from 'vue'
4
+
5
+ const siteConfig = useSiteConfig()
6
+ const frontmatter = useFrontmatter()
7
+ const url = useFullUrl()
8
+
9
+ const showSponsor = computed(() => {
10
+ if (typeof frontmatter.value.sponsor === 'boolean')
11
+ return frontmatter.value.sponsor
12
+
13
+ return siteConfig.value.sponsor.enable
14
+ })
15
+ </script>
16
+
17
+ <template>
18
+ <YunSponsor v-if="showSponsor" m="t-6" />
19
+ <ValaxyCopyright v-if="frontmatter.copyright || (frontmatter.copyright !== false && siteConfig.license.enabled)" :url="url" m="y-4" />
20
+ </template>
@@ -0,0 +1,11 @@
1
+ <script setup lang="ts">
2
+ import { useFrontmatter } from 'valaxy'
3
+
4
+ const frontmatter = useFrontmatter()
5
+ </script>
6
+
7
+ <template>
8
+ <YunPostMeta :frontmatter="frontmatter" />
9
+
10
+ <YunPostCategoriesAndTags class="mt-2" :frontmatter="frontmatter" />
11
+ </template>
@@ -4,7 +4,7 @@ import * as addonArtalk from 'valaxy-addon-artalk'
4
4
  import 'valaxy-addon-artalk/client/styles/index.scss'
5
5
 
6
6
  if (!isEmptyAddon(addonArtalk))
7
- addonArtalk.useArtalkWithOptions()
7
+ addonArtalk.useArtalkWithOptions?.()
8
8
  </script>
9
9
 
10
10
  <template>
package/layouts/post.vue CHANGED
@@ -2,19 +2,10 @@
2
2
  import { defineArticle, useSchemaOrg } from '@unhead/schema-org/vue'
3
3
 
4
4
  import dayjs from 'dayjs'
5
- import { useFrontmatter, useFullUrl, useSiteConfig } from 'valaxy'
6
- import { computed } from 'vue'
5
+ import { useFrontmatter, useSiteConfig } from 'valaxy'
7
6
 
8
7
  const siteConfig = useSiteConfig()
9
8
  const frontmatter = useFrontmatter()
10
- const url = useFullUrl()
11
-
12
- const showSponsor = computed(() => {
13
- if (typeof frontmatter.value.sponsor === 'boolean')
14
- return frontmatter.value.sponsor
15
-
16
- return siteConfig.value.sponsor.enable
17
- })
18
9
 
19
10
  const article: Parameters<typeof defineArticle>[0] = {
20
11
  '@type': 'BlogPosting',
@@ -46,14 +37,11 @@ useSchemaOrg(
46
37
  <RouterView v-slot="{ Component }">
47
38
  <component :is="Component">
48
39
  <template #main-header-after>
49
- <YunPostMeta :frontmatter="frontmatter" />
50
-
51
- <YunPostCategoriesAndTags class="mt-2" :frontmatter="frontmatter" />
40
+ <YunMainHeaderAfter />
52
41
  </template>
53
42
 
54
43
  <template #main-content-after>
55
- <YunSponsor v-if="showSponsor" m="t-6" />
56
- <ValaxyCopyright v-if="frontmatter.copyright || (frontmatter.copyright !== false && siteConfig.license.enabled)" :url="url" m="y-4" />
44
+ <YunMainContentAfter />
57
45
  </template>
58
46
 
59
47
  <template #aside-custom>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
3
  "type": "module",
4
- "version": "0.23.2",
4
+ "version": "0.23.4",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
7
7
  "name": "YunYouJun",
@@ -24,15 +24,15 @@
24
24
  "@ctrl/tinycolor": "^4.1.0",
25
25
  "@explosions/fireworks": "^0.2.0",
26
26
  "@iconify-json/ant-design": "^1.2.5",
27
- "@iconify-json/simple-icons": "^1.2.33",
27
+ "@iconify-json/simple-icons": "^1.2.35",
28
28
  "@vueuse/motion": "^3.0.3",
29
29
  "animejs": "^4.0.2",
30
- "gsap": "^3.12.7",
31
- "primevue": "^4.3.3"
30
+ "gsap": "^3.13.0",
31
+ "primevue": "^4.3.4"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/animejs": "^3.1.13",
35
- "valaxy": "0.23.2",
35
+ "valaxy": "0.23.4",
36
36
  "valaxy-addon-waline": "0.2.1"
37
37
  },
38
38
  "scripts": {