Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: time2hack/casper
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 57bd4ac1637ab7663d711feec2d3373c3097fe1f
Choose a base ref
..
head repository: time2hack/casper
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4eb5b450efb57c7ff6d12663f0d98da68ffb7973
Choose a head ref
Showing with 6 additions and 7 deletions.
  1. +1 −1 assets/built/casper-t2h.css
  2. +1 −1 package.json
  3. +4 −5 post.hbs
2 changes: 1 addition & 1 deletion assets/built/casper-t2h.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
"name": "casper-t2h",
"description": "A clean, minimal default theme for the Ghost publishing platform",
"demo": "https://time2hack.com",
"version": "4.0.2.6",
"version": "4.0.2.8",
"engines": {
"ghost": ">=4.0.0",
"ghost-api": "v4"
9 changes: 4 additions & 5 deletions post.hbs
Original file line number Diff line number Diff line change
@@ -115,13 +115,13 @@ should be replaced with your own Disqus site-id.
this.page.url = '{{url absolute="true"}}';
this.page.identifier = 'ghost-{{comment_id}}';
};
var attachDisqus = function(s) {
var getDisqusScript = function() {
var s = document.createElement('script')
s.src = 'https://time2hack.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
return s;
}
var attachCommento = function(s) {
var getCommentoScript = function() {
var s = document.createElement('script')
s.src = 'https://comments.t2h.app/js/commento.js';
s.setAttribute('defer', true);
@@ -131,9 +131,8 @@ should be replaced with your own Disqus site-id.
document.addEventListener('DOMContentLoaded', function () {
setTimeout(function() {
var s = (typeof window.__COMMENTO !== 'undefined' && window.__COMMENTO)
? addCommento()
: addDisqus();
console.log(s)
? getCommentoScript()
: getDisqusScript();
(document.head || document.body).appendChild(s);
}, 3000);
})