valaxy-theme-press 0.18.0-beta.2 → 0.18.0

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.
@@ -23,7 +23,8 @@ const { t, locale } = useI18n()
23
23
 
24
24
  function getTitle(post: Post | any) {
25
25
  const lang = locale.value
26
- return post[`title_${lang}`] ? post[`title_${lang}`] : post.title
26
+ const localeTitle = post[`title_${lang}`] || post[`title_${lang.split('-')[0]}`]
27
+ return localeTitle || post.title
27
28
  }
28
29
  </script>
29
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-press",
3
- "version": "0.18.0-beta.2",
3
+ "version": "0.18.0",
4
4
  "description": "Docs Theme for Valaxy",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
@@ -23,6 +23,6 @@
23
23
  "@docsearch/js": "^3.5.2"
24
24
  },
25
25
  "devDependencies": {
26
- "valaxy": "0.18.0-beta.2"
26
+ "valaxy": "0.18.0"
27
27
  }
28
28
  }