diff --git a/src/css/injected-components.css b/src/css/injected-components.css index e9b09728..aa9ae708 100644 --- a/src/css/injected-components.css +++ b/src/css/injected-components.css @@ -8,7 +8,7 @@ } } - &[data-position="main:start"] { + &[data-position="content:start"] { margin-bottom: 35px; &>*:first-child { @@ -20,7 +20,7 @@ } } - &[data-position="main:end"] { + &[data-position="content:end"] { margin-top: 30px; } diff --git a/src/css/markdown.css b/src/css/page-content.css similarity index 99% rename from src/css/markdown.css rename to src/css/page-content.css index 43fdac72..84980d83 100644 --- a/src/css/markdown.css +++ b/src/css/page-content.css @@ -1,4 +1,4 @@ -.markdown-body { +.page-content { & > *:first-child { margin-top: 0; } diff --git a/src/plugins/banner-footer/index.js b/src/plugins/banner-footer/index.js index 5bd45c49..53293ea4 100644 --- a/src/plugins/banner-footer/index.js +++ b/src/plugins/banner-footer/index.js @@ -8,10 +8,16 @@ export default { extend(api) { const {banner, footer} = api.store.getters.config if (banner) { - api.registerComponent('main:start', getComponent(banner, 'docute-banner')) + api.registerComponent( + 'content:start', + getComponent(banner, 'docute-banner') + ) } if (footer) { - api.registerComponent('main:end', getComponent(footer, 'docute-footer')) + api.registerComponent( + 'content:end', + getComponent(footer, 'docute-footer') + ) } } } diff --git a/src/views/Home.vue b/src/views/Home.vue index 57d9f202..922a6d4f 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -21,15 +21,12 @@