jekyll-theme-eva 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 449e894c55978de586a6a42649ff4d293170a87695151c8a0fddb6c1c8c44b58
4
- data.tar.gz: 46694a347aa4a8228da3ae2642ecc62d9e99d2ca4ce75275f70c90cb5b140aa5
3
+ metadata.gz: 2085febe4d7802c2b45df9180cf1f2b1d1d11fa53ad178b085d946974c7e923e
4
+ data.tar.gz: 6144647609d1e9adafa1ec985a326166bd91a3a7ff7916238b2bc55e7559d393
5
5
  SHA512:
6
- metadata.gz: c43b12462ad98e6bbde6c7d5185a173ef0cdb8f7fda23dfc5e7f04b6b268b1094c2c2108cb2153f93b30cc6e25d831d52ede6a7877cd616fe02a4779394c96e6
7
- data.tar.gz: d0e42a8ace55a559c5b27e7882148d13a934d341cab440a3c949d586d5550342ceda4c1bd44b9f8da3a4de33e0c1cd42d76e4710eafe70d6fd18539fe57e687e
6
+ metadata.gz: e5b90fbde385b68aec09b5ee065467ba31ddccefb356c2ec3d026f665de574013f697256d55d2359c4975721d3cfbd98aa1baa59d4e90044f2fc2c878c4a1d5c
7
+ data.tar.gz: 5c4cbc0a5fb8e12abe00533c05b45f3e416598d461a16bb19ed2659a5e4029c8ccbef034905f0abc1bab07b373616071050f56e2ea4c4fe12f9321f5dc069516
@@ -19,6 +19,7 @@ email: example@example.com
19
19
  # key: <crypto key>
20
20
 
21
21
  # google_site_verification: <string>
22
+ # google_analytics_code: <string>
22
23
 
23
24
  # Language in the format outlined here:
24
25
  # https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang
@@ -26,9 +26,26 @@
26
26
 
27
27
  {% include _icon_head_links.html %}
28
28
 
29
- {% comment %}Outdated browser detection & update prompt bootstrap{% endcomment %}
29
+ <script defer src="https://use.fontawesome.com/releases/v5.0.10/js/solid.js" integrity="sha384-Q7KAHqDd5trmfsv85beYZBsUmw0lsreFBQZfsEhzUtUn5HhpjVzwY0Aq4z8DY9sA" crossorigin="anonymous"></script>
30
+ <script defer src="https://use.fontawesome.com/releases/v5.0.10/js/brands.js" integrity="sha384-6jhVhr5a+Z1nLr9h+fd7ocMEo847wnGFelCHddaOOACUeZNoQwFXTxh4ysXVam8u" crossorigin="anonymous"></script>
31
+ <script defer src="https://use.fontawesome.com/releases/v5.0.10/js/fontawesome.js" integrity="sha384-M2FSA4xMm1G9m4CNXM49UcDHeWcDZNucAlz1WVHxohug0Uw1K+IpUhp/Wjg0y6qG" crossorigin="anonymous"></script>
32
+
33
+ <link href="https://fonts.googleapis.com/css?family=Barlow+Condensed" rel="stylesheet">
34
+
35
+ <link rel="stylesheet" href="{{ "assets/css/style.css" | relative_url }}">
36
+
37
+ {% if site.google_analytics_code %}
38
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics_code }}"></script>
39
+ {% endif %}
40
+
30
41
  <script>
31
42
  (function () {
43
+ {% comment %}
44
+ TODO: Move this to an external script parsed with Liquid
45
+ before assets are build
46
+ {% endcomment %}
47
+
48
+ {% comment %}Outdated browser detection & update prompt bootstrap{% endcomment %}
32
49
  function $buo_f() {
33
50
  var e = document.createElement("script");
34
51
  e.src = "{{ "assets/js/browser-update.js" | relative_url }}";
@@ -36,23 +53,18 @@
36
53
  };
37
54
  try {document.addEventListener("DOMContentLoaded", $buo_f, false)}
38
55
  catch(e) {window.attachEvent("onload", $buo_f)}
39
- }());
40
- </script>
41
56
 
42
- {% comment %}Email{% endcomment %}
43
- <script>
44
- (function () {
57
+ {% comment %}Email{% endcomment %}
58
+ {% if site.email_encoded and site.key %}
45
59
  window.emailc = '{{ site.email_encoded }}:{{ site.key }}';
60
+ {% endif %}
61
+
62
+ {% comment %}Google Analytics{% endcomment %}
63
+ {% if site.google_analytics_code %}
64
+ window.gaCode = '{{ site.google_analytics_code }}';
65
+ {% endif %}
46
66
  }());
