tale 0.1.5 → 0.2.1
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 +5 -5
- data/README.md +10 -0
- data/_includes/disqus_comments.html +11 -0
- data/_includes/navigation.html +2 -1
- data/_layouts/post.html +5 -2
- data/_sass/tale.scss +2 -0
- data/_sass/tale/_404.scss +22 -0
- data/_sass/tale/_catalogue.scss +1 -1
- data/_sass/tale/_tags.scss +89 -0
- data/_sass/tale/_variables.scss +14 -14
- data/assets/js/disqusLoader.js +10 -0
- metadata +17 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 655d15bb049ca6ef7b38a8e3db09e23660889250969ceaa7bba175a0d65ee260
|
4
|
+
data.tar.gz: b723f058fb374418a3d02401fa9be6a2a8b9b76e69b46b79c1adbfda021efa8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dac5296ef60c919f0909e3131b853157a303012ae2bc0cf18e9d9b36a1be62f5f3a98917e909b005ac2b9d497c12d1ebc270fc7bbd3bd7c9b010cbab16be733
|
7
|
+
data.tar.gz: 2c9717ebfd3c821438ea18026e7d54133fb5d55f9e110bf26a172057b30faf1fe31bd991e4bf9b5c6fa8dd87a5cb74634afca121e1e2982fe65f6a17da71a988
|
data/README.md
CHANGED
@@ -13,6 +13,7 @@ Tale is a minimal Jekyll theme curated for storytellers. Checkout the demo [here
|
|
13
13
|
- Syntax highlighting, with the help of Pygments
|
14
14
|
- Markdown and HTML text formatting
|
15
15
|
- Pagination of posts
|
16
|
+
- [Disqus comments (can be enabled if needed)](#enabling-comments)
|
16
17
|
|
17
18
|
## Installation
|
18
19
|
There are 3 ways to install this theme
|
@@ -112,6 +113,15 @@ $ bundle exec jekyll serve
|
|
112
113
|
|
113
114
|
And you're all set! Head over to http://127.0.0.1:4000/ to see your site in action.
|
114
115
|
|
116
|
+
### Enabling Comments
|
117
|
+
Comments are disabled by default. To enable them, look for the following line in `_config.yml` and change `jekyll-tale` to your site's Disqus id.
|
118
|
+
|
119
|
+
```yml
|
120
|
+
disqus: jekyll-tale
|
121
|
+
```
|
122
|
+
|
123
|
+
Next, add `comments: true` to the YAML front matter of the posts which you would like to enable comments for.
|
124
|
+
|
115
125
|
## Contributing
|
116
126
|
Found a bug or have a suggestion? Feel free to create an issue or make a pull request!
|
117
127
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Start disqus -->
|
2
|
+
<script src="{{ "/assets/js/disqusLoader.js" | relative_url }}" /></script>
|
3
|
+
<div id="disqus_thread"><h3>Discussion and feedback</h3></div>
|
4
|
+
<div class="disqus"></div>
|
5
|
+
<script>
|
6
|
+
disqusLoader('.disqus', {
|
7
|
+
scriptUrl: 'https://{{ site.disqus }}.disqus.com/embed.js'
|
8
|
+
});
|
9
|
+
</script>
|
10
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
11
|
+
<!-- End disqus -->
|
data/_includes/navigation.html
CHANGED
@@ -4,8 +4,9 @@
|
|
4
4
|
<h2 class="nav-title">{{ site.title }}</h2>
|
5
5
|
</a>
|
6
6
|
<ul>
|
7
|
-
<li><a href="{{ '/about' | prepend: site.baseurl }}">About</a></li>
|
8
7
|
<li><a href="{{ site.baseurl }}/">Posts</a></li>
|
8
|
+
<li><a href="{{ '/tags' | prepend: site.baseurl }}">Tags</a></li>
|
9
|
+
<li><a href="{{ '/about' | prepend: site.baseurl }}">About</a></li>
|
9
10
|
</ul>
|
10
11
|
</div>
|
11
12
|
</nav>
|
data/_layouts/post.html
CHANGED
@@ -21,9 +21,12 @@ layout: default
|
|
21
21
|
<div class="post-line"></div>
|
22
22
|
|
23
23
|
{{ content }}
|
24
|
-
|
25
24
|
</div>
|
26
25
|
|
26
|
+
{% if page.comments %}
|
27
|
+
{% include disqus_comments.html %}
|
28
|
+
{% endif %}
|
29
|
+
|
27
30
|
<div class="pagination">
|
28
31
|
{% if page.next.url %}
|
29
32
|
<a href="{{ page.next.url | prepend: site.baseurl }}" class="left arrow">←</a>
|
@@ -33,4 +36,4 @@ layout: default
|
|
33
36
|
{% endif %}
|
34
37
|
|
35
38
|
<a href="#" class="top">Top</a>
|
36
|
-
</div>
|
39
|
+
</div>
|
data/_sass/tale.scss
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
.notfound {
|
2
|
+
position: relative;
|
3
|
+
text-align: center;
|
4
|
+
margin: 4rem 0;
|
5
|
+
|
6
|
+
&-error {
|
7
|
+
font-size: 4rem;
|
8
|
+
margin: 1rem 0;
|
9
|
+
}
|
10
|
+
|
11
|
+
&-line {
|
12
|
+
border-top: 0.4rem solid $default-shade;
|
13
|
+
display: block;
|
14
|
+
margin: 0 auto 3rem;
|
15
|
+
width: 4rem;
|
16
|
+
}
|
17
|
+
|
18
|
+
&-message {
|
19
|
+
max-width: 25rem;
|
20
|
+
margin: 0 auto;
|
21
|
+
}
|
22
|
+
}
|
data/_sass/tale/_catalogue.scss
CHANGED
@@ -0,0 +1,89 @@
|
|
1
|
+
.tags {
|
2
|
+
&-header {
|
3
|
+
&-title {
|
4
|
+
color: $default-shade;
|
5
|
+
font-family: $sans-serif;
|
6
|
+
font-size: 4rem;
|
7
|
+
margin: 1rem 0;
|
8
|
+
text-align: center;
|
9
|
+
}
|
10
|
+
|
11
|
+
&-line {
|
12
|
+
border-top: 0.4rem solid $default-shade;
|
13
|
+
display: block;
|
14
|
+
margin: 0 auto 3rem;
|
15
|
+
width: 4rem;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
&-clouds {
|
20
|
+
text-align: center;
|
21
|
+
font-family: $sans-serif;
|
22
|
+
|
23
|
+
a {
|
24
|
+
display: inline-block;
|
25
|
+
margin: 0 0.1rem 0.2rem;
|
26
|
+
padding: 0.2rem 0.5rem;
|
27
|
+
background: rgba(0, 0, 0, 0.05);
|
28
|
+
border-radius: 5px;
|
29
|
+
color: $default-color;
|
30
|
+
text-decoration: none;
|
31
|
+
|
32
|
+
&:hover,
|
33
|
+
&:active {
|
34
|
+
background: rgba(0, 0, 0, 0.1);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
&-item {
|
40
|
+
&-icon {
|
41
|
+
height: 1rem;
|
42
|
+
}
|
43
|
+
|
44
|
+
&-label {
|
45
|
+
display: inline-block;
|
46
|
+
margin: 2rem 0 0.5rem;
|
47
|
+
font-family: $sans-serif;
|
48
|
+
color: $default-color;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
&-post {
|
53
|
+
display: flex;
|
54
|
+
justify-content: space-between;
|
55
|
+
padding: 5px 0;
|
56
|
+
|
57
|
+
&-title {
|
58
|
+
color: $default-color;
|
59
|
+
text-decoration: none;
|
60
|
+
white-space: nowrap;
|
61
|
+
overflow: hidden;
|
62
|
+
text-overflow: ellipsis;
|
63
|
+
}
|
64
|
+
|
65
|
+
&-line {
|
66
|
+
@include transition(all 0.3s ease-out);
|
67
|
+
border-top: 0.1rem solid $default-shade;
|
68
|
+
display: block;
|
69
|
+
width: 0;
|
70
|
+
}
|
71
|
+
|
72
|
+
&-meta {
|
73
|
+
color: $default-tint;
|
74
|
+
text-align: right;
|
75
|
+
white-space: nowrap;
|
76
|
+
}
|
77
|
+
|
78
|
+
&:hover,
|
79
|
+
&:active {
|
80
|
+
.tags-post-line {
|
81
|
+
width: 3rem;
|
82
|
+
}
|
83
|
+
|
84
|
+
.tags-post-meta {
|
85
|
+
color: $default-shade;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
data/_sass/tale/_variables.scss
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
// Colors
|
2
|
-
$default-color: #555;
|
3
|
-
$default-shade: #353535;
|
4
|
-
$default-tint: #aaa;
|
5
|
-
$grey-1: #979797;
|
6
|
-
$grey-2: #e5e5e5;
|
7
|
-
$grey-3: #f9f9f9;
|
8
|
-
$white: #fff;
|
9
|
-
$blue: #4a9ae1;
|
10
|
-
$shadow-color: rgba(0, 0, 0, .2);
|
11
|
-
$code-color: #bf616a;
|
2
|
+
$default-color: #555 !default;
|
3
|
+
$default-shade: #353535 !default;
|
4
|
+
$default-tint: #aaa !default;
|
5
|
+
$grey-1: #979797 !default;
|
6
|
+
$grey-2: #e5e5e5 !default;
|
7
|
+
$grey-3: #f9f9f9 !default;
|
8
|
+
$white: #fff !default;
|
9
|
+
$blue: #4a9ae1 !default;
|
10
|
+
$shadow-color: rgba(0, 0, 0, .2) !default;
|
11
|
+
$code-color: #bf616a !default;
|
12
12
|
|
13
13
|
// Fonts
|
14
|
-
$serif-primary: 'Libre Baskerville', 'Times New Roman', Times, serif;
|
15
|
-
$serif-secondary: Palatino, 'Palatino LT STD', 'Palatino Linotype', 'Book Antiqua', 'Georgia', serif;
|
16
|
-
$sans-serif: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif;
|
17
|
-
$monospaced: Menlo, Monaco, monospace;
|
14
|
+
$serif-primary: 'Libre Baskerville', 'Times New Roman', Times, serif !default;
|
15
|
+
$serif-secondary: Palatino, 'Palatino LT STD', 'Palatino Linotype', 'Book Antiqua', 'Georgia', serif !default;
|
16
|
+
$sans-serif: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif !default;
|
17
|
+
$monospaced: Menlo, Monaco, monospace !default;
|
18
18
|
|
19
19
|
@mixin box-sizing($type: border-box) {
|
20
20
|
-webkit-box-sizing: $type;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
disqusLoader.js v1.0
|
3
|
+
A JavaScript plugin for lazy-loading Disqus comments widget.
|
4
|
+
-
|
5
|
+
By Osvaldas Valutis, www.osvaldas.info
|
6
|
+
Available for use under the MIT License
|
7
|
+
*/
|
8
|
+
(function(b,f,l){var r=function(a){a=a.getBoundingClientRect();return{top:a.top+f.body.scrollTop,left:a.left+f.body.scrollLeft}},t=function(a,c){var d=f.createElement("script");d.src=a;d.async=!0;d.setAttribute("data-timestamp",+new Date);d.addEventListener("load",function(){"function"===typeof c&&c()});(f.head||f.body).appendChild(d)};l=function(a,c){var d,e;return function(){var g=this,f=arguments,b=+new Date;d&&b<d+a?(clearTimeout(e),e=setTimeout(function(){d=b;c.apply(g,f)},a)):(d=b,c.apply(g,
|
9
|
+
f))}};var m=!1,n=!1,p=!1,k=!1,h="unloaded",e=!1,q=function(){if(!e||!f.body.contains(e)||"loaded"==e.disqusLoaderStatus)return!0;var a=b.pageYOffset,c=r(e).top;if(c-a>b.innerHeight*n||0<a-c-e.offsetHeight-b.innerHeight*n)return!0;(a=f.getElementById("disqus_thread"))&&a.removeAttribute("id");e.setAttribute("id","disqus_thread");e.disqusLoaderStatus="loaded";"loaded"==h?DISQUS.reset({reload:!0,config:p}):(b.disqus_config=p,"unloaded"==h&&(h="loading",t(k,function(){h="loaded"})))};b.addEventListener("scroll",
|
10
|
+
l(m,q));b.addEventListener("resize",l(m,q));b.disqusLoader=function(a,c){var d={laziness:1,throttle:250,scriptUrl:!1,disqusConfig:!1},b=c,g,h={};for(g in d)Object.prototype.hasOwnProperty.call(d,g)&&(h[g]=d[g]);for(g in b)Object.prototype.hasOwnProperty.call(b,g)&&(h[g]=b[g]);c=h;n=c.laziness+1;m=c.throttle;p=c.disqusConfig;k=!1===k?c.scriptUrl:k;e="string"===typeof a?f.querySelector(a):"number"===typeof a.length?a[0]:a;e.disqusLoaderStatus="unloaded";q()}})(window,document,0);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chester How
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jekyll-paginate
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,56 +44,56 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.10
|
47
|
+
version: '0.10'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.10
|
54
|
+
version: '0.10'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: jekyll-seo-tag
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.5
|
61
|
+
version: '2.5'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.5
|
68
|
+
version: '2.5'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '2.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '2.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 12.3.3
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 12.3.3
|
97
97
|
description:
|
98
98
|
email:
|
99
99
|
- chesterhow@gmail.com
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- LICENSE
|
105
105
|
- README.md
|
106
106
|
- _includes/analytics.html
|
107
|
+
- _includes/disqus_comments.html
|
107
108
|
- _includes/footer.html
|
108
109
|
- _includes/head.html
|
109
110
|
- _includes/navigation.html
|
@@ -111,6 +112,7 @@ files:
|
|
111
112
|
- _layouts/home.html
|
112
113
|
- _layouts/post.html
|
113
114
|
- _sass/tale.scss
|
115
|
+
- _sass/tale/_404.scss
|
114
116
|
- _sass/tale/_base.scss
|
115
117
|
- _sass/tale/_catalogue.scss
|
116
118
|
- _sass/tale/_code.scss
|
@@ -118,10 +120,12 @@ files:
|
|
118
120
|
- _sass/tale/_pagination.scss
|
119
121
|
- _sass/tale/_post.scss
|
120
122
|
- _sass/tale/_syntax.scss
|
123
|
+
- _sass/tale/_tags.scss
|
121
124
|
- _sass/tale/_variables.scss
|
122
125
|
- assets/apple-touch-icon.png
|
123
126
|
- assets/favicon-16x16.png
|
124
127
|
- assets/favicon-32x32.png
|
128
|
+
- assets/js/disqusLoader.js
|
125
129
|
- assets/main.scss
|
126
130
|
homepage: https://github.com/chesterhow/tale
|
127
131
|
licenses:
|
@@ -142,8 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
146
|
- !ruby/object:Gem::Version
|
143
147
|
version: '0'
|
144
148
|
requirements: []
|
145
|
-
|
146
|
-
rubygems_version: 2.5.2.2
|
149
|
+
rubygems_version: 3.1.2
|
147
150
|
signing_key:
|
148
151
|
specification_version: 4
|
149
152
|
summary: Tale is a minimal Jekyll theme curated for storytellers.
|