hanuman 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -21
- data/README.md +175 -173
- data/_data/authors.yml +16 -0
- data/_data/navigation.yml +4 -4
- data/_includes/analytics.html +15 -15
- data/_includes/footer.html +65 -65
- data/_includes/head.html +68 -68
- data/_includes/header.html +58 -58
- data/_includes/metadata.json +30 -30
- data/_includes/styles.scss +727 -727
- data/_layouts/default.html +13 -13
- data/_layouts/page.html +16 -16
- data/_layouts/post.html +157 -153
- data/_sass/_syntax-highlighting.scss +65 -65
- data/_sass/bourbon/_bourbon-deprecated-upcoming.scss +8 -8
- data/_sass/bourbon/_bourbon.scss +79 -79
- data/_sass/bourbon/addons/_button.scss +374 -374
- data/_sass/bourbon/addons/_clearfix.scss +23 -23
- data/_sass/bourbon/addons/_directional-values.scss +111 -111
- data/_sass/bourbon/addons/_ellipsis.scss +7 -7
- data/_sass/bourbon/addons/_font-family.scss +5 -5
- data/_sass/bourbon/addons/_hide-text.scss +10 -10
- data/_sass/bourbon/addons/_html5-input-types.scss +86 -86
- data/_sass/bourbon/addons/_position.scss +32 -32
- data/_sass/bourbon/addons/_prefixer.scss +45 -45
- data/_sass/bourbon/addons/_retina-image.scss +31 -31
- data/_sass/bourbon/addons/_size.scss +16 -16
- data/_sass/bourbon/addons/_timing-functions.scss +32 -32
- data/_sass/bourbon/addons/_triangle.scss +83 -83
- data/_sass/bourbon/addons/_word-wrap.scss +8 -8
- data/_sass/bourbon/css3/_animation.scss +52 -52
- data/_sass/bourbon/css3/_appearance.scss +3 -3
- data/_sass/bourbon/css3/_backface-visibility.scss +6 -6
- data/_sass/bourbon/css3/_background-image.scss +42 -42
- data/_sass/bourbon/css3/_background.scss +55 -55
- data/_sass/bourbon/css3/_border-image.scss +59 -59
- data/_sass/bourbon/css3/_border-radius.scss +22 -22
- data/_sass/bourbon/css3/_box-sizing.scss +4 -4
- data/_sass/bourbon/css3/_calc.scss +4 -4
- data/_sass/bourbon/css3/_columns.scss +47 -47
- data/_sass/bourbon/css3/_filter.scss +5 -5
- data/_sass/bourbon/css3/_flex-box.scss +321 -321
- data/_sass/bourbon/css3/_font-face.scss +23 -23
- data/_sass/bourbon/css3/_font-feature-settings.scss +9 -9
- data/_sass/bourbon/css3/_hidpi-media-query.scss +10 -10
- data/_sass/bourbon/css3/_hyphens.scss +3 -3
- data/_sass/bourbon/css3/_image-rendering.scss +14 -14
- data/_sass/bourbon/css3/_keyframes.scss +35 -35
- data/_sass/bourbon/css3/_linear-gradient.scss +38 -38
- data/_sass/bourbon/css3/_perspective.scss +8 -8
- data/_sass/bourbon/css3/_placeholder.scss +8 -8
- data/_sass/bourbon/css3/_radial-gradient.scss +39 -39
- data/_sass/bourbon/css3/_transform.scss +15 -15
- data/_sass/bourbon/css3/_transition.scss +77 -77
- data/_sass/bourbon/css3/_user-select.scss +3 -3
- data/_sass/bourbon/functions/_assign.scss +10 -10
- data/_sass/bourbon/functions/_color-lightness.scss +13 -13
- data/_sass/bourbon/functions/_flex-grid.scss +38 -38
- data/_sass/bourbon/functions/_golden-ratio.scss +3 -3
- data/_sass/bourbon/functions/_grid-width.scss +13 -13
- data/_sass/bourbon/functions/_modular-scale.scss +66 -66
- data/_sass/bourbon/functions/_px-to-em.scss +13 -13
- data/_sass/bourbon/functions/_px-to-rem.scss +15 -15
- data/_sass/bourbon/functions/_strip-units.scss +5 -5
- data/_sass/bourbon/functions/_tint-shade.scss +9 -9
- data/_sass/bourbon/functions/_transition-property-name.scss +21 -21
- data/_sass/bourbon/functions/_unpack.scss +17 -17
- data/_sass/bourbon/helpers/_convert-units.scss +15 -15
- data/_sass/bourbon/helpers/_gradient-positions-parser.scss +13 -13
- data/_sass/bourbon/helpers/_is-num.scss +8 -8
- data/_sass/bourbon/helpers/_linear-angle-parser.scss +25 -25
- data/_sass/bourbon/helpers/_linear-gradient-parser.scss +41 -41
- data/_sass/bourbon/helpers/_linear-positions-parser.scss +61 -61
- data/_sass/bourbon/helpers/_linear-side-corner-parser.scss +31 -31
- data/_sass/bourbon/helpers/_radial-arg-parser.scss +69 -69
- data/_sass/bourbon/helpers/_radial-gradient-parser.scss +50 -50
- data/_sass/bourbon/helpers/_radial-positions-parser.scss +18 -18
- data/_sass/bourbon/helpers/_render-gradients.scss +26 -26
- data/_sass/bourbon/helpers/_shape-size-stripper.scss +10 -10
- data/_sass/bourbon/helpers/_str-to-num.scss +50 -50
- data/_sass/bourbon/settings/_asset-pipeline.scss +1 -1
- data/_sass/bourbon/settings/_prefixer.scss +6 -6
- data/_sass/bourbon/settings/_px-to-em.scss +1 -1
- metadata +4 -4
- data/_data/author.yml +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67c57a25d98697786afd5ea633fc75668c589423
|
4
|
+
data.tar.gz: 13f2950793be07b7f04f120f7297d14f067a1cd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0029fafba0ffa1f411e6b01ba5893018ff608bbffbf4587b480969f2257b0af50db5b9519eff3dafd10925c1d327309cc81d591b6b01ddbd1b02b367de494333'
|
7
|
+
data.tar.gz: def2e19bc9819d4f522f008fe18b7ebaa2055378ff4421dfc88b99498979aa5a4999b85a772280ab441936b1d05d4f84c9d1cf2753eaabd85eddaf124b49ccc0
|
data/LICENSE.txt
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2017 Samanyou Garg
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Samanyou Garg
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,173 +1,175 @@
|
|
1
|
-
# HANUMAN Jekyll Theme
|
2
|
-
|
3
|
-
[![Build Status](https://travis-ci.org/samanyougarg/hanuman.svg?branch=master)](https://travis-ci.org/samanyougarg/hanuman)
|
4
|
-
|
5
|
-
Hanuman is a minimal yet powerful Jekyll theme for your blogs and websites.
|
6
|
-
|
7
|
-
It is built using the open source [AMP Start framework](https://www.ampstart.com/) and can be customized as per your requirements.
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
-
|
19
|
-
-
|
20
|
-
-
|
21
|
-
-
|
22
|
-
-
|
23
|
-
-
|
24
|
-
-
|
25
|
-
-
|
26
|
-
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
-
|
53
|
-
|
54
|
-
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
```
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
```
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
You
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
1
|
+
# HANUMAN Jekyll Theme
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/samanyougarg/hanuman.svg?branch=master)](https://travis-ci.org/samanyougarg/hanuman)
|
4
|
+
|
5
|
+
Hanuman is a minimal yet powerful Jekyll theme for your blogs and websites.
|
6
|
+
|
7
|
+
It is built using the open source [AMP Start framework](https://www.ampstart.com/) and can be customized as per your requirements.
|
8
|
+
|
9
|
+
<a href="https://www.buymeacoffee.com/samanyougarg"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" target="_blank"></a>
|
10
|
+
|
11
|
+
## Live Demo
|
12
|
+
## [Hanuman](https://samanyougarg.com/hanuman)
|
13
|
+
![Hanuman](/Screenshots/hanuman.jpg "Hanuman Preview")
|
14
|
+
|
15
|
+
|
16
|
+
## Features
|
17
|
+
|
18
|
+
- Minimal
|
19
|
+
- Responsive
|
20
|
+
- Syntax Highlighting for code
|
21
|
+
- Cover Images for homepage and blog posts
|
22
|
+
- Social Sharing
|
23
|
+
- Simple Navigation Menu
|
24
|
+
- Pagination
|
25
|
+
- Google Analytics
|
26
|
+
- Can be easily installed via "theme gem"
|
27
|
+
- Github Pages support
|
28
|
+
- Easily Customisable
|
29
|
+
|
30
|
+
## What is AMP
|
31
|
+
|
32
|
+
AMP stands for [Accelerated Mobile Pages](https://www.ampproject.org/), a Google-backed project designed as an open standard for any publisher to have pages load quickly on mobile devices.
|
33
|
+
|
34
|
+
## Installation
|
35
|
+
|
36
|
+
There are different ways to install the theme -
|
37
|
+
|
38
|
+
### 1. Cloning the repository and updating settings
|
39
|
+
1. Fork this repository and clone the forked repository.
|
40
|
+
2. Update the _config.yml file as per your requirements.
|
41
|
+
3. Add your posts to the _posts directory.
|
42
|
+
4. Deploy to Github Pages or your own server.
|
43
|
+
|
44
|
+
#### Deploying to Github Pages
|
45
|
+
**Method 1**
|
46
|
+
|
47
|
+
Push the contents of the destination folder (mentioned in _config.yml. eg - destination: ../hanuman-pages/) to the gh-pages branch(if project page) or master branch(if user page) of your repository.
|
48
|
+
|
49
|
+
**Method 2**
|
50
|
+
|
51
|
+
- Set up travis-ci for your fork.
|
52
|
+
- Generate your secure token with the travis gem:
|
53
|
+
Run `gem install travis` on your terminal.
|
54
|
+
- Grab the GH_TOKEN from https://github.com/settings/tokens
|
55
|
+
- Then run `travis encrypt 'GIT_NAME="YOUR_USERNAME" GIT_EMAIL="YOUR_EMAIL" GH_TOKEN=YOUR_TOKEN'`
|
56
|
+
- Add the token to your .travis.yml file.
|
57
|
+
Now you just need to push the files. Travis will generate the HTML files and automatically push them to your gh-pages branch.
|
58
|
+
This is the setup I am using.
|
59
|
+
|
60
|
+
### 2. Ruby Gem Method
|
61
|
+
Add this line to your Jekyll site's `Gemfile`:
|
62
|
+
|
63
|
+
```ruby
|
64
|
+
gem "hanuman"
|
65
|
+
```
|
66
|
+
|
67
|
+
And add this line to your Jekyll site's `_config.yml`:
|
68
|
+
|
69
|
+
```yaml
|
70
|
+
theme: hanuman
|
71
|
+
```
|
72
|
+
|
73
|
+
And then execute:
|
74
|
+
|
75
|
+
$ bundle
|
76
|
+
|
77
|
+
Or install it yourself as:
|
78
|
+
|
79
|
+
$ gem install hanuman
|
80
|
+
|
81
|
+
You'll also need to copy or create the _config.yml file just like in this repository. Similarly, you'll need to have a navigation.yml and author.yml in your _data directory.
|
82
|
+
|
83
|
+
#### Deploying to Github Pages
|
84
|
+
Run `bundle exec jekyll serve` inside your cloned repository. Push the contents of the resulting _site to your Github Pages repository.
|
85
|
+
|
86
|
+
|
87
|
+
### 3. Jekyll Remote Theme
|
88
|
+
1. Create or update your Gemfile with the following -
|
89
|
+
|
90
|
+
```ruby
|
91
|
+
source "https://rubygems.org"
|
92
|
+
gem "github-pages", group: :jekyll_plugins
|
93
|
+
gem "jekyll-remote-theme"
|
94
|
+
```
|
95
|
+
|
96
|
+
2. Update the bundled gems using `bundle` command.
|
97
|
+
|
98
|
+
3. Add `remote_theme: "hanuman"` to your `_config.yml`.
|
99
|
+
|
100
|
+
4. Add `jekyll-remote-theme` to the plugins array of your `_config.yml` -
|
101
|
+
|
102
|
+
```yaml
|
103
|
+
plugins:
|
104
|
+
- jekyll-remote-theme
|
105
|
+
```
|
106
|
+
|
107
|
+
## Usage
|
108
|
+
|
109
|
+
### _config.yml
|
110
|
+
Update _config.yml with your respective settings like updating your site's name, description etc...
|
111
|
+
|
112
|
+
### Styling
|
113
|
+
AMP has a limitation that you can only use inline css.
|
114
|
+
All the CSS for this theme is in the styles.scss file in the includes directory.
|
115
|
+
|
116
|
+
#### Changing the Default Color
|
117
|
+
In the styles.scss file in the includes directory, you can change the hex value of $theme-color to the color you would like your site to use.
|
118
|
+
|
119
|
+
### Author Information
|
120
|
+
Author information is present in the author.yml file in the _data folder. You can update the fields of that file as per your requirements.
|
121
|
+
|
122
|
+
### Sidenav
|
123
|
+
Sidenav can be updated from the navigation.yml file in the _data folder.
|
124
|
+
|
125
|
+
## Writing Posts
|
126
|
+
You can write posts just as you would in Jekyll, the only difference being that AMP has some strict guidelines on including external content.
|
127
|
+
|
128
|
+
You cannot use Markdown format or normal HTML tags. AMP provides its own custom tags for images, videos etc...
|
129
|
+
|
130
|
+
### Examples -
|
131
|
+
|
132
|
+
**Images**
|
133
|
+
`<amp-img src="welcome.jpg" alt="Welcome" height="400" width="800"></amp-img>`
|
134
|
+
|
135
|
+
**Videos**
|
136
|
+
`<amp-youtube data-videoid="mGENRKrdoGY" layout="responsive" width="480" height="270"></amp-youtube>`
|
137
|
+
|
138
|
+
[See Full AMP Documentation.](https://www.ampproject.org/docs/)
|
139
|
+
|
140
|
+
### Using AMP Components
|
141
|
+
Some AMP components require you to specify external scripts before using them.
|
142
|
+
You can specify these scripts in the head.html file in the includes directory after the already imported scripts and then use these components in any post.
|
143
|
+
|
144
|
+
## Validating your page with AMP
|
145
|
+
AMP provides built-in validator to validate your pages so that they can rendered quickly.
|
146
|
+
|
147
|
+
You can access this validator by opening the Developer Console in your browser and adding #development=1 to any url of your site.
|
148
|
+
|
149
|
+
Example -
|
150
|
+
http://localhost:4000/#development=1
|
151
|
+
|
152
|
+
If you have errors on your page, AMP will list those for you in the console. If you do not have any errors, you'll get a message "AMP Validation Successful" on your console.
|
153
|
+
|
154
|
+
## Enabling Google Analytics
|
155
|
+
1. Set up your Analytics Tracking ID in _config.yml.
|
156
|
+
2. Remove {% comment %} and {% endcomment %} tags in the default.html file in layouts directory.
|
157
|
+
|
158
|
+
## Contributing
|
159
|
+
|
160
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/samanyougarg/hanuman. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
161
|
+
|
162
|
+
To submit a pull request -
|
163
|
+
|
164
|
+
1. Fork/clone the repository.
|
165
|
+
2. Develop.
|
166
|
+
3. Create a new branch from the master branch.
|
167
|
+
4. Open a pull request on Github describing what was fixed or added.
|
168
|
+
|
169
|
+
## Thanks
|
170
|
+
Hanuman is based on [amplify](https://github.com/ageitgey/amplify) jekyll theme. Thank You.
|
171
|
+
|
172
|
+
## License
|
173
|
+
|
174
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
175
|
+
|
data/_data/authors.yml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
hanuman:
|
2
|
+
username: hanuman
|
3
|
+
name: HANUMAN
|
4
|
+
location: Ayodhya
|
5
|
+
url_full: https://hanumanchalisa.net
|
6
|
+
url: hanumanchalisa.net
|
7
|
+
bio: Jai Shri Ram!
|
8
|
+
assets: assets/images/hanuman.png
|
9
|
+
krishna:
|
10
|
+
username: krishna
|
11
|
+
name: KRISHNA
|
12
|
+
location: Vrindavan
|
13
|
+
url_full: https://shriradhakrishna.com
|
14
|
+
url: shriradhakrishna.com
|
15
|
+
bio: Radhe! Radhe!
|
16
|
+
assets: assets/images/favicon.png
|
data/_data/navigation.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
- title: Home
|
2
|
-
url:
|
3
|
-
|
4
|
-
- title: About
|
1
|
+
- title: Home
|
2
|
+
url:
|
3
|
+
|
4
|
+
- title: About
|
5
5
|
url: about
|
data/_includes/analytics.html
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
<amp-analytics type="googleanalytics" id="amp-analytics">
|
2
|
-
<script type="application/json">
|
3
|
-
{
|
4
|
-
"vars": {
|
5
|
-
"account": "{{ site.analytics_id }}"
|
6
|
-
},
|
7
|
-
"triggers": {
|
8
|
-
"trackPageview": {
|
9
|
-
"on": "visible",
|
10
|
-
"request": "pageview"
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}
|
14
|
-
</script>
|
15
|
-
</amp-analytics>
|
1
|
+
<amp-analytics type="googleanalytics" id="amp-analytics">
|
2
|
+
<script type="application/json">
|
3
|
+
{
|
4
|
+
"vars": {
|
5
|
+
"account": "{{ site.analytics_id }}"
|
6
|
+
},
|
7
|
+
"triggers": {
|
8
|
+
"trackPageview": {
|
9
|
+
"on": "visible",
|
10
|
+
"request": "pageview"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
</script>
|
15
|
+
</amp-analytics>
|