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 +4 -4
- data/README.md +3 -3
- data/_layouts/default.html +8 -9
- data/assets/js/scale.fix.js +26 -16
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e85f0b91db3a3204e91e2ed9b0d481c3ff06863
|
4
|
+
data.tar.gz: 05eaa2b6fb3eb9d8d8b71db46829f7840f5800a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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.
|
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/
|
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
|
|
data/_layouts/default.html
CHANGED
@@ -49,15 +49,14 @@
|
|
49
49
|
|
50
50
|
|
51
51
|
{% if site.google_analytics %}
|
52
|
-
<script
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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>
|
data/assets/js/scale.fix.js
CHANGED
@@ -1,17 +1,27 @@
|
|
1
|
-
|
2
|
-
var
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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.
|
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:
|
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.
|
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
|