Skip to content

Commit

Permalink
WIP: try to get title into header
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Jun 1, 2023
1 parent 348d0f0 commit acf4c10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</p>
</div>
<!-- eslint-disable-next-line vue/no-v-html -->
<h2 v-html="oc_defaults.slogan" />
<h2 v-html="getPageTitle" />
<p />
</div>
</div>
Expand Down Expand Up @@ -127,6 +127,9 @@ export default {
}
this.currentSlide -= 1
},
getPageTitle() {
this.slideList[this.currentSlide].content.querySelector('.page').getAttribute('data-title')
}
},
}
</script>
Expand Down

0 comments on commit acf4c10

Please sign in to comment.