Move disqus setting under .Site.Params

This commit is contained in:
Keichi Takahashi 2015-07-18 00:20:39 +09:00
parent 24e09e044a
commit 46610182d6
2 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,8 @@ copyright = "© Copyright notice"
stackoverflow = "Your Stackoverflow user id (number)" stackoverflow = "Your Stackoverflow user id (number)"
keybase = "Your keybase.io username" keybase = "Your keybase.io username"
instagram = "Your Instagram username" instagram = "Your Instagram username"
# Disqus shortname
disqus = "Your disqus shortname"
# Google Analytics API key. # Google Analytics API key.
ga_api_key = "Your Google Analytics tracking id" ga_api_key = "Your Google Analytics tracking id"
# Mixpanel API key. # Mixpanel API key.

View File

@ -56,7 +56,7 @@
<li class="next disabled"><a href="#">Newer <span aria-hidden="true">&rarr;</span></a></li> <li class="next disabled"><a href="#">Newer <span aria-hidden="true">&rarr;</span></a></li>
{{ end }} {{ end }}
</ul> </ul>
{{ with .Site.DisqusShortname }} {{ with .Site.Params.disqus }}
<div id="disqus_thread"></div> <div id="disqus_thread"></div>
<script type="text/javascript"> <script type="text/javascript">
var disqus_shortname = '{{ . }}'; var disqus_shortname = '{{ . }}';