|
2 | 2 | <!DOCTYPE html>
|
3 | 3 | <html lang="zh-CN">
|
4 | 4 | <head>
|
5 |
| - <title><%- page.title ? page.title + ' - ' : '' %>Vue.js</title> |
| 5 | + <title><%- page.title ? page.title + ' — ' : '' %>Vue.js</title> |
6 | 6 | <meta charset="utf-8">
|
7 | 7 | <meta name="description" content="<%- theme.site_description %>">
|
8 | 8 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
| 9 | + |
9 | 10 | <meta property="og:type" content="article">
|
10 |
| - <meta property="og:title" content="<%- page.title ? page.title + ' - ' : '' %>vue.js"> |
| 11 | + <meta property="og:title" content="<%- page.title ? page.title + ' — ' : '' %>Vue.js"> |
11 | 12 | <meta property="og:description" content="<%- theme.site_description %>">
|
12 |
| - <meta property="og:image" content="https://<%- theme.root_domain %>/images/logo.png"> |
| 13 | + <meta property="og:image" content="https://<%- theme.root_domain %>/<%- url_for("/images/logo.png") %>"> |
13 | 14 |
|
14 | 15 | <meta name="twitter:card" content="summary">
|
15 |
| - <meta name="twitter:title" content="<%- page.title ? page.title + ' - ' : '' %>vue.js"> |
| 16 | + <meta name="twitter:title" content="<%- page.title ? page.title + ' — ' : '' %>Vue.js"> |
16 | 17 | <meta name="twitter:description" content="<%- theme.site_description %>">
|
17 | 18 | <meta name="twitter:image" content="https://<%- theme.root_domain %>/images/logo.png">
|
18 | 19 |
|
19 |
| - <link rel="icon" href="/images/logo.png" type="image/x-icon"> |
| 20 | + <link rel="apple-touch-icon" sizes="57x57" href="<%- url_for("/images/icons/apple-icon-57x57.png") %>"> |
| 21 | + <link rel="apple-touch-icon" sizes="60x60" href="<%- url_for("/images/icons/apple-icon-60x60.png") %>"> |
| 22 | + <link rel="apple-touch-icon" sizes="72x72" href="<%- url_for("/images/icons/apple-icon-72x72.png") %>"> |
| 23 | + <link rel="apple-touch-icon" sizes="76x76" href="<%- url_for("/images/icons/apple-icon-76x76.png") %>"> |
| 24 | + <link rel="apple-touch-icon" sizes="114x114" href="<%- url_for("/images/icons/apple-icon-114x114.png") %>"> |
| 25 | + <link rel="apple-touch-icon" sizes="120x120" href="<%- url_for("/images/icons/apple-icon-120x120.png") %>"> |
| 26 | + <link rel="apple-touch-icon" sizes="144x144" href="<%- url_for("/images/icons/apple-icon-144x144.png") %>"> |
| 27 | + <link rel="apple-touch-icon" sizes="152x152" href="<%- url_for("/images/icons/apple-icon-152x152.png") %>"> |
| 28 | + <link rel="apple-touch-icon" sizes="180x180" href="<%- url_for("/images/icons/apple-icon-180x180.png") %>"> |
| 29 | + <link rel="icon" type="image/png" sizes="192x192" href="<%- url_for("/images/icons/android-icon-192x192.png") %>"> |
| 30 | + <link rel="icon" type="image/png" sizes="32x32" href="<%- url_for("/images/icons/favicon-32x32.png") %>"> |
| 31 | + <link rel="icon" type="image/png" sizes="96x96" href="<%- url_for("/images/icons/favicon-96x96.png") %>"> |
| 32 | + <link rel="icon" type="image/png" sizes="16x16" href="<%- url_for("/images/icons/favicon-16x16.png") %>"> |
| 33 | + <meta name="msapplication-TileImage" content="/images/icons/ms-icon-144x144.png"> |
| 34 | + <link rel="icon" href="<%- url_for("/images/logo.png") %>" type="image/png"> |
| 35 | + |
| 36 | + <meta name="msapplication-TileColor" content="#4fc08d"> |
| 37 | + <meta name="theme-color" content="#4fc08d"> |
| 38 | + |
| 39 | + <meta name="msapplication-config" content="browserconfig.xml"> |
| 40 | + <link rel="manifest" href="/manifest.json"> |
20 | 41 |
|
21 | 42 | <!-- <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono' rel='stylesheet' type='text/css'> -->
|
| 43 | + <!-- <link href='//fonts.googleapis.com/css?family=Dosis:500&text=Vue.js' rel='stylesheet' type='text/css'> --> |
22 | 44 |
|
23 | 45 | <!-- main page styles -->
|
24 | 46 | <%- css(isIndex ? 'css/index' : 'css/page') %>
|
25 | 47 |
|
26 | 48 | <!-- this needs to be loaded before guide's inline scripts -->
|
27 |
| - <script src="/js/vue.js"></script> |
| 49 | + <script src="<%- url_for("/js/vue.js") %>"></script> |
28 | 50 | <script>window.PAGE_TYPE = "<%- page.type %>"</script>
|
| 51 | + |
| 52 | + <!-- ga --> |
| 53 | + <script> |
| 54 | + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 55 | + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 56 | + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 57 | + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
| 58 | +
|
| 59 | + ga('create', '<%- theme.google_analytics %>', '<%- theme.root_domain %>'); |
| 60 | + ga('send', 'pageview'); |
| 61 | + </script> |
29 | 62 | </head>
|
30 | 63 | <body class="<%- isIndex ? '' : 'docs' -%>">
|
31 | 64 | <div id="mobile-bar" <%- isIndex ? 'class="top"' : '' %>>
|
|
41 | 74 | <%- body %>
|
42 | 75 | <% } %>
|
43 | 76 | </div>
|
44 |
| - <script src="/js/smooth-scroll.min.js"></script> |
| 77 | + <script src="<%- url_for("/js/smooth-scroll.min.js") %>"></script> |
45 | 78 | <% } else { %>
|
46 | 79 | <%- body %>
|
47 | 80 | <% } %>
|
48 | 81 |
|
49 | 82 | <!-- main custom script for sidebars, version selects etc. -->
|
50 |
| - <script src="/js/common.js"></script> |
51 |
| - |
52 |
| - <!-- ga --> |
53 |
| - <script> |
54 |
| - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
55 |
| - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
56 |
| - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
57 |
| - })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
58 |
| -
|
59 |
| - ga('create', '<%- theme.google_analytics %>', '<%- theme.root_domain %>'); |
60 |
| - ga('send', 'pageview'); |
61 |
| - </script> |
| 83 | + <script src="<%- url_for("/js/css.escape.js") %>"></script> |
| 84 | + <script src="<%- url_for("/js/common.js") %>"></script> |
62 | 85 |
|
63 | 86 | <!-- search -->
|
64 | 87 | <link href="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" rel='stylesheet' type='text/css'>
|
|
67 | 90 | <script>
|
68 | 91 | [
|
69 | 92 | '#search-query-nav',
|
70 |
| - '#search-query-sidebar' |
| 93 | + '#search-query-sidebar', |
| 94 | + '#search-query-menu' |
71 | 95 | ].forEach(function (selector) {
|
72 | 96 | if (!document.querySelector(selector)) return
|
73 | 97 | // search index defaults to v2
|
|
0 commit comments