Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 929e28f

Browse files
Merge pull request #2 from gjuniioor/master
Add support to comments and improve footer code.
2 parents 10c23ad + 9599c1e commit 929e28f

File tree

7 files changed

+57
-9
lines changed

7 files changed

+57
-9
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_site

‎README.md‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ Naringu is dark jekyll theme that provide fully furnished jekyll setup, come wit
1515
- [Themes](#themes)
1616
- [Reverse layout](#reverse-layout)
1717
- [Contact Form](#contact-form)
18+
- [Comments](#comments)
1819
- [Development](#development)
19-
- [Author](#author)
20+
- [Author](#author)
21+
- [Contributors](#contributors)
2022
- [License](#license)
2123

2224

@@ -57,17 +59,29 @@ Go a head `contact/index.html` just change the email in the code
5759
<form action="http://formspree.io/youremail@yourdomain.com" role="form" method="POST">
5860
```
5961

62+
### Comments
63+
64+
Using [disqus](http://disqus.com/) to enable comments in static site.
65+
66+
Just edit variable `disqus` in `_config.yml` to your disqus link.
67+
6068
## Development
6169

6270
Naringu come with two branches :.
6371

6472
- `master` for active development.
6573
- `gh-pages` for preview of Naringu
6674

75+
### Author
76+
6777
**Rizky Ariestiyansyah**
6878
- <https://github.com/ariestiyansyah>
6979
- <https://twitter.com/ariestiyansyah>
7080

81+
### Contributors
82+
83+
**Gildásio Júnior** - *a.k.a. @gjuniioor*
84+
- https://github.com/gjuniioor
7185

7286
## License
7387

‎_config.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ version: 2.0
2828
# Social Media
2929
github: http://github.com/ariestiyansyah
3030
twitter: http://twitter.com/ariestiyansyah
31+
disqus: testnaringu
3132

3233
# Theme Author (Please don't edit this line cause of MIT LICENSE rules)
3334
theme:
34-
creator: Rizky Ariestiyansyah
35-
codename: Naringu
35+
creator: Rizky Ariestiyansyah
36+
codename: Naringu
37+
link: https://github.com/ariestiyansyah/naringu

‎_includes/comments.html‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<div id="disqus_thread"></div>
2+
<script type="text/javascript">
3+
/* * * CONFIGURATION VARIABLES * * */
4+
var disqus_shortname = '{{ site.disqus }}';
5+
6+
/* * * DON'T EDIT BELOW THIS LINE * * */
7+
(function() {
8+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
9+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
10+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
11+
})();
12+
</script>
13+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
14+
15+
<script type="text/javascript">
16+
/* * * CONFIGURATION VARIABLES * * */
17+
var disqus_shortname = '{{ site.disqus }}';
18+
19+
/* * * DON'T EDIT BELOW THIS LINE * * */
20+
(function () {
21+
var s = document.createElement('script'); s.async = true;
22+
s.type = 'text/javascript';
23+
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
24+
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
25+
}());
26+
</script>

‎_includes/footer.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div align="center" class="footer">
2+
<a href="{{ site.theme.link }}" target="_blank" title="naringu">{{ site.theme.codename }}</a> is designed by {{ site.theme.creator }}<br />Copyright © {{ site.time | date: '%Y' }} <br>
3+
</div>
4+
</body>
5+
</html>

‎_layouts/default.html‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,5 @@ <h3 class="masthead-title">
4242
}, false);
4343
})(document);
4444
</script>
45-
<div align="center" class="footer">
46-
<a href="/" title="naringu">{{ site.theme.codename }}</a> is designed by {{ site.theme.creator }}<br>
47-
Copyright © {{ site.time | date: '%Y' }} <br>
48-
</div>
49-
</body>
50-
</html>
45+
46+
{% include footer.html %}

‎_layouts/post.html‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ <h3>
2323
{% endfor %}
2424
</ul>
2525
</div>
26+
27+
<div class="comments">
28+
{% include comments.html %}
29+
</div>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /