Skip to content
Permalink
Browse files

tpl/tplimpl: Replace deprecated .GetParam usage

Fixes #5834
  • Loading branch information...
bep committed Apr 9, 2019
1 parent ee42742 commit 27a8049da7996b703d02083182b84a002eae2599
Showing with 6 additions and 6 deletions.
  1. +3 −3 tpl/tplimpl/embedded/templates.autogen.go
  2. +3 −3 tpl/tplimpl/embedded/templates/disqus.html

Some generated files are not rendered by default. Learn more.

@@ -3,9 +3,9 @@
{{ if .Site.DisqusShortname }}<div id="disqus_thread"></div>
<script type="application/javascript">
var disqus_config = function () {
{{with .GetParam "disqus_identifier" }}this.page.identifier = '{{ . }}';{{end}}
{{with .GetParam "disqus_title" }}this.page.title = '{{ . }}';{{end}}
{{with .GetParam "disqus_url" }}this.page.url = '{{ . | html }}';{{end}}
{{with .Params.disqus_identifier }}this.page.identifier = '{{ . }}';{{end}}
{{with .Params.disqus_title }}this.page.title = '{{ . }}';{{end}}
{{with .Params.disqus_url }}this.page.url = '{{ . | html }}';{{end}}
};
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {

0 comments on commit 27a8049

Please sign in to comment.
You can’t perform that action at this time.