Skip to content

Commit

Permalink
Activate or Deactivate Disqus per Post (yousinix#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
rribeiro1 authored Dec 17, 2020
1 parent 3ffc7bb commit a4777e5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _includes/blog/disqus.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{%- if site.disqus -%}
{%- if page.comments != false and jekyll.environment == "production" -%}
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{{ site.disqus }}';
var disqus_shortname = '{{ site.disqus.shortname }}';
(function() {
var disqus = document.createElement('script');
disqus.type = 'text/javascript';
Expand Down
3 changes: 2 additions & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ collections:


### Disqus ###
disqus: your-short-name-disqus # Your website Shortname on disqus
disqus:
shortname: your-short-name-disqus # Your website Shortname on disqus


### Analytics ###
Expand Down
1 change: 1 addition & 0 deletions docs/_posts/2016-02-09-what-is-version-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: What is version control?
tags: [Version Control]
style: fill
color: secondary
comments: true
description: Benefits of version control and version control systems.
---

Expand Down
1 change: 1 addition & 0 deletions docs/documentation/partials/01-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- **Automatic** importing for **GitHub Repositories** as Projects.
- **Search** posts by title, tags or descriptions.
- **Tags archive** for posts.
- Disqus support for blog posts.
- Skills progress bars and education/experience timeline.
- Support large number of **social networks**.
- Quick including for various [elements][elements] as videos, lists, figures, buttons and many more.
Expand Down
3 changes: 2 additions & 1 deletion test/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ author:

### Posts ###
permalink: /blog/:title
disqus: short-name-disqus

disqus:
shortname: your-disqus-shortname

### Collections ###
collections:
Expand Down

0 comments on commit a4777e5

Please sign in to comment.