47
67
  </script>
48
-
49
- <script defer src="https://use.fontawesome.com/releases/v5.0.10/js/solid.js" integrity="sha384-Q7KAHqDd5trmfsv85beYZBsUmw0lsreFBQZfsEhzUtUn5HhpjVzwY0Aq4z8DY9sA" crossorigin="anonymous"></script>
50
- <script defer src="https://use.fontawesome.com/releases/v5.0.10/js/brands.js" integrity="sha384-6jhVhr5a+Z1nLr9h+fd7ocMEo847wnGFelCHddaOOACUeZNoQwFXTxh4ysXVam8u" crossorigin="anonymous"></script>
51
- <script defer src="https://use.fontawesome.com/releases/v5.0.10/js/fontawesome.js" integrity="sha384-M2FSA4xMm1G9m4CNXM49UcDHeWcDZNucAlz1WVHxohug0Uw1K+IpUhp/Wjg0y6qG" crossorigin="anonymous"></script>
52
-
53
- <link href="https://fonts.googleapis.com/css?family=Barlow+Condensed" rel="stylesheet">
54
-
55
- <link rel="stylesheet" href="{{ "assets/css/style.css" | relative_url }}">
56
68
  </head>
57
69
 
58
70
  <body class="layout-{{ page.layout }} name-{{ page.about.name }}">
@@ -81,7 +81,9 @@ module Jekyll
81
81
  @name = "index.html"
82
82
 
83
83
  self.process(@name)
84
- self.read_yaml(File.join(base, "_layouts"), "album.html")
84
+
85
+ yaml_path = File.join(base, "_data", "albums", album_data["about"]["name"])
86
+ self.read_yaml(yaml_path, "about.yaml")
85
87
 
86
88
  self.data["layout"] = "album"
87
89
 
@@ -5,20 +5,28 @@ Jekyll::Hooks.register :site, :after_init do |site|
5
5
  system("npm init --yes")
6
6
  system("npm install webpack webpack-cli jquery")
7
7
  end
8
+
9
+ if site.theme
10
+ # If site.theme is empty, we’re in theme development mode
11
+ # and no need to copy
12
+
13
+ webpack_config = File.join(site.theme.root, 'webpack.config.js')
14
+ app = File.join(site.theme.root, 'app')
15
+
16
+ unless File.file?('webpack.config.js')
17
+ FileUtils.copy_entry(webpack_config, File.join(site.source, 'webpack.config.js'))
18
+ end
19
+ unless File.directory?('app')
20
+ FileUtils.copy_entry(app, File.join(site.source, 'app'))
21
+ end
22
+ end
8
23
  end
9
24
 
10
25
  Jekyll::Hooks.register :site, :post_write do |site|
11
26
  p "-- Eva: Building assets with Webpack…"
12
27
 
13
- if site.theme or site.config["theme_root"]
14
- theme_dir = site.config["theme_root"] || site.theme.root
15
- else
16
- theme_dir = site.source
17
- end
18
-
19
28
  out_assets_dir = File.join(site.config["destination"], 'assets')
20
- cfg_path = site.config["webpack_config"] || File.join(theme_dir, 'webpack.config.js')
21
- system("npx webpack --config #{cfg_path} --context #{theme_dir} --output-path #{out_assets_dir}")
29
+ system("npx webpack --output-path #{out_assets_dir}")
22
30
 
23
31
  p "-- Eva: Build complete"
24
32
  end
@@ -17,4 +17,11 @@ $(document).ready(() => {
17
17
  }
18
18
 
19
19
  initnav('body', 'a[href^="/"]');
20
+
21
+ if (window.gaCode) {
22
+ window.dataLayer = window.dataLayer || [];
23
+ const gtag = () => dataLayer.push(arguments);
24
+ gtag('js', new Date());
25
+ gtag('config', window.gaCode);
26
+ }
20
27
  });
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "jekyll-theme-eva"
5
- spec.version = "0.1.2"
5
+ spec.version = "0.1.3"
6
6
  spec.authors = ["Anton Strogonoff"]
7
7
  spec.email = ["anton@strogonoff.name"]
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-eva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Strogonoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-03 00:00:00.000000000 Z
11
+ date: 2018-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -99,9 +99,6 @@ files:
99
99
  - assets/js/browser-update-show.js
100
100
  - assets/js/browser-update.js
