jekyll-theme-minimal 0.0.3 → 0.0.4

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: 8692a029ce329dc8b27629696c4157811d1e135c
4
- data.tar.gz: a9e97f758a6a90fb6f02ef562c3e80aa53611caf
3
+ metadata.gz: 5e85f0b91db3a3204e91e2ed9b0d481c3ff06863
4
+ data.tar.gz: 05eaa2b6fb3eb9d8d8b71db46829f7840f5800a1
5
5
  SHA512:
6
- metadata.gz: 169504a69b2ddcdbf3a150e0f1224beb7430e038ac26577c3d1005269d40a20929a6527e7999dbd6d4eb1c13abd224334ebd676e546e8f8f927499936f85f092
7
- data.tar.gz: a83dae012b276f3b851f754c1f59849bc66db3d678beb91ab39e6c82e6e458416dc3d3d5d99485fb4aa6caac66fd175ffc405b26b18995e7a01992122551dec9
6
+ metadata.gz: 4e2a7ce571728de92b23b9232582b5ecf55e1ebc90d7a525702f8b7bc3229557b633040e8c2b41c0d57b054e98eca63e3999d6e432648c1e905e3cdb8170abfc
7
+ data.tar.gz: 0ca1a285467e4c7ad630891ce9d032c1c5ee454b8602c0d300d03c1c75cb248c7151d9614126d95d13c750e794550d2bf3fa6cc23a080fd591878189267a3c64
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # The Minimal theme
2
2
 
3
- [![Build Status](https://travis-ci.org/pages-themes/jekyll-theme-minimal.svg?branch=master)](https://travis-ci.org/pages-themes/jekyll-theme-minimal) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-minimal.svg)](https://badge.fury.io/rb/jekyll-theme-minimal)
3
+ [![Build Status](https://travis-ci.org/pages-themes/minimal.svg?branch=master)](https://travis-ci.org/pages-themes/minimal) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-minimal.svg)](https://badge.fury.io/rb/jekyll-theme-minimal)
4
4
 
5
5
  *Minimal is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://pages-themes.github.io/minimal), or even [use it today](#usage).*
6
6
 
@@ -46,7 +46,7 @@ google_analytics: [Your Google Analytics tracking ID]
46
46
 
47
47
  If you'd like to add your own custom styles:
48
48
 
49
- 1. Create a file called `/assets/css/style.css` in your site
49
+ 1. Create a file called `/assets/css/style.scss` in your site
50
50
  2. Add the following content to the top of the file, exactly as shown:
51
51
  ```scss
52
52
  ---
@@ -67,7 +67,7 @@ If you'd like to change the theme's HTML layout:
67
67
 
68
68
  ## Roadmap
69
69
 
70
- See the [open issues](https://github.com/pagse-themes/minimal/issues) for a list of proposed features (and known issues).
70
+ See the [open issues](https://github.com/pages-themes/minimal/issues) for a list of proposed features (and known issues).
71
71
 
72
72
  ## Project philosophy
73
73
 
@@ -49,15 +49,14 @@
49
49
 
50
50
 
51
51
  {% if site.google_analytics %}
52
- <script type="text/javascript">
53
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
54
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
55
- </script>
56
- <script type="text/javascript">
57
- try {
58
- var pageTracker = _gat._getTracker("{{ site.google_analytics }}");
59
- pageTracker._trackPageview();
60
- } catch(err) {}
52
+ <script>
53
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
54
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
55
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
56
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
57
+
58
+ ga('create', '{{ site.google_analytics }}', 'auto');
59
+ ga('send', 'pageview');
61
60
  </script>
62
61
  {% endif %}
63
62
  </body>
@@ -1,17 +1,27 @@
1
- var metas = document.getElementsByTagName('meta');
2
- var i;
3
- if (navigator.userAgent.match(/iPhone/i)) {
4
- for (i=0; i<metas.length; i++) {
5
- if (metas[i].name == "viewport") {
6
- metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
1
+ (function(document) {
2
+ var metas = document.getElementsByTagName('meta'),
3
+ changeViewportContent = function(content) {
4
+ for (var i = 0; i < metas.length; i++) {
5
+ if (metas[i].name == "viewport") {
6
+ metas[i].content = content;
7
+ }
8
+ }
9
+ },
10
+ initialize = function() {
11
+ changeViewportContent("width=device-width, minimum-scale=1.0, maximum-scale=1.0");
12
+ },
13
+ gestureStart = function() {
14
+ changeViewportContent("width=device-width, minimum-scale=0.25, maximum-scale=1.6");
15
+ },
16
+ gestureEnd = function() {
17
+ initialize();
18
+ };
19
+
20
+
21
+ if (navigator.userAgent.match(/iPhone/i)) {
22
+ initialize();
23
+
24
+ document.addEventListener("touchstart", gestureStart, false);
25
+ document.addEventListener("touchend", gestureEnd, false);
7
26
  }
8
- }
9
- document.addEventListener("gesturestart", gestureStart, false);
10
- }
11
- function gestureStart() {
12
- for (i=0; i<metas.length; i++) {
13
- if (metas[i].name == "viewport") {
14
- metas[i].content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6";
15
- }
16
- }
17
- }
27
+ })(document);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-minimal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Smith
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-14 00:00:00.000000000 Z
12
+ date: 2017-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.5.2
83
+ rubygems_version: 2.6.11
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Minimal is a Jekyll theme for GitHub Pages