Skip to content

Commit 6d0c612

Browse files
author
David
committed
Add disqus
1 parent 842afff commit 6d0c612

File tree

7 files changed

+34
-3
lines changed

7 files changed

+34
-3
lines changed

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pygmentsStyle = "murphy"
4343
weight = 4
4444

4545
[[menu.footer]]
46-
name = "Github"
46+
name = "GitHub"
4747
url = "https://github.com/coDesign"
4848
weight = 1
4949

content/posts/A list of 5 Mobile Interface myths for designers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ tags: [
99
"UI",
1010
"Mobile Interface",
1111
]
12+
publication: Smashing Magazine
1213
featuredimage: 1.jpg
1314
---
1415
A list of 5 Mobile Interface myths for designers

content/posts/Development Update One.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ At the end of every Development Update, we'll be keeping one section aside for a
5151

5252
- ~~Restructure post list~~
5353

54-
<a href="https://github.com/codesign/blog"
54+
<a href="https://github.com/codesign/blog" target="_blank">Go to repo <i class="fas fa-arrow-right"></i></a>

themes/thecodesigntheme/layouts/_default/single.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
{{ end }}
88
<h1 class="meta__title">{{ .Title }}</h1>
99
<div class="meta__information">
10+
{{ if (isset .Params "publication") }}
11+
<span class="meta__pub">{{ .Params.publication }}</span>
12+
{{ end }}
1013
{{ if .Params.date }}
1114
<span class="meta__date">{{ .Date.Format "Jan 2 2006" }}</span>
1215
{{ end }}
@@ -27,7 +30,28 @@ <h1 class="meta__title">{{ .Title }}</h1>
2730

2831
<section class="post__content">
2932
{{ .Content }}
33+
<div id="disqus_thread"></div>
34+
<script>
35+
36+
/**
37+
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
38+
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
39+
var disqus_config = function () {
40+
this.page.url = "https://thecodesign.io/" + {{ .RelPermalink }}; // Replace PAGE_URL with your page's canonical URL variable
41+
this.page.identifier = {{ .UniqueID }}; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
42+
};
43+
(function () { // DON'T EDIT BELOW THIS LINE
44+
var d = document, s = d.createElement('script');
45+
s.src = 'https://thecodesignpub.disqus.com/embed.js';
46+
s.setAttribute('data-timestamp', +new Date());
47+
(d.head || d.body).appendChild(s);
48+
})();
49+
</script>
50+
<noscript>Please enable JavaScript to view the
51+
<a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
52+
</noscript>
3053
</section>
54+
3155
</main>
3256

3357
{{ partial "telegram.html" . }}

themes/thecodesigntheme/layouts/partials/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
}, false)
2323
</script>
2424

25+
<script defer src="https://use.fontawesome.com/releases/v5.0.1/js/all.js"></script>
2526
{{ if .Site.Params.TwitterAnalytics }}
2627
<script src="//platform.twitter.com/oct.js" type="text/javascript"></script>
2728
<script type="text/javascript">

themes/thecodesigntheme/static/css/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/thecodesigntheme/static/css/scss/_post.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,8 @@
105105
}
106106
}
107107
}
108+
109+
.disqus_thread {
110+
width: 100%;
111+
display: block;
112+
}

0 commit comments

Comments
 (0)