From 5fdc712ac7d1e7f5d6f772491d49da8a1791aab4 Mon Sep 17 00:00:00 2001 From: Phan An Date: Fri, 25 Sep 2020 09:37:26 +0200 Subject: [PATCH] feat: add v3 banners --- README.md | 2 ++ 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 +++++ 8 files changed, 37 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index e5752fc1dc..69395ba4f9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # vuejs.org +> Important: This repository is for Vue 1.x and 2.x only. Issues and pull requests related to 3.x are managed in the [v3 doc repo](https://github.com/vuejs/docs-next). + This site is built with [hexo](http://hexo.io/). Site content is written in Markdown format located in `src`. Pull requests welcome! ## Writing diff --git a/themes/vue/layout/layout.ejs b/themes/vue/layout/layout.ejs index cbc7a56c43..8205035927 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 3dfff64602..df8558e9d3 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 ed21db28d1..93cd0d7082 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. +