|
1 | 1 | <% var isIndex = page.path === 'index.html' %>
|
2 | 2 | <!DOCTYPE html>
|
3 | 3 | <html lang="ja">
|
4 |
| - <head> |
5 |
| - <title><%- page.title ? page.title + ' - ' : '' %>Vue.js</title> |
6 |
| - <meta charset="utf-8"> |
7 |
| - <meta name="description" content="<%- theme.site_description %>"> |
8 |
| - <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> |
| 4 | + <head> |
| 5 | + <title><%- page.title ? page.title + ' — ' : '' %>Vue.js</title> |
| 6 | + <meta charset="utf-8"> |
| 7 | + <meta name="description" content="<%- theme.site_description %>"> |
| 8 | + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> |
9 | 9 |
|
10 |
| - <link rel="alternate" hreflang="x-default" href="https://vuejs.org/<%- page.path %>"> |
11 |
| - <link rel="alternate" hreflang="zh" href="https://cn.vuejs.org/<%- page.path %>"> |
12 |
| - <link rel="alternate" hreflang="ja" href="https://jp.vuejs.org/<%- page.path %>"> |
13 |
| - <link rel="alternate" hreflang="ru" href="https://ru.vuejs.org/<%- page.path %>"> |
14 |
| - <link rel="alternate" hreflang="ko" href="https://kr.vuejs.org/<%- page.path %>"> |
15 |
| - <link rel="alternate" hreflang="pt-BR" href="https://br.vuejs.org/<%- page.path %>"> |
16 |
| - <link rel="alternate" hreflang="fr" href="https://fr.vuejs.org/<%- page.path %>"> |
| 10 | + <link rel="alternate" hreflang="x-default" href="https://vuejs.org/<%- page.path %>"> |
| 11 | + <link rel="alternate" hreflang="zh" href="https://cn.vuejs.org/<%- page.path %>"> |
| 12 | + <link rel="alternate" hreflang="ja" href="https://jp.vuejs.org/<%- page.path %>"> |
| 13 | + <link rel="alternate" hreflang="ru" href="https://ru.vuejs.org/<%- page.path %>"> |
| 14 | + <link rel="alternate" hreflang="ko" href="https://kr.vuejs.org/<%- page.path %>"> |
| 15 | + <link rel="alternate" hreflang="pt-BR" href="https://br.vuejs.org/<%- page.path %>"> |
| 16 | + <link rel="alternate" hreflang="fr" href="https://fr.vuejs.org/<%- page.path %>"> |
17 | 17 |
|
18 |
| - <meta property="og:type" content="article"> |
19 |
| - <meta property="og:title" content="<%- page.title ? page.title + ' - ' : '' %>Vue.js"> |
20 |
| - <meta property="og:description" content="<%- theme.site_description %>"> |
21 |
| - <meta property="og:image" content="https://<%- theme.root_domain %>/<%- url_for("/images/logo.png") %>"> |
| 18 | + <meta property="og:type" content="article"> |
| 19 | + <meta property="og:title" content="<%- page.title ? page.title + ' — ' : '' %>Vue.js"> |
| 20 | + <meta property="og:description" content="<%- theme.site_description %>"> |
| 21 | + <meta property="og:image" content="https://<%- theme.root_domain %>/<%- url_for("/images/logo.png") %>"> |
22 | 22 |
|
23 |
| - <meta name="twitter:card" content="summary"> |
24 |
| - <meta name="twitter:title" content="<%- page.title ? page.title + ' - ' : '' %>Vue.js"> |
25 |
| - <meta name="twitter:description" content="<%- theme.site_description %>"> |
26 |
| - <meta name="twitter:image" content="https://<%- theme.root_domain %>/images/logo.png"> |
| 23 | + <meta name="twitter:card" content="summary"> |
| 24 | + <meta name="twitter:title" content="<%- page.title ? page.title + ' — ' : '' %>Vue.js"> |
| 25 | + <meta name="twitter:description" content="<%- theme.site_description %>"> |
| 26 | + <meta name="twitter:image" content="https://<%- theme.root_domain %>/images/logo.png"> |
27 | 27 |
|
28 |
| - <link rel="apple-touch-icon" sizes="57x57" href="<%- url_for("/images/icons/apple-icon-57x57.png") %>"> |
29 |
| - <link rel="apple-touch-icon" sizes="60x60" href="<%- url_for("/images/icons/apple-icon-60x60.png") %>"> |
30 |
| - <link rel="apple-touch-icon" sizes="72x72" href="<%- url_for("/images/icons/apple-icon-72x72.png") %>"> |
31 |
| - <link rel="apple-touch-icon" sizes="76x76" href="<%- url_for("/images/icons/apple-icon-76x76.png") %>"> |
32 |
| - <link rel="apple-touch-icon" sizes="114x114" href="<%- url_for("/images/icons/apple-icon-114x114.png") %>"> |
33 |
| - <link rel="apple-touch-icon" sizes="120x120" href="<%- url_for("/images/icons/apple-icon-120x120.png") %>"> |
34 |
| - <link rel="apple-touch-icon" sizes="144x144" href="<%- url_for("/images/icons/apple-icon-144x144.png") %>"> |
35 |
| - <link rel="apple-touch-icon" sizes="152x152" href="<%- url_for("/images/icons/apple-icon-152x152.png") %>"> |
36 |
| - <link rel="apple-touch-icon" sizes="180x180" href="<%- url_for("/images/icons/apple-icon-180x180.png") %>"> |
37 |
| - <link rel="icon" type="image/png" sizes="192x192" href="<%- url_for("/images/icons/android-icon-192x192.png") %>"> |
38 |
| - <link rel="icon" type="image/png" sizes="32x32" href="<%- url_for("/images/icons/favicon-32x32.png") %>"> |
39 |
| - <link rel="icon" type="image/png" sizes="96x96" href="<%- url_for("/images/icons/favicon-96x96.png") %>"> |
40 |
| - <link rel="icon" type="image/png" sizes="16x16" href="<%- url_for("/images/icons/favicon-16x16.png") %>"> |
41 |
| - <meta name="msapplication-TileImage" content="/images/icons/ms-icon-144x144.png"> |
42 |
| - <link rel="icon" href="<%- url_for("/images/logo.png") %>" type="image/png"> |
| 28 | + <link rel="apple-touch-icon" sizes="57x57" href="<%- url_for("/images/icons/apple-icon-57x57.png") %>"> |
| 29 | + <link rel="apple-touch-icon" sizes="60x60" href="<%- url_for("/images/icons/apple-icon-60x60.png") %>"> |
| 30 | + <link rel="apple-touch-icon" sizes="72x72" href="<%- url_for("/images/icons/apple-icon-72x72.png") %>"> |
| 31 | + <link rel="apple-touch-icon" sizes="76x76" href="<%- url_for("/images/icons/apple-icon-76x76.png") %>"> |
| 32 | + <link rel="apple-touch-icon" sizes="114x114" href="<%- url_for("/images/icons/apple-icon-114x114.png") %>"> |
| 33 | + <link rel="apple-touch-icon" sizes="120x120" href="<%- url_for("/images/icons/apple-icon-120x120.png") %>"> |
| 34 | + <link rel="apple-touch-icon" sizes="144x144" href="<%- url_for("/images/icons/apple-icon-144x144.png") %>"> |
| 35 | + <link rel="apple-touch-icon" sizes="152x152" href="<%- url_for("/images/icons/apple-icon-152x152.png") %>"> |
| 36 | + <link rel="apple-touch-icon" sizes="180x180" href="<%- url_for("/images/icons/apple-icon-180x180.png") %>"> |
| 37 | + <link rel="icon" type="image/png" sizes="192x192" href="<%- url_for("/images/icons/android-icon-192x192.png") %>"> |
| 38 | + <link rel="icon" type="image/png" sizes="32x32" href="<%- url_for("/images/icons/favicon-32x32.png") %>"> |
| 39 | + <link rel="icon" type="image/png" sizes="96x96" href="<%- url_for("/images/icons/favicon-96x96.png") %>"> |
| 40 | + <link rel="icon" type="image/png" sizes="16x16" href="<%- url_for("/images/icons/favicon-16x16.png") %>"> |
| 41 | + <meta name="msapplication-TileImage" content="/images/icons/ms-icon-144x144.png"> |
| 42 | + <link rel="icon" href="<%- url_for("/images/logo.png") %>" type="image/png"> |
43 | 43 |
|
44 |
| - <meta name="msapplication-TileColor" content="#4fc08d"> |
45 |
| - <meta name="theme-color" content="#4fc08d"> |
| 44 | + <meta name="msapplication-TileColor" content="#4fc08d"> |
| 45 | + <meta name="theme-color" content="#4fc08d"> |
46 | 46 |
|
47 |
| - <meta name="msapplication-config" content="browserconfig.xml"> |
48 |
| - <link rel="manifest" href="/manifest.json"> |
| 47 | + <meta name="msapplication-config" content="browserconfig.xml"> |
| 48 | + <link rel="manifest" href="/manifest.json"> |
49 | 49 |
|
50 |
| - <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono' rel='stylesheet' type='text/css'> |
51 |
| - <link href='//fonts.googleapis.com/css?family=Dosis:500&text=Vue.js' rel='stylesheet' type='text/css'> |
| 50 | + <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono' rel='stylesheet' type='text/css'> |
| 51 | + <link href='//fonts.googleapis.com/css?family=Dosis:500&text=Vue.js' rel='stylesheet' type='text/css'> |
52 | 52 |
|
53 |
| - <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> |
| 53 | + <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> |
54 | 54 |
|
55 |
| - <!-- main page styles --> |
56 |
| - <%- css(isIndex ? 'css/index' : 'css/page') %> |
| 55 | + <!-- main page styles --> |
| 56 | + <%- css(isIndex ? 'css/index' : 'css/page') %> |
57 | 57 |
|
58 |
| - <!-- this needs to be loaded before guide's inline scripts --> |
59 |
| - <script src="<%- url_for("/js/vue.js") %>"></script> |
60 |
| - <script>window.PAGE_TYPE = "<%- page.type %>"</script> |
| 58 | + <!-- this needs to be loaded before guide's inline scripts --> |
| 59 | + <script src="<%- url_for("/js/vue.js") %>"></script> |
| 60 | + <script>window.PAGE_TYPE = "<%- page.type %>"</script> |
61 | 61 |
|
62 |
| - <!-- ga --> |
63 |
| - <script> |
64 |
| - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
65 |
| - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
66 |
| - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
67 |
| - })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
| 62 | + <!-- ga --> |
| 63 | + <script> |
| 64 | + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 65 | + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 66 | + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 67 | + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
68 | 68 |
|
69 |
| - ga('create', '<%- theme.google_analytics %>', '<%- theme.root_domain %>'); |
70 |
| - ga('send', 'pageview'); |
71 |
| - </script> |
72 |
| - </head> |
73 |
| - <body class="<%- isIndex ? '' : 'docs' -%>"> |
74 |
| - <div id="mobile-bar" <%- isIndex ? 'class="top"' : '' %>> |
75 |
| - <a class="menu-button"></a> |
76 |
| - <a class="logo" href="/"></a> |
77 |
| - </div> |
78 |
| - <%- partial('partials/header') %> |
79 |
| - <% if (!isIndex) { %> |
80 |
| - <div id="main" class="fix-sidebar"> |
81 |
| - <% if (page.blog_index) { %> |
82 |
| - <%- partial('partials/blog') %> |
83 |
| - <% } else { %> |
84 |
| - <%- body %> |
85 |
| - <% } %> |
86 |
| - </div> |
87 |
| - <script src="<%- url_for("/js/smooth-scroll.min.js") %>"></script> |
| 69 | + ga('create', '<%- theme.google_analytics %>', '<%- theme.root_domain %>'); |
| 70 | + ga('send', 'pageview'); |
| 71 | + </script> |
| 72 | + </head> |
| 73 | + <body class="<%- isIndex ? '' : 'docs' -%>"> |
| 74 | + <div id="mobile-bar" <%- isIndex ? 'class="top"' : '' %>> |
| 75 | + <a class="menu-button"></a> |
| 76 | + <a class="logo" href="/"></a> |
| 77 | + </div> |
| 78 | + <%- partial('partials/header') %> |
| 79 | + <% if (!isIndex) { %> |
| 80 | + <div id="main" class="fix-sidebar"> |
| 81 | + <% if (page.blog_index) { %> |
| 82 | + <%- partial('partials/blog') %> |
88 | 83 | <% } else { %>
|
89 |
| - <%- body %> |
| 84 | + <%- body %> |
90 | 85 | <% } %>
|
| 86 | + </div> |
| 87 | + <script src="<%- url_for("/js/smooth-scroll.min.js") %>"></script> |
| 88 | + <% } else { %> |
| 89 | + <%- body %> |
| 90 | + <% } %> |
91 | 91 |
|
92 |
| - <!-- main custom script for sidebars, version selects etc. --> |
93 |
| - <script src="<%- url_for("/js/css.escape.js") %>"></script> |
94 |
| - <script src="<%- url_for("/js/common.js") %>"></script> |
| 92 | + <!-- main custom script for sidebars, version selects etc. --> |
| 93 | + <script src="<%- url_for("/js/css.escape.js") %>"></script> |
| 94 | + <script src="<%- url_for("/js/common.js") %>"></script> |
95 | 95 |
|
96 |
| - <!-- search --> |
97 |
| - <link href="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" rel='stylesheet' type='text/css'> |
98 |
| - <%- css('css/search') %> |
99 |
| - <script src="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script> |
100 |
| - <script> |
101 |
| - [ |
102 |
| - '#search-query-nav', |
103 |
| - '#search-query-sidebar', |
104 |
| - '#search-query-menu' |
105 |
| - ].forEach(function (selector) { |
106 |
| - if (!document.querySelector(selector)) return |
107 |
| - // search index defaults to v2 |
108 |
| - var match = window.location.pathname.match(/^\/(v\d+)/) |
109 |
| - var version = match ? match[1] : 'v2' |
110 |
| - docsearch({ |
111 |
| - appId: 'BH4D9OD16A', |
112 |
| - apiKey: '0a75952972806d9ad07e387d08e9cc4c', |
113 |
| - indexName: 'vuejs_jp', |
114 |
| - inputSelector: selector, |
115 |
| - algoliaOptions: { facetFilters: ["version:" + version] } |
116 |
| - }) |
117 |
| - }) |
118 |
| - </script> |
| 96 | + <!-- search --> |
| 97 | + <link href="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" rel='stylesheet' type='text/css'> |
| 98 | + <%- css('css/search') %> |
| 99 | + <script src="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script> |
| 100 | + <script> |
| 101 | + [ |
| 102 | + '#search-query-nav', |
| 103 | + '#search-query-sidebar', |
| 104 | + '#search-query-menu' |
| 105 | + ].forEach(function (selector) { |
| 106 | + if (!document.querySelector(selector)) return |
| 107 | + // search index defaults to v2 |
| 108 | + var match = window.location.pathname.match(/^\/(v\d+)/) |
| 109 | + var version = match ? match[1] : 'v2' |
| 110 | + docsearch({ |
| 111 | + appId: 'BH4D9OD16A', |
| 112 | + apiKey: '0a75952972806d9ad07e387d08e9cc4c', |
| 113 | + indexName: 'vuejs_jp', |
| 114 | + inputSelector: selector, |
| 115 | + algoliaOptions: { facetFilters: ["version:" + version] } |
| 116 | + }) |
| 117 | + }) |
| 118 | + </script> |
119 | 119 |
|
120 |
| - <!-- fastclick --> |
121 |
| - <script src="//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js"></script> |
122 |
| - <script> |
123 |
| - document.addEventListener('DOMContentLoaded', function() { |
124 |
| - FastClick.attach(document.body); |
125 |
| - }, false); |
126 |
| - </script> |
127 |
| - </body> |
| 120 | + <!-- fastclick --> |
| 121 | + <script src="//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js"></script> |
| 122 | + <script> |
| 123 | + document.addEventListener('DOMContentLoaded', function() { |
| 124 | + FastClick.attach(document.body) |
| 125 | + }, false) |
| 126 | + </script> |
| 127 | + </body> |
128 | 128 | </html>
|
0 commit comments