darlog 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e57b43cbed1f93123f6ffd79caf90a3ad18dd28a2214ae569a498c86d3150ad8
4
- data.tar.gz: 503d8692262e9290d093f8f2dbc15895560ff33aef547c1b915311da157f07d6
3
+ metadata.gz: cf007d20ff539c5181e67247c169e89caf8964fd18754eec7fa1c88f40498f19
4
+ data.tar.gz: b6716f37ded5e60ee0d4afd0248572e5b5e5b04d632acecd9fad81b87a60f0c1
5
5
  SHA512:
6
- metadata.gz: a805e04284fad3782b6f02aa4315cfbf20f6ac90b2732f2ef1d8239edc063e045351756eccb60bc5f19d104fee23448d30ff17930631e53b56063821bcccf9f6
7
- data.tar.gz: b069e3bc3a388bee75c9f02da125ec3d193df992891acb0dc04829324a1b11f61cc652ae9df0c2f065888b6275aa36db111f81efa2c419c74d53f3fafbb37e7c
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
- ### Configuration variables
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: 3)]
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 -%}
@@ -11,4 +11,9 @@ layout: default
11
11
  <div class="post-content">
12
12
  {{ content }}
13
13
  </div>
14
+
15
+ {%- if site.disqus_shortname -%}
16
+ {%- include disqus_comments.html -%}
17
+ {%- endif -%}
18
+
14
19
  </article>
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.5
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-27 00:00:00.000000000 Z
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