darlog 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -6
- data/_includes/disqus_comments.html +20 -0
- data/_layouts/post.html +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf007d20ff539c5181e67247c169e89caf8964fd18754eec7fa1c88f40498f19
|
4
|
+
data.tar.gz: b6716f37ded5e60ee0d4afd0248572e5b5e5b04d632acecd9fad81b87a60f0c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: befa0629d80aa56db449fe9dcbc49f2d8f7708d8bd9d3666b86a1dfef4c0cbbe9d3a8a0b998eef766d356b2c3be7e825f3e46e74b9bcfe8f800e8477cae53b19
|
7
|
+
data.tar.gz: 303e2089b6fb94f159165f76ba078a7b480dd48f3be3c4d738a3dfefa7aa7f25110ee0e203d9424c18bbd9427cfbd9380794bf5ea49cb37cd402dc32ebff364f
|
data/README.md
CHANGED
@@ -165,14 +165,19 @@ purpose of editing the theme by your needs.
|
|
165
165
|
|
166
166
|
|
167
167
|
|
168
|
-
## Contributing
|
169
|
-
|
170
|
-
Bug reports and pull requests are welcome on GitHub at [theme page](https://github.com/arxero/darlog). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
171
|
-
|
172
168
|
## Customizing
|
169
|
+
### Enable Disqus comments
|
170
|
+
In `_config.yml` add
|
173
171
|
|
174
|
-
|
172
|
+
```yml
|
173
|
+
disqus_shortname: [Your disqus shortname]
|
174
|
+
```
|
175
|
+
also on every post you would like to have them add at the start
|
176
|
+
```yml
|
177
|
+
comments: true
|
178
|
+
```
|
175
179
|
|
180
|
+
### Configuration variables
|
176
181
|
Edit the `_config.yml` file and set the following variables:
|
177
182
|
|
178
183
|
```yml
|
@@ -185,7 +190,7 @@ author:
|
|
185
190
|
|
186
191
|
baseurl: [The base url for this blog.]
|
187
192
|
|
188
|
-
paginate: [Number of posts in one paginated section (default:
|
193
|
+
paginate: [Number of posts in one paginated section (default: 4)]
|
189
194
|
owner: [Your name]
|
190
195
|
year: [Current Year]
|
191
196
|
```
|
@@ -198,6 +203,10 @@ Additionally, you may choose to set the following optional variables:
|
|
198
203
|
google_analytics: [Your Google Analytics tracking ID]
|
199
204
|
```
|
200
205
|
|
206
|
+
## Contributing
|
207
|
+
|
208
|
+
Bug reports and pull requests are welcome on GitHub at [theme page](https://github.com/arxero/darlog). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
209
|
+
|
201
210
|
## License
|
202
211
|
|
203
212
|
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{%- if page.comments != false -%}
|
2
|
+
|
3
|
+
<div id="disqus_thread"></div>
|
4
|
+
<script>
|
5
|
+
var disqus_config = function () {
|
6
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
7
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
8
|
+
};
|
9
|
+
|
10
|
+
(function() {
|
11
|
+
var d = document, s = d.createElement('script');
|
12
|
+
|
13
|
+
s.src = 'https://{{ site.disqus_shortname }}.disqus.com/embed.js';
|
14
|
+
|
15
|
+
s.setAttribute('data-timestamp', +new Date());
|
16
|
+
(d.head || d.body).appendChild(s);
|
17
|
+
})();
|
18
|
+
</script>
|
19
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
20
|
+
{%- endif -%}
|
data/_layouts/post.html
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: darlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maverick Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- LICENSE.txt
|
63
63
|
- README.md
|
64
64
|
- _includes/analytics.html
|
65
|
+
- _includes/disqus_comments.html
|
65
66
|
- _includes/footer.html
|
66
67
|
- _includes/head.html
|
67
68
|
- _includes/header.html
|