forked from vuejs/v2.cn.vuejs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed 4-spaces indent in 2 spaces.
- Loading branch information
Showing
5 changed files
with
212 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,128 +1,128 @@ | ||
<% var isIndex = page.path === 'index.html' %> | ||
<!DOCTYPE html> | ||
<html lang="zh-CN"> | ||
<head> | ||
<title><%- page.title ? page.title + ' — ' : '' %>Vue.js</title> | ||
<meta charset="utf-8"> | ||
<meta name="description" content="<%- theme.site_description %>"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | ||
<head> | ||
<title><%- page.title ? page.title + ' — ' : '' %>Vue.js</title> | ||
<meta charset="utf-8"> | ||
<meta name="description" content="<%- theme.site_description %>"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | ||
|
||
<link rel="alternate" hreflang="x-default" href="https://vuejs.org/<%- page.path %>"> | ||
<link rel="alternate" hreflang="zh" href="https://cn.vuejs.org/<%- page.path %>"> | ||
<link rel="alternate" hreflang="ja" href="https://jp.vuejs.org/<%- page.path %>"> | ||
<link rel="alternate" hreflang="ru" href="https://ru.vuejs.org/<%- page.path %>"> | ||
<link rel="alternate" hreflang="ko" href="https://kr.vuejs.org/<%- page.path %>"> | ||
<link rel="alternate" hreflang="pt-BR" href="https://br.vuejs.org/<%- page.path %>"> | ||
<link rel="alternate" hreflang="fr" href="https://fr.vuejs.org/<%- page.path %>"> | ||
<link rel="alternate" hreflang="x-default" href="https://vuejs.org/<%- page.path %>"> | ||
<link rel="alternate" hreflang="zh" href="https://cn.vuejs.org/<%- page.path %>"> | ||
<link rel="alternate" hreflang="ja" href="https://jp.vuejs.org/<%- page.path %>"> | ||
<link rel="alternate" hreflang="ru" href="https://ru.vuejs.org/<%- page.path %>"> | ||
<link rel="alternate" hreflang="ko" href="https://kr.vuejs.org/<%- page.path %>"> | ||
<link rel="alternate" hreflang="pt-BR" href="https://br.vuejs.org/<%- page.path %>"> | ||
<link rel="alternate" hreflang="fr" href="https://fr.vuejs.org/<%- page.path %>"> | ||
|
||
<meta property="og:type" content="article"> | ||
<meta property="og:title" content="<%- page.title ? page.title + ' — ' : '' %>Vue.js"> | ||
<meta property="og:description" content="<%- theme.site_description %>"> | ||
<meta property="og:image" content="https://<%- theme.root_domain %>/<%- url_for("/images/logo.png") %>"> | ||
<meta property="og:type" content="article"> | ||
<meta property="og:title" content="<%- page.title ? page.title + ' — ' : '' %>Vue.js"> | ||
<meta property="og:description" content="<%- theme.site_description %>"> | ||
<meta property="og:image" content="https://<%- theme.root_domain %>/<%- url_for("/images/logo.png") %>"> | ||
|
||
<meta name="twitter:card" content="summary"> | ||
<meta name="twitter:title" content="<%- page.title ? page.title + ' — ' : '' %>Vue.js"> | ||
<meta name="twitter:description" content="<%- theme.site_description %>"> | ||
<meta name="twitter:image" content="https://<%- theme.root_domain %>/images/logo.png"> | ||
<meta name="twitter:card" content="summary"> | ||
<meta name="twitter:title" content="<%- page.title ? page.title + ' — ' : '' %>Vue.js"> | ||
<meta name="twitter:description" content="<%- theme.site_description %>"> | ||
<meta name="twitter:image" content="https://<%- theme.root_domain %>/images/logo.png"> | ||
|
||
<link rel="apple-touch-icon" sizes="57x57" href="<%- url_for("/images/icons/apple-icon-57x57.png") %>"> | ||
<link rel="apple-touch-icon" sizes="60x60" href="<%- url_for("/images/icons/apple-icon-60x60.png") %>"> | ||
<link rel="apple-touch-icon" sizes="72x72" href="<%- url_for("/images/icons/apple-icon-72x72.png") %>"> | ||
<link rel="apple-touch-icon" sizes="76x76" href="<%- url_for("/images/icons/apple-icon-76x76.png") %>"> | ||
<link rel="apple-touch-icon" sizes="114x114" href="<%- url_for("/images/icons/apple-icon-114x114.png") %>"> | ||
<link rel="apple-touch-icon" sizes="120x120" href="<%- url_for("/images/icons/apple-icon-120x120.png") %>"> | ||
<link rel="apple-touch-icon" sizes="144x144" href="<%- url_for("/images/icons/apple-icon-144x144.png") %>"> | ||
<link rel="apple-touch-icon" sizes="152x152" href="<%- url_for("/images/icons/apple-icon-152x152.png") %>"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="<%- url_for("/images/icons/apple-icon-180x180.png") %>"> | ||
<link rel="icon" type="image/png" sizes="192x192" href="<%- url_for("/images/icons/android-icon-192x192.png") %>"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="<%- url_for("/images/icons/favicon-32x32.png") %>"> | ||
<link rel="icon" type="image/png" sizes="96x96" href="<%- url_for("/images/icons/favicon-96x96.png") %>"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="<%- url_for("/images/icons/favicon-16x16.png") %>"> | ||
<meta name="msapplication-TileImage" content="/images/icons/ms-icon-144x144.png"> | ||
<link rel="icon" href="<%- url_for("/images/logo.png") %>" type="image/png"> | ||
<link rel="apple-touch-icon" sizes="57x57" href="<%- url_for("/images/icons/apple-icon-57x57.png") %>"> | ||
<link rel="apple-touch-icon" sizes="60x60" href="<%- url_for("/images/icons/apple-icon-60x60.png") %>"> | ||
<link rel="apple-touch-icon" sizes="72x72" href="<%- url_for("/images/icons/apple-icon-72x72.png") %>"> | ||
<link rel="apple-touch-icon" sizes="76x76" href="<%- url_for("/images/icons/apple-icon-76x76.png") %>"> | ||
<link rel="apple-touch-icon" sizes="114x114" href="<%- url_for("/images/icons/apple-icon-114x114.png") %>"> | ||
<link rel="apple-touch-icon" sizes="120x120" href="<%- url_for("/images/icons/apple-icon-120x120.png") %>"> | ||
<link rel="apple-touch-icon" sizes="144x144" href="<%- url_for("/images/icons/apple-icon-144x144.png") %>"> | ||
<link rel="apple-touch-icon" sizes="152x152" href="<%- url_for("/images/icons/apple-icon-152x152.png") %>"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="<%- url_for("/images/icons/apple-icon-180x180.png") %>"> | ||
<link rel="icon" type="image/png" sizes="192x192" href="<%- url_for("/images/icons/android-icon-192x192.png") %>"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="<%- url_for("/images/icons/favicon-32x32.png") %>"> | ||
<link rel="icon" type="image/png" sizes="96x96" href="<%- url_for("/images/icons/favicon-96x96.png") %>"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="<%- url_for("/images/icons/favicon-16x16.png") %>"> | ||
<meta name="msapplication-TileImage" content="/images/icons/ms-icon-144x144.png"> | ||
<link rel="icon" href="<%- url_for("/images/logo.png") %>" type="image/png"> | ||
|
||
<meta name="msapplication-TileColor" content="#4fc08d"> | ||
<meta name="theme-color" content="#4fc08d"> | ||
<meta name="msapplication-TileColor" content="#4fc08d"> | ||
<meta name="theme-color" content="#4fc08d"> | ||
|
||
<meta name="msapplication-config" content="browserconfig.xml"> | ||
<link rel="manifest" href="/manifest.json"> | ||
<meta name="msapplication-config" content="browserconfig.xml"> | ||
<link rel="manifest" href="/manifest.json"> | ||
|
||
<!-- <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono' rel='stylesheet' type='text/css'> --> | ||
<!-- <link href='//fonts.googleapis.com/css?family=Dosis:500&text=Vue.js' rel='stylesheet' type='text/css'> --> | ||
<!-- <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono' rel='stylesheet' type='text/css'> --> | ||
<!-- <link href='//fonts.googleapis.com/css?family=Dosis:500&text=Vue.js' rel='stylesheet' type='text/css'> --> | ||
|
||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> | ||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> | ||
|
||
<!-- main page styles --> | ||
<%- css(isIndex ? 'css/index' : 'css/page') %> | ||
<!-- main page styles --> | ||
<%- css(isIndex ? 'css/index' : 'css/page') %> | ||
|
||
<!-- this needs to be loaded before guide's inline scripts --> | ||
<script src="<%- url_for("/js/vue.js") %>"></script> | ||
<script>window.PAGE_TYPE = "<%- page.type %>"</script> | ||
<!-- this needs to be loaded before guide's inline scripts --> | ||
<script src="<%- url_for("/js/vue.js") %>"></script> | ||
<script>window.PAGE_TYPE = "<%- page.type %>"</script> | ||
|
||
<!-- ga --> | ||
<script> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
<!-- ga --> | ||
<script> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
ga('create', '<%- theme.google_analytics %>', '<%- theme.root_domain %>'); | ||
ga('send', 'pageview'); | ||
</script> | ||
</head> | ||
<body class="<%- isIndex ? '' : 'docs' -%>"> | ||
<div id="mobile-bar" <%- isIndex ? 'class="top"' : '' %>> | ||
<a class="menu-button"></a> | ||
<a class="logo" href="/"></a> | ||
</div> | ||
<%- partial('partials/header') %> | ||
<% if (!isIndex) { %> | ||
<div id="main" class="fix-sidebar"> | ||
<% if (page.blog_index) { %> | ||
<%- partial('partials/blog') %> | ||
<% } else { %> | ||
<%- body %> | ||
<% } %> | ||
</div> | ||
<script src="<%- url_for("/js/smooth-scroll.min.js") %>"></script> | ||
ga('create', '<%- theme.google_analytics %>', '<%- theme.root_domain %>'); | ||
ga('send', 'pageview'); | ||
</script> | ||
</head> | ||
<body class="<%- isIndex ? '' : 'docs' -%>"> | ||
<div id="mobile-bar" <%- isIndex ? 'class="top"' : '' %>> | ||
<a class="menu-button"></a> | ||
<a class="logo" href="/"></a> | ||
</div> | ||
<%- partial('partials/header') %> | ||
<% if (!isIndex) { %> | ||
<div id="main" class="fix-sidebar"> | ||
<% if (page.blog_index) { %> | ||
<%- partial('partials/blog') %> | ||
<% } else { %> | ||
<%- body %> | ||
<%- body %> | ||
<% } %> | ||
</div> | ||
<script src="<%- url_for("/js/smooth-scroll.min.js") %>"></script> | ||
<% } else { %> | ||
<%- body %> | ||
<% } %> | ||
|
||
<!-- main custom script for sidebars, version selects etc. --> | ||
<script src="<%- url_for("/js/css.escape.js") %>"></script> | ||
<script src="<%- url_for("/js/common.js") %>"></script> | ||
<!-- main custom script for sidebars, version selects etc. --> | ||
<script src="<%- url_for("/js/css.escape.js") %>"></script> | ||
<script src="<%- url_for("/js/common.js") %>"></script> | ||
|
||
<!-- search --> | ||
<link href="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" rel='stylesheet' type='text/css'> | ||
<%- css('css/search') %> | ||
<script src="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script> | ||
<script> | ||
[ | ||
'#search-query-nav', | ||
'#search-query-sidebar', | ||
'#search-query-menu' | ||
].forEach(function (selector) { | ||
if (!document.querySelector(selector)) return | ||
// search index defaults to v2 | ||
var match = window.location.pathname.match(/^\/(v\d+)/) | ||
var version = match ? match[1] : 'v2' | ||
docsearch({ | ||
appId: 'BH4D9OD16A', | ||
apiKey: '5638280abff9d207417bb03be05f0b25', | ||
indexName: 'vuejs_cn2', | ||
inputSelector: selector, | ||
algoliaOptions: { facetFilters: ["version:" + version] } | ||
}) | ||
}) | ||
</script> | ||
<!-- search --> | ||
<link href="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" rel='stylesheet' type='text/css'> | ||
<%- css('css/search') %> | ||
<script src="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script> | ||
<script> | ||
[ | ||
'#search-query-nav', | ||
'#search-query-sidebar', | ||
'#search-query-menu' | ||
].forEach(function (selector) { | ||
if (!document.querySelector(selector)) return | ||
// search index defaults to v2 | ||
var match = window.location.pathname.match(/^\/(v\d+)/) | ||
var version = match ? match[1] : 'v2' | ||
docsearch({ | ||
appId: 'BH4D9OD16A', | ||
apiKey: '5638280abff9d207417bb03be05f0b25', | ||
indexName: 'vuejs_cn2', | ||
inputSelector: selector, | ||
algoliaOptions: { facetFilters: ["version:" + version] } | ||
}) | ||
}) | ||
</script> | ||
|
||
<!-- fastclick --> | ||
<script src="//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js"></script> | ||
<script> | ||
document.addEventListener('DOMContentLoaded', function() { | ||
FastClick.attach(document.body) | ||
}, false) | ||
</script> | ||
</body> | ||
<!-- fastclick --> | ||
<script src="//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js"></script> | ||
<script> | ||
document.addEventListener('DOMContentLoaded', function() { | ||
FastClick.attach(document.body) | ||
}, false) | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.