8000 Added favicon, meta tags, and GA · saknarak/nativescript-vue@b8aed2e · GitHub
[go: up one dir, main page]

Skip to content

Commit b8aed2e

Browse files
committed
Added favicon, meta tags, and GA
1 parent ff42a03 commit b8aed2e

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

docs/favicon.ico

1.12 KB
Binary file not shown.

docs/index.html

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
66
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
7-
<title>NativeScript Vue Documentation</title>
8-
<link rel="stylesheet" href="https://unpkg.com/docute@3/dist/docute.css">
7+
<title>{N}-Vue</title>
8+
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
9+
<link rel="icon" href="/favicon.ico" type="image/x-icon">
10+
<meta name="description" content="NativeScript-Vue - an open-source plugin for using Vue.js to build native mobile applications in NativeScript.">
911

12+
<link rel="stylesheet" href="https://unpkg.com/docute@3/dist/docute.css">
1013
<style>
1114
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');
1215

@@ -132,5 +135,20 @@ <h1>{N}-Vue</h1>
132135
],
133136
})
134137
</script>
138+
<script>
139+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
140+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
141+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
142+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
143+
144+
ga('create', 'UA-106632905-1', 'auto');
145+
ga('send', 'pageview');
146+
147+
docute.router.affterEach((to) => {
148+
ga('set', 'page', to.fullPath)
149+
ga('send', 'pageview')
150+
})
151+
152+
</script>
135153
</body>
136154
</html>

0 commit comments

Comments
 (0)
0