Skip to content

Commit c978574

Browse files
committed
disqus
1 parent c701b9d commit c978574

File tree

8 files changed

+134
-127
lines changed

8 files changed

+134
-127
lines changed

layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ template "_internal/disqus.html" . }}
1+
{{ template "partials/disqus.html" . }}
22

33
<footer class="footer">
44
<div class="footer-row">

public/categories/index.html

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,6 @@
4242
}
4343
</script>
4444

45-
<div id="disqus_thread"></div>
46-
<script type="text/javascript">
47-
48-
(function() {
49-
50-
51-
if (window.location.hostname == "localhost")
52-
return;
53-
54-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
55-
var disqus_shortname = 'singhcoder';
56-
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
57-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
58-
})();
59-
</script>
60-
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
61-
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
6245
<meta name="twitter:card" content="summary_large_image"/>
6346
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
6447

@@ -133,7 +116,25 @@ <h2>Tags</h2>
133116

134117
</div>
135118
</main>
136-
<footer class="footer">
119+
<div id="disqus_thread"></div>
120+
<script type="text/javascript">
121+
122+
(function() {
123+
124+
125+
if (window.location.hostname == "localhost")
126+
return;
127+
128+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
129+
var disqus_shortname = 'singhcoder';
130+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
131+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
132+
})();
133+
</script>
134+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
135+
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
136+
137+
<footer class="footer">
137138
<div class="footer-row">
138139

139140

public/index.html

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,6 @@
4545
}
4646
</script>
4747

48-
<div id="disqus_thread"></div>
49-
<script type="text/javascript">
50-
51-
(function() {
52-
53-
54-
if (window.location.hostname == "localhost")
55-
return;
56-
57-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
58-
var disqus_shortname = 'singhcoder';
59-
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
60-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
61-
})();
62-
</script>
63-
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
64-
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
6548
<meta name="twitter:card" content="summary_large_image"/>
6649
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
6750

@@ -213,7 +196,25 @@ <h2>Tags</h2>
213196

214197
</div>
215198
</main>
216-
<footer class="footer">
199+
<div id="disqus_thread"></div>
200+
<script type="text/javascript">
201+
202+
(function() {
203+
204+
205+
if (window.location.hostname == "localhost")
206+
return;
207+
208+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
209+
var disqus_shortname = 'singhcoder';
210+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
211+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
212+
})();
213+
</script>
214+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
215+
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
216+
217+
<footer class="footer">
217218
<div class="footer-row">
218219

219220

public/posts/fitness-track/index.html

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,6 @@
4747
}
4848
</script>
4949

50-
<div id="disqus_thread"></div>
51-
<script type="text/javascript">
52-
53-
(function() {
54-
55-
56-
if (window.location.hostname == "localhost")
57-
return;
58-
59-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
60-
var disqus_shortname = 'singhcoder';
61-
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
62-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
63-
})();
64-
</script>
65-
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
66-
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
6750
<meta name="twitter:card" content="summary_large_image"/>
6851
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
6952

@@ -203,7 +186,25 @@ <h2>Tags</h2>
203186

204187
</div>
205188
</main>
206-
<footer class="footer">
189+
<div id="disqus_thread"></div>
190+
<script type="text/javascript">
191+
192+
(function() {
193+
194+
195+
if (window.location.hostname == "localhost")
196+
return;
197+
198+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
199+
var disqus_shortname = 'singhcoder';
200+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
201+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
202+
})();
203+
</script>
204+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
205+
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
206+
207+
<footer class="footer">
207208
<div class="footer-row">
208209

209210

public/posts/index.html

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,6 @@
4242
}
4343
</script>
4444

45-
<div id="disqus_thread"></div>
46-
<script type="text/javascript">
47-
48-
(function() {
49-
50-
51-
if (window.location.hostname == "localhost")
52-
return;
53-
54-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
55-
var disqus_shortname = 'singhcoder';
56-
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
57-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
58-
})();
59-
</script>
60-
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
61-
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
6245
<meta name="twitter:card" content="summary_large_image"/>
6346
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
6447

@@ -176,7 +159,25 @@ <h2>Tags</h2>
176159

177160
</div>
178161
</main>
179-
<footer class="footer">
162+
<div id="disqus_thread"></div>
163+
<script type="text/javascript">
164+
165+
(function() {
166+
167+
168+
if (window.location.hostname == "localhost")
169+
return;
170+
171+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
172+
var disqus_shortname = 'singhcoder';
173+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
174+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
175+
})();
176+
</script>
177+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
178+
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
179+
180+
<footer class="footer">
180181
<div class="footer-row">
181182

182183

public/posts/my-first-post/index.html

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,6 @@
4747
}
4848
</script>
4949

50-
<div id="disqus_thread"></div>
51-
<script type="text/javascript">
52-
53-
(function() {
54-
55-
56-
if (window.location.hostname == "localhost")
57-
return;
58-
59-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
60-
var disqus_shortname = 'singhcoder';
61-
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
62-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
63-
})();
64-
</script>
65-
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
66-
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
6750
<meta name="twitter:card" content="summary_large_image"/>
6851
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
6952

@@ -169,7 +152,25 @@ <h2>Tags</h2>
169152

170153
</div>
171154
</main>
172-
<footer class="footer">
155+
<div id="disqus_thread"></div>
156+
<script type="text/javascript">
157+
158+
(function() {
159+
160+
161+
if (window.location.hostname == "localhost")
162+
return;
163+
164+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
165+
var disqus_shortname = 'singhcoder';
166+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
167+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
168+
})();
169+
</script>
170+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
171+
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
172+
173+
<footer class="footer">
173174
<div class="footer-row">
174175

175176

public/tags/fitness/index.html

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,6 @@
4242
}
4343
</script>
4444

45-
<div id="disqus_thread"></div>
46-
<script type="text/javascript">
47-
48-
(function() {
49-
50-
51-
if (window.location.hostname == "localhost")
52-
return;
53-
54-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
55-
var disqus_shortname = 'singhcoder';
56-
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
57-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
58-
})();
59-
</script>
60-
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
61-
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
6245
<meta name="twitter:card" content="summary_large_image"/>
6346
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
6447

@@ -164,7 +147,25 @@ <h2>Tags</h2>
164147

165148
</div>
166149
</main>
167-
<footer class="footer">
150+
<div id="disqus_thread"></div>
151+
<script type="text/javascript">
152+
153+
(function() {
154+
155+
156+
if (window.location.hostname == "localhost")
157+
return;
158+
159+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
160+
var disqus_shortname = 'singhcoder';
161+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
162+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
163+
})();
164+
</script>
165+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
166+
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
167+
168+
<footer class="footer">
168169
<div class="footer-row">
169170

170171

public/tags/index.html

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,6 @@
4242
}
4343
</script>
4444

45-
<div id="disqus_thread"></div>
46-
<script type="text/javascript">
47-
48-
(function() {
49-
50-
51-
if (window.location.hostname == "localhost")
52-
return;
53-
54-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
55-
var disqus_shortname = 'singhcoder';
56-
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
57-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
58-
})();
59-
</script>
60-
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
61-
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
6245
<meta name="twitter:card" content="summary_large_image"/>
6346
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
6447

@@ -141,7 +124,25 @@ <h2>Tags</h2>
141124

142125
</div>
143126
</main>
144-
<footer class="footer">
127+
<div id="disqus_thread"></div>
128+
<script type="text/javascript">
129+
130+
(function() {
131+
132+
133+
if (window.location.hostname == "localhost")
134+
return;
135+
136+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
137+
var disqus_shortname = 'singhcoder';
138+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
139+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
140+
})();
141+
</script>
142+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
143+
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
144+
145+
<footer class="footer">
145146
<div class="footer-row">
146147

147148

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy