From c40ec8248b976f11712beac64283950d60b42675 Mon Sep 17 00:00:00 2001 From: oohira Date: Sat, 3 Oct 2020 10:38:32 +0900 Subject: [PATCH 1/2] [Doc]: feat: add v3 banners #2230 * cherry-pick vuejs/vuejs.org@18cfaee --- themes/vue/layout/layout.ejs | 7 ++--- themes/vue/layout/page.ejs | 5 ++++ themes/vue/layout/partials/header.ejs | 10 +++---- themes/vue/source/css/_header.styl | 42 +++++++-------------------- themes/vue/source/css/_settings.styl | 2 -- themes/vue/source/css/index.styl | 10 +++++-- themes/vue/source/css/page.styl | 7 +++++ 7 files changed, 35 insertions(+), 48 deletions(-) diff --git a/themes/vue/layout/layout.ejs b/themes/vue/layout/layout.ejs index 88796f554..c68f6714c 100644 --- a/themes/vue/layout/layout.ejs +++ b/themes/vue/layout/layout.ejs @@ -2,7 +2,7 @@ <% var isThemes = page.path === 'resources/themes.html' %> - + <%- page.title ? page.title + ' — ' : '' %>Vue.js @@ -91,11 +91,8 @@
> - + - <% if (isIndex) { %> - #BlackLivesMatter - <% } %>
<%- partial('partials/header') %> <% if (!isIndex) { %> diff --git a/themes/vue/layout/page.ejs b/themes/vue/layout/page.ejs index 61eca2feb..33791a454 100644 --- a/themes/vue/layout/page.ejs +++ b/themes/vue/layout/page.ejs @@ -8,6 +8,11 @@ <% } %>
+

+ You’re browsing the documentation for v2.x and ealier. + For v3.x, click here. +

+ <% if (page.type) { %> <% if (page.type === 'menu') { %>
diff --git a/themes/vue/layout/partials/header.ejs b/themes/vue/layout/partials/header.ejs index ed21db28d..93cd0d708 100644 --- a/themes/vue/layout/partials/header.ejs +++ b/themes/vue/layout/partials/header.ejs @@ -1,10 +1,8 @@
- <% if (page.path === 'index.html') { %> -
- #BlackLivesMatter - Support the Equal Justice Initiative. -
- <% } %> +
+ + Click here for v3.x documentation. +