Skip to content

Commit

Permalink
Changed 4-spaces indent in 2 spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinjiang committed Sep 15, 2017
1 parent 1097ec8 commit a7f4a81
Show file tree
Hide file tree
Showing 5 changed files with 212 additions and 212 deletions.
2 changes: 1 addition & 1 deletion themes/vue/layout/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

<div id="footer">
<a href="https://www.shuttleworthfoundation.org/fellows/flash-grants/" target="_blank">
<img src="<%- url_for("/images/shuttleworth.png") %>" style="width: 200px">
<img src="/images/shuttleworth.png" style="width: 200px;">
</a>
<p>遵循 <a href="https://opensource.org/licenses/MIT" target="_blank">MIT 开源协议</a><br>
Copyright &copy; 2014-<%- new Date().getFullYear() %> Evan You</p>
Expand Down
214 changes: 107 additions & 107 deletions themes/vue/layout/layout.ejs
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>
66 changes: 33 additions & 33 deletions themes/vue/layout/page.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% if (page.type) { %>
<%- partial('partials/sidebar', { type: page.type === 'menu' ? 'guide' : page.type, index: page.index }) %>
<%- partial('partials/sidebar', { type: page.type === 'menu' ? 'guide' : page.type, index: page.index }) %>
<% } else { %>
<div class="sidebar">
<ul class="main-menu">
Expand All @@ -8,38 +8,38 @@
</div>
<% } %>
<div class="content <%- page.type ? page.type + ' with-sidebar' : '' %> <%- page.type === 'guide' ? page.path.replace(/.+\//, '').replace('.html', '') + '-guide' : '' %>">
<% if (page.type) { %>
<% if (page.type === 'menu') { %>
<form id="search-form">
<input type="text" id="search-query-menu" class="search-query st-default-search-input">
</form>
<%- partial('partials/toc', { type: 'guide' }) %>
<% } else { %>
<%- partial('partials/ad') %>
<% } %>
<% if (page.type) { %>
<% if (page.type === 'menu') { %>
<form id="search-form">
<input type="text" id="search-query-menu" class="search-query st-default-search-input">
</form>
<%- partial('partials/toc', { type: 'guide' }) %>
<% } else { %>
<%- partial('partials/ad') %>
<% } %>
<% if (page.title.trim()) { %>
<h1><%- page.title %><%- page.type === 'examples' ? ' Example' : '' %></h1>
<% } %>
<% if (page.type === 'about') { %>
<%- partial('partials/contributors') %>
<% } %>
<%- page.content %>
<% if (page.type === 'guide') { %>
<div class="guide-links">
<% site.pages.find({ type: page.type, order: page.order - 1 }).each(function (page) { %>
<span><a href="<%- url_for(page.path) %>"><%- page.title %></a></span>
<% }) %>
<% site.pages.find({ type: page.type, order: page.order + 1 }).each(function (page) { %>
<span style="float:right"><a href="<%- url_for(page.path) %>"><%- page.title %></a></span>
<% }) %>
</div>
<% } %>
<div class="footer">
<%- partial('partials/ad-text') %>
发现错误?想参与编辑?
<a href="https://github.com/vuejs/cn.vuejs.org/blob/master/src/<%- page.path.replace(/\.html$/, '.md') %>" target="_blank">
在 Github 上编辑此页!
</a>
<% } %>
<% if (page.title.trim()) { %>
<h1><%- page.title %><%- page.type === 'examples' ? ' Example' : '' %></h1>
<% } %>
<% if (page.type === 'about') { %>
<%- partial('partials/contributors') %>
<% } %>
<%- page.content %>
<% if (page.type === 'guide') { %>
<div class="guide-links">
<% site.pages.find({ type: page.type, order: page.order - 1 }).each(function (page) { %>
<span><a href="<%- url_for(page.path) %>"><%- page.title %></a></span>
<% }) %>
<% site.pages.find({ type: page.type, order: page.order + 1 }).each(function (page) { %>
<span style="float:right"><a href="<%- url_for(page.path) %>"><%- page.title %></a></span>
<% }) %>
</div>
<% } %>
<div class="footer">
<%- partial('partials/ad-text') %>
发现错误?想参与编辑?
<a href="https://github.com/vuejs/cn.vuejs.org/blob/master/src/<%- page.path.replace(/\.html$/, '.md') %>" target="_blank">
在 Github 上编辑此页!
</a>
</div>
</div>
Loading

0 comments on commit a7f4a81

Please sign in to comment.