jekyll-skeleton 1.2.1 → 1.3.0
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 +13 -0
- data/_includes/disqus_comments.html +17 -0
- data/_layouts/post.html +4 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1482958e35b2b9c1be4661d7976c8bd5e50c90c4
|
4
|
+
data.tar.gz: 598765fc8157b0420cc1e34dd8dec7737e65279e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f68f4e5add38abe63b43191c5cb8b15bdcdcb00f73ca782380fd5322ef6e4340335c03a3d987039d26f6be4df493ef0ede8fcebca9126dc654025d3d022bf1c
|
7
|
+
data.tar.gz: a67e196672006e46668bdb78965bfec81b3c0b30be1636316afef8579cf1559d1f1e74900e444c4bedc5d28cfc96668cf5691e2b143c69fa142a2bed8bf16950
|
data/README.md
CHANGED
@@ -45,6 +45,19 @@ To list related posts at the end of a post, add the following line to your `_con
|
|
45
45
|
Then, the top 5 related posts will be listed.
|
46
46
|
See Jekyll's [docs](https://jekyllrb.com/docs/variables/#site-variables) for more information on what this means.
|
47
47
|
|
48
|
+
## Enabling comments via Disqus ##
|
49
|
+
|
50
|
+
If you have a Disqus account, you can enable comments for your posts in the same way as you do for Minima, by adding the following to your `_config.yml`:
|
51
|
+
|
52
|
+
```
|
53
|
+
disqus:
|
54
|
+
shortname: my_disqus_shortname
|
55
|
+
```
|
56
|
+
|
57
|
+
Like in Minima, comments are enabled by default and appear only in a production environment (`JEKYLL_ENV=production`).
|
58
|
+
|
59
|
+
Adding `comments: false` to a post's YAML front matter turns off displaying comments for that post.
|
60
|
+
|
48
61
|
## Contributing
|
49
62
|
|
50
63
|
Bug reports and pull requests are welcome on GitHub at https://github.com/awochna/jekyll-skeleton. 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.
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{% if page.comments != false and jekyll.environment == "production" %}
|
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
|
+
(function() {
|
10
|
+
var d = document, s = d.createElement('script');
|
11
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
12
|
+
s.setAttribute('data-timestamp', +new Date());
|
13
|
+
(d.head || d.body).appendChild(s);
|
14
|
+
})();
|
15
|
+
</script>
|
16
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
17
|
+
{% endif %}
|
data/_layouts/post.html
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-skeleton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Wynter
|
@@ -61,6 +61,7 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- LICENSE.txt
|
63
63
|
- README.md
|
64
|
+
- _includes/disqus_comments.html
|
64
65
|
- _includes/footer.html
|
65
66
|
- _includes/google-analytics.html
|
66
67
|
- _includes/head.html
|