mirror of https://github.com/vuejs/vitepress
Example: ```js // .vitepress/theme/index.js import { h } from 'vue' import { defaultTheme } from 'vitepress' const BaseLayout = defaultTheme.Layout defaultTheme.Layout = () => { return h(BaseLayout, null, { 'page-top-ads': () => h('h2', 'top ads!'), 'page-bottom-ads': () => h('h2', 'bottom ads!'), }) } export default defaultTheme ```pull/183/head
parent
7dd5c24a5f
commit
b8e892e94a
Loading…
Reference in new issue