101
101
  - develop/release
102
- - favicon.png
103
- - favicon.svg
104
- - favicon@4x.png
105
102
  - index.md
106
103
  - jekyll-theme-eva.gemspec
107
104
  - webpack.config.js
Binary file
@@ -1,54 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="255.99" height="255.99" viewBox="0 0 1050 1050">
2
- <metadata><?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
3
- <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c138 79.159824, 2016/09/14-01:09:01 ">
4
- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
5
- <rdf:Description rdf:about=""/>
6
- </rdf:RDF>
7
- </x:xmpmeta>
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
- <?xpacket end="w"?></metadata>
30
- <defs>
31
- <style>
32
- .cls-1 {
33
- fill: #dfeafb;
34
- }
35
-
36
- .cls-1, .cls-2, .cls-3 {
37
- fill-rule: evenodd;
38
- }
39
-
40
- .cls-2 {
41
- fill: #c3d2da;
42
- }
43
-
44
- .cls-3 {
45
- fill: #8fa3bb;
46
- }
47
- </style>
48
- </defs>
49
- <path id="moon" class="cls-1" d="M360.554,470.372C432.111,526.48,521.424,562,661.353,546.2c67.786-7.656,183.133-32.828,216.969-98.775,27.188-52.989,65.79-142.9,43.389-228.19-13.9-52.92,123.819,115.931,126.859,289.282,2.11,119.662-62.4,310-253.029,418.212C632.481,1019.29,197.806,1036.5,69.1,753.934-25.34,546.6-6.328,377.587,36.333,247.651,69.931,145.321,243.965,7.1,193.078,83.984c-36.85,55.676,3.6,155,21.385,199.916C237.452,341.951,299.786,422.723,360.554,470.372Z"/>
50
- <path id="legs" class="cls-2" d="M296.963,655.074c0,43.542-6.322,89.983-3.331,133.509s71.788,47.8,56.016,1.234c-16.575-48.939-13.692-100.159-13.692-142.19S296.963,611.533,296.963,655.074Zm474.294,0c0,43.542,6.321,89.983,3.33,133.509s-71.788,47.8-56.015,1.234c16.574-48.939,13.691-100.159,13.691-142.19S771.257,611.533,771.257,655.074Z"/>
51
- <path id="wool" class="cls-3" d="M224.465,357.682c-92.265,13.954-80.223,144.487,8.788,149.9C156.007,573.033,238.264,654,288.775,619.566c-34.059,74.008,35.293,133.6,93.036,80.253C369.383,769.3,470.3,808.134,506.839,737.425c29.635,68.15,138.089,42.077,160.075-8.928,46.749,65.113,119.987-3.253,96.952-66.931,88.687,35.03,127.773-45.655,94.993-99.666,65.653-20.2,56.684-144.1-3.864-149.559,43.064-54.952-2.067-166.366-61.3-125.43,47.2-51.883-43.7-118.244-85.589-95.348,1.049-98.786-174.581-126.255-182.555-31.253-43.573-45.069-138.581-36.635-142.035,38.854C318.446,148.915,228.864,241.8,256.078,306.369,221.016,294.081,205.053,316.561,224.465,357.682Z"/>
52
- <path id="head" class="cls-2" d="M467.278,776.742c-18.7-31.053-55.653-85.506-42.527-142.3,22.474-97.235,197.559-97.235,220.033,0,13.126,56.792-23.827,111.245-42.527,142.3C572.031,826.934,497.5,826.934,467.278,776.742ZM414.328,599c-18.81,11.688-44.914,39.765-39.147,81.194,2.243,16.119,38.323-27.569,50.973-49C455.388,581.667,433.139,587.31,414.328,599Zm239.563,0c18.81,11.688,44.914,39.765,39.148,81.194-2.244,16.119-38.324-27.569-50.974-49C612.831,581.667,635.08,587.31,653.891,599Z"/>
53
- <path id="top_fluff" data-name="top fluff" class="cls-3" d="M439.285,604.953c-6.105,46.992,53.767,42.158,51.551,2.3,5.8,49.406,73.712,37.114,77.941,9.68,13.266,25.265,83.907,30.2,72.082-17.649,22.9,24.153,82.85-36.45,12-64.019-26.128-10.167-48.879-39.422-81.867-24.891-56.775,25.009-127.078-13.687-130.183,24.6C395.27,549.383,366.664,584,394.672,581.176,375.266,616.625,415.871,648.641,439.285,604.953Z"/>
54
- </svg>
Binary file