jekyll-theme-perry 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +29 -1
- data/_includes/foot-scripts.html +28 -8
- data/_layouts/location.html +9 -0
- data/_sass/abstracts/_mixins.scss +15 -0
- data/_sass/base/_base.scss +63 -0
- data/_sass/base/_typography.scss +5 -1
- data/_sass/components/_flickr-galleries.scss +22 -26
- data/_sass/theme/_footer.scss +8 -0
- data/assets/css/style.scss +0 -1
- metadata +3 -5
- data/_sass/theme/_base.scss +0 -52
- data/assets/images/header-wide.jpg +0 -0
- data/assets/images/header.jpg +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa83f7d953891d6a2c21f7172c7af9af8fe0cf1e
|
4
|
+
data.tar.gz: d3c3bcfe3677e3d838511a41f4235ceab0645819
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c82b070a32541a41f4a3d08fd3c4293642e774cf94c9180c17bb137df805cc5771389f9606b722a9f995257840a7a5f9666ff9cc4ce1dae79d7a16bcb0374e9d
|
7
|
+
data.tar.gz: fd85361a863f38e0d5d4b2dd414bb0f7f336b2d94c3842cff05b31557d8ad33a5e13bd3ad3622bd57357915744f021b6f17b941511b0ff8967f486545e5b9e09
|
data/README.md
CHANGED
@@ -168,6 +168,32 @@ to create a page to list all posts in the series in chronological order create a
|
|
168
168
|
line in the frontmatter and a layout of `series`. Post summaries for each post in the series will
|
169
169
|
then be included at the bottom of the page displayed with the oldest post first.
|
170
170
|
|
171
|
+
### Google Analytics
|
172
|
+
|
173
|
+
You can now make use of Google Analytics by including the following in your `_config.yml` file:
|
174
|
+
|
175
|
+
```yaml
|
176
|
+
google:
|
177
|
+
analytics: UA-XXXXXXXX-X
|
178
|
+
```
|
179
|
+
|
180
|
+
This will only be included in the site if you define the `JEKYLL_ENV` as `production` before
|
181
|
+
building your site. For more details, see the [Jekyll Website][env]
|
182
|
+
|
183
|
+
### Disqus Comments
|
184
|
+
|
185
|
+
Commenting is enabled on this site via [Disqus][dis]. Before you can use comments on your site, you
|
186
|
+
will need to sign up for a [Disqus][dis] account and then include your shortname in your
|
187
|
+
`_config.yml` file as follows:
|
188
|
+
|
189
|
+
```yaml
|
190
|
+
disqus:
|
191
|
+
shortname: xxxxxx
|
192
|
+
```
|
193
|
+
|
194
|
+
Again, this will only be included in the site if you define the `JEKYLL_ENV` as `production` before
|
195
|
+
building your site. For more details, see the [Jekyll Website][env]
|
196
|
+
|
171
197
|
## Contributing
|
172
198
|
|
173
199
|
Bug reports and pull requests are welcome on GitHub at
|
@@ -199,4 +225,6 @@ The theme is available as open source under the terms of the [MIT License][mit].
|
|
199
225
|
[red]: //github.com/jekyll/jekyll-redirect-from
|
200
226
|
[contrib]: //contributor-covenant.org
|
201
227
|
[mit]: //opensource.org/licenses/MIT
|
202
|
-
[ps]: #post-series
|
228
|
+
[ps]: #post-series
|
229
|
+
[env]: //jekyllrb.com/docs/configuration/#specifying-a-jekyll-environment-at-build-time
|
230
|
+
[dis]: //disqus.com
|
data/_includes/foot-scripts.html
CHANGED
@@ -1,12 +1,32 @@
|
|
1
|
+
{% if jekyll.environment == 'production' %}{% if page.comments and site.disqus.shortname %}{% capture identifier %}{% if page.wordpress_id %}{{ page.wordpress_id }}{% else %}{{ page.url }}{% endif %}{% endcapture %}<div id="disqus_thread"></div>
|
2
|
+
<script>
|
3
|
+
var disqus_config = function () {
|
4
|
+
this.page.url = {{site.url}}{{page.url}}; // Replace PAGE_URL with your page's canonical URL variable
|
5
|
+
this.page.identifier = {{ identifier }}; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
|
6
|
+
};
|
1
7
|
|
2
|
-
{
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
+
(function() { // REQUIRED CONFIGURATION VARIABLE: EDIT THE SHORTNAME BELOW
|
9
|
+
var d = document, s = d.createElement('script');
|
10
|
+
|
11
|
+
s.src = '//{{ site.disqus.shortname }}.disqus.com/embed.js'; // IMPORTANT: Replace EXAMPLE with your forum shortname!
|
12
|
+
|
13
|
+
s.setAttribute('data-timestamp', +new Date());
|
14
|
+
(d.head || d.body).appendChild(s);
|
15
|
+
})();
|
16
|
+
</script>
|
17
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
18
|
+
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>{% endif %}
|
19
|
+
{% if site.google.analytics %}<script>
|
20
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
21
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
22
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
23
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
24
|
+
|
25
|
+
ga('create', '{{site.google.analytics}}', 'auto');
|
26
|
+
ga('send', 'pageview');
|
27
|
+
|
28
|
+
</script>
|
29
|
+
{% endif %}{% endif %}
|
8
30
|
<script defer src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
|
9
|
-
<!-- <script>window.jQuery || document.write('<script src="/assets/scripts/vendor/jquery-1.10.1.min.js"><\/script>')</script> -->
|
10
|
-
<!--<script defer src="/assets/scripts/vendor/jquery.slicknav.min.js"></script> -->
|
11
31
|
<script defer src="/assets/scripts/vendor/jquery.colorbox.min.js"></script>
|
12
32
|
<script defer src="/assets/scripts/main.min.js"></script>
|
@@ -17,6 +17,21 @@
|
|
17
17
|
border-radius: $radius;
|
18
18
|
}
|
19
19
|
|
20
|
+
@mixin opacity($value){
|
21
|
+
$IEValue: $value*100;
|
22
|
+
opacity: $value;
|
23
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity="+$IEValue+")";
|
24
|
+
filter: alpha(opacity=$IEValue);
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin transition ($args...) {
|
28
|
+
-webkit-transition: $args;
|
29
|
+
-moz-transition: $args;
|
30
|
+
-ms-transition: $args;
|
31
|
+
-o-transition: $args;
|
32
|
+
transition: $args;
|
33
|
+
}
|
34
|
+
|
20
35
|
@mixin linear-gradient($first, $second, $third) {
|
21
36
|
background: -moz-linear-gradient(left, $first, $second, $third); /* FF3.6+ */
|
22
37
|
background: -webkit-gradient(linear, 0 0, 100% 0, from($first), to($third), color-stop(50%, $second)); /* Chrome,Safari4+ */
|
data/_sass/base/_base.scss
CHANGED
@@ -2,3 +2,66 @@
|
|
2
2
|
// Basic styles.
|
3
3
|
// -----------------------------------------------------------------------------
|
4
4
|
|
5
|
+
html {
|
6
|
+
@include box-sizing(border-box);
|
7
|
+
}
|
8
|
+
|
9
|
+
*,
|
10
|
+
*::before,
|
11
|
+
*::after {
|
12
|
+
box-sizing: inherit;
|
13
|
+
margin: 0;
|
14
|
+
}
|
15
|
+
|
16
|
+
a {
|
17
|
+
color: $colour-base;
|
18
|
+
text-decoration: none;
|
19
|
+
|
20
|
+
&:hover,
|
21
|
+
&:active, {
|
22
|
+
border-bottom: 1px solid $colour-highlight;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
body {
|
28
|
+
min-height: 100%;
|
29
|
+
padding: 0;
|
30
|
+
}
|
31
|
+
|
32
|
+
img {
|
33
|
+
max-width: 100%;
|
34
|
+
}
|
35
|
+
|
36
|
+
main,
|
37
|
+
aside[role='complementary'],
|
38
|
+
footer[role='contentinfo'] {
|
39
|
+
padding: 0 2em 2em;
|
40
|
+
}
|
41
|
+
|
42
|
+
figure {
|
43
|
+
background: rgba($colour-base, 0.25);
|
44
|
+
padding: 0.25em;
|
45
|
+
@include rounded();
|
46
|
+
img {
|
47
|
+
@include rounded(0.75em);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
table {
|
52
|
+
border-collapse: collapse;
|
53
|
+
margin: 0.625em 0;
|
54
|
+
th, td {
|
55
|
+
padding: 0.25em;
|
56
|
+
}
|
57
|
+
th {
|
58
|
+
background: $colour-base;
|
59
|
+
color: $colour-lightgrey;
|
60
|
+
}
|
61
|
+
tr:nth-child(even) {
|
62
|
+
background: rgba($colour-base, 0.25);
|
63
|
+
}
|
64
|
+
tr:nth-child(odd) {
|
65
|
+
background: rgba($colour-base, 0.1);
|
66
|
+
}
|
67
|
+
}
|
data/_sass/base/_typography.scss
CHANGED
@@ -13,33 +13,29 @@
|
|
13
13
|
span {
|
14
14
|
display: inline-block;
|
15
15
|
position: relative;
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
transition: opacity 0.2s ease-in-out;
|
30
|
-
&:hover {
|
31
|
-
opacity:1;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
&:hover .flickrlink {
|
35
|
-
display: block
|
16
|
+
}
|
17
|
+
.flickrlink {
|
18
|
+
display: none;
|
19
|
+
width: 2em;
|
20
|
+
height: 1em;
|
21
|
+
background: transparent url(/assets/images/flickr.png) no-repeat left top;
|
22
|
+
position: absolute;
|
23
|
+
right: 0.5em;
|
24
|
+
bottom: 0.9em;
|
25
|
+
@include opacity(0.5);
|
26
|
+
@include transition(opacity 0.2s ease-in-out);
|
27
|
+
&:hover {
|
28
|
+
@include opacity(1);
|
36
29
|
}
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
30
|
+
}
|
31
|
+
&:hover .flickrlink {
|
32
|
+
display: block
|
33
|
+
}
|
34
|
+
img {
|
35
|
+
max-width: 100%;
|
36
|
+
padding: 0.5em;
|
37
|
+
.summary & {
|
38
|
+
padding: 0.2em;
|
43
39
|
}
|
44
40
|
}
|
45
41
|
&.summary {
|
data/_sass/theme/_footer.scss
CHANGED
data/assets/css/style.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-perry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Perry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- _includes/summary.html
|
101
101
|
- _layouts/archive.html
|
102
102
|
- _layouts/default.html
|
103
|
+
- _layouts/location.html
|
103
104
|
- _layouts/page.html
|
104
105
|
- _layouts/post.html
|
105
106
|
- _layouts/redirect.html
|
@@ -114,7 +115,6 @@ files:
|
|
114
115
|
- _sass/components/_pagination.scss
|
115
116
|
- _sass/pages/_tags.scss
|
116
117
|
- _sass/theme/_article.scss
|
117
|
-
- _sass/theme/_base.scss
|
118
118
|
- _sass/theme/_footer.scss
|
119
119
|
- _sass/theme/_header.scss
|
120
120
|
- _sass/theme/_media-queries.scss
|
@@ -148,8 +148,6 @@ files:
|
|
148
148
|
- assets/images/border.png
|
149
149
|
- assets/images/controls.png
|
150
150
|
- assets/images/flickr.png
|
151
|
-
- assets/images/header-wide.jpg
|
152
|
-
- assets/images/header.jpg
|
153
151
|
- assets/images/loading.gif
|
154
152
|
- assets/images/octocat-icon.png
|
155
153
|
- assets/images/tar-gz-icon.png
|
data/_sass/theme/_base.scss
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
html {
|
2
|
-
@include box-sizing(border-box);
|
3
|
-
}
|
4
|
-
|
5
|
-
*,
|
6
|
-
*::before,
|
7
|
-
*::after {
|
8
|
-
box-sizing: inherit;
|
9
|
-
margin: 0;
|
10
|
-
}
|
11
|
-
|
12
|
-
a {
|
13
|
-
color: $colour-base;
|
14
|
-
text-decoration: none;
|
15
|
-
|
16
|
-
&:hover,
|
17
|
-
&:active, {
|
18
|
-
border-bottom: 1px solid $colour-highlight;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
|
23
|
-
body {
|
24
|
-
min-height: 100%;
|
25
|
-
padding: 0;
|
26
|
-
}
|
27
|
-
|
28
|
-
img {
|
29
|
-
max-width: 100%;
|
30
|
-
}
|
31
|
-
|
32
|
-
main,
|
33
|
-
aside[role='complementary'],
|
34
|
-
footer[role='contentinfo'] {
|
35
|
-
padding: 0 2em 2em;
|
36
|
-
}
|
37
|
-
|
38
|
-
table {
|
39
|
-
border-collapse: collapse;
|
40
|
-
margin: 0.625em 0;
|
41
|
-
th, td {
|
42
|
-
padding: 0.25em;
|
43
|
-
}
|
44
|
-
th {
|
45
|
-
background: $colour-base;
|
46
|
-
color: $colour-lightgrey;
|
47
|
-
}
|
48
|
-
td {
|
49
|
-
background: rgba($colour-base, 0.25);
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
Binary file
|
data/assets/images/header.jpg
DELETED
Binary file
|