Skip to content

Commit

Permalink
fix: blog title error
Browse files Browse the repository at this point in the history
  • Loading branch information
harveyTon committed Oct 23, 2024
1 parent 6add482 commit 426b45c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/views/Article.vue
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ export default {
};
const updateTitle = () => {
if (article.value && blogInfo.value.title) {
document.title = `${article.value.title} - ${blogInfo.value.title} - Powered By Trilium Blog`;
if (article.value && blogInfo.value.blogTitle) {
document.title = `${article.value.title} - ${blogInfo.value.blogTitle} - Powered By Trilium Blog`;
}
};
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default {
onMounted(() => {
fetchArticles();
if (blogStore.blogInfo.blogTitle) {
document.title = `${blogStore.blogInfo.title} - Powered By Trilium Blog`;
document.title = `${blogStore.blogInfo.blogTitle} - Powered By Trilium Blog`;
}
});
Expand All @@ -131,7 +131,7 @@ export default {
() => blogStore.blogInfo,
(newBlogInfo) => {
if (newBlogInfo.blogTitle) {
document.title = `${newBlogInfo.title} - Powered By Trilium Blog`;
document.title = `${newBlogInfo.blogTitle} - Powered By Trilium Blog`;
}
},
{ immediate: true }
Expand Down

0 comments on commit 426b45c

Please sign in to comment.