Vuepress Blog - Get Posts Title and Image


I’m trying to show only the front matter title and image from home page in Vuepress Theme Blog. I’m not sure how to get this info. The default global layout component:

  <div id="global-layout">
        <h1 class="blog-title">Blog Example</h1>
    <component :is="layout"/>

export default {
  computed: {
    layout () {
      if (this.$page.path) {
        if (this.$frontmatter.layout) {
          return this.$frontmatter.layout
        return 'Layout'
      return 'NotFound'

I’m tried to change $frontmatter.layout by $frontmatter.title as:

Maybe someone can send me an example :wink: