jekyll-material-theme 0.5.2 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6f6addee3ddd5667332eb319a90edc83ed53084
4
- data.tar.gz: 0360cd8ee3c337ce047a758a9991d49d331ff72b
3
+ metadata.gz: 984ed8c7d84326b87c845dbc7887a12d4d583f07
4
+ data.tar.gz: 7f2b0a627f199b988df66c6e731b8fa6fe367fd0
5
5
  SHA512:
6
- metadata.gz: d8f1097a9f05ade8f5d5611e132e8f6c7f9138650b3af808b29f3a7237d8a74281fa727526ce8b6c4d11485775967bd7775a0b92e8029550f9289964eaa237eb
7
- data.tar.gz: 8096707e0a7a0d718b5f2018120938b9a3c14ef3ec4603e8c7096b7142252a0814d1b32d805bc5b461088b27c81db12f0c5b79bb602793f28e6fa17a1bc9beda
6
+ metadata.gz: eb095731084ce0d98fb7d1d93117b123eb7f95b0424bd86d1b841b63ac6b7ba217cd10dde9ae69126c8e4b19462c575d19ebedc408e747caf2cc06fdcca72968
7
+ data.tar.gz: d05dd87497f3a9b36b4fc403035b5af264de40d00e8cce3234ccb449b6418aa3b85a9a85802e415c98b57be5bfbbb349072e20eab2cbe60a9571c23e912b2f82
data/README.md CHANGED
@@ -208,6 +208,8 @@ medium: https://medium.com
208
208
  baseurl: # If your site is located at /blog or /home, change it here, otherwise leave it empty
209
209
  url: http://localhost:4000/ # The URL of your site
210
210
 
211
+ # Google tracking, if both are filled, tag manager will prevail. Set up GA through GTM in that case
212
+ tag_manager_id: # This looks something like GTM-XXXXXXX
211
213
  google_analytics_tracking_id: # This looks something like UA-000000000-0 Head over to https://analytics.google.com/ to setup.
212
214
 
213
215
  cookie_accept_message: Thanks! # The pop-up dialog that appears after accepting the cookie notice.
@@ -230,7 +232,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/jamesh
230
232
 
231
233
  ## Development
232
234
 
233
- To set up your environment to develop and further customise this theme, fork the repo and explore the ```_assets``` directory, which includes all the ```css, js``` and ```font``` folders. If you're adding a feature, please add some tests in the ```spec``` directory to ensure everyhting works as intended.
235
+ To set up your environment to develop and further customise this theme, fork the repo and explore the ```_assets``` directory, which includes all the ```css, js``` and ```font``` folders. If you're adding a feature, please add some tests in the ```spec``` directory to ensure everyhting works as intended.
234
236
 
235
237
  ## Contributors
236
238
 
@@ -3,6 +3,9 @@ name: Your Name
3
3
  email: your-email@example.com
4
4
  description: Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
5
5
 
6
+ baseurl: "/blog"
7
+ url: ""
8
+
6
9
  parallax_image_one: assets/images/startup3.jpg # These are the images used for the parallax background
7
10
  parallax_image_two: assets/images/startup3.jpg
8
11
 
@@ -147,6 +150,8 @@ medium: https://medium.com
147
150
  baseurl: # if your site is located at /blog or /home, enter it here, otherwise leave it empty
148
151
  url: http://localhost:4000/ #the url of your site
149
152
 
153
+ # Google tracking, if both are filled, tag manager will prevail. Set up GA through GTM in that case
154
+ tag_manager_id: # This looks something like GTM-XXXXXXX
150
155
  google_analytics_tracking_id: # This looks something like UA-000000000-0 Head over to https://analytics.google.com/ to setup.
151
156
 
152
157
  cookies_banner: show # The value "show" will show the cookies banner, the value "none" will hide the banner.
@@ -1,9 +1,11 @@
1
- <!-- Global site tag (gtag.js) - Google Analytics -->
2
- <script async src="https://www.googletagmanager.com/gtag/js?id={{site.google_analytics_tracking_id}}"></script>
1
+ <!-- Google Analytics -->
3
2
  <script>
4
- window.dataLayer = window.dataLayer || [];
5
- function gtag(){dataLayer.push(arguments);}
6
- gtag('js', new Date());
7
-
8
- gtag('config', '{{site.google_analytics_tracking_id}}');
9
- </script>
3
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
7
+
8
+ ga('create', '{{ site.google_analytics_tracking_id }}', 'auto');
9
+ ga('send', 'pageview');
10
+ </script>
11
+ <!-- End Google Analytics -->
@@ -0,0 +1,8 @@
1
+ <!-- Google Tag Manager -->
2
+ <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
3
+ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
4
+ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
5
+ 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
6
+ })(window,document,'script','dataLayer','{{site.tag_manager_id}}');
7
+ </script>
8
+ <!-- End Google Tag Manager -->
@@ -1,6 +1,14 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
+ {% if jekyll.environment == 'production' %}
5
+ {% if site.tag_manager_id %}
6
+ {% include google_tag_manager.html %}
7
+ {% elsif site.google_analytics_tracking_id %}
8
+ {% include google_analytics.html %}
9
+ {% endif %}
10
+ {% endif %}
11
+
4
12
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
13
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
14
  <link rel="stylesheet" type="text/css" href="{{site.baseurl}}/assets/css/materialize.css">
@@ -9,10 +17,13 @@
9
17
  {% endif %}
10
18
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
11
19
  <link rel="stylesheet" href="https://cdn.rawgit.com/konpa/devicon/df6431e323547add1b4cf45992913f15286456d3/devicon.min.css">
12
- {% if site.google_analytics_tracking_id and jekyll.environment == 'production' %}
13
- {% include google_analytics.html %}
14
- {% endif %}
15
20
  <title>{{site.title}}</title>
16
-
17
21
  </head>
18
22
  <body>
23
+ {% if site.tag_manager_id and jekyll.environment == 'production' %}
24
+ <!-- Google Tag Manager (noscript) -->
25
+ <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{site.tag_manager_id}}"
26
+ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
27
+ <!-- End Google Tag Manager (noscript) -->
28
+ {% endif %}
29
+
@@ -4,7 +4,7 @@ layout: default
4
4
  <div class="container">
5
5
  <div class="col s10">
6
6
  <div class="row" style="padding:10px;">
7
- <a id="home" class="waves-effect waves-light btn white-text darken-2 grey z-depth-4" href="/#blog"><i class="material-icons">arrow_back</i></a>
7
+ <a id="home" class="waves-effect waves-light btn white-text darken-2 grey z-depth-4" href="{{site.baseurl}}/#blog"><i class="material-icons">arrow_back</i></a>
8
8
  </div>
9
9
  <h3 class="post-title" itemprop="name headline" style="text-align:center">{{ page.title | escape }}</h3>
10
10
 
@@ -1,3 +1,6 @@
1
+ ---
2
+ # Only the main Sass file needs front matter (the dashes are enough)
3
+ ---
1
4
  // Syntax highlighting sass properties and inclusion
2
5
  $base-font-size: 1em;
3
6
  $spacing-unit: 30px !default;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-material-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Hamann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-15 00:00:00.000000000 Z
11
+ date: 2018-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -165,6 +165,7 @@ files:
165
165
  - _includes/cookies.html
166
166
  - _includes/footer.html
167
167
  - _includes/google_analytics.html
168
+ - _includes/google_tag_manager.html
168
169
  - _includes/head.html
169
170
  - _includes/nav-bar.html
170
171
  - _includes/nav-burger.html