Skip to content

Default Theme Slots do not allow customization for the sidebar or page #1950

Closed
adamlaska/osmos-cosmos-sdk
#5
@softwarewright

Description

@softwarewright
  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

Attempt to override the sidebar or page top/bottom in the theme for a project

  • Create an index.js file in the theme directory
module.exports  = {
    extend: '@vuepress/theme-default'
}
  • Creatine the layout file in the theme directory
<template>
  <ParentLayout>
    <template #sidebar-top>
      <span> Hello World </span>
    </template>
  </ParentLayout>
</template>

<script>
import ParentLayout from '@parent-theme/layouts/Layout.vue'

export default {
  components: {
    ParentLayout
  }
}
</script>

What is expected?

The using the slots should update the content on the sidebar and the page.

What is actually happening?

Nothing is being rendered

Other relevant information

There needs to be templates wrapped around the slots on the Layout.vue in the vue default theme for the page and the sidebar sections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions