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 +4 -4
- data/README.md +3 -1
- data/_config.yml +5 -0
- data/_includes/google_analytics.html +10 -8
- data/_includes/google_tag_manager.html +8 -0
- data/_includes/head.html +15 -4
- data/_layouts/post.html +1 -1
- data/assets/main.scss +3 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 984ed8c7d84326b87c845dbc7887a12d4d583f07
|
4
|
+
data.tar.gz: 7f2b0a627f199b988df66c6e731b8fa6fe367fd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/_config.yml
CHANGED
@@ -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
|
-
<!--
|
2
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id={{site.google_analytics_tracking_id}}"></script>
|
1
|
+
<!-- Google Analytics -->
|
3
2
|
<script>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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 -->
|
data/_includes/head.html
CHANGED
@@ -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
|
+
|
data/_layouts/post.html
CHANGED
@@ -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
|
|
data/assets/main.scss
CHANGED
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.
|
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-
|
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
|