summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-04-09 16:39:12 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-04-09 16:39:12 +0200
commit27a8049da7996b703d02083182b84a002eae2599 (patch)
tree81cb1497f58dad8ec61be7bddc5588cef73dfaa9 /tpl
parentee4274244b574a4d8acca6fd80b83c4f1d3d0b73 (diff)
tpl/tplimpl: Replace deprecated .GetParam usage
Fixes #5834
Diffstat (limited to 'tpl')
-rw-r--r--tpl/tplimpl/embedded/templates.autogen.go6
-rw-r--r--tpl/tplimpl/embedded/templates/disqus.html6
2 files changed, 6 insertions, 6 deletions
diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go
index 89078350e..164f3b927 100644
--- a/tpl/tplimpl/embedded/templates.autogen.go
+++ b/tpl/tplimpl/embedded/templates.autogen.go
@@ -90,9 +90,9 @@ var EmbeddedTemplates = [][2]string{
{{ 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) {
diff --git a/tpl/tplimpl/embedded/templates/disqus.html b/tpl/tplimpl/embedded/templates/disqus.html
index ab51bb5c0..fed512ff0 100644
--- a/tpl/tplimpl/embedded/templates/disqus.html
+++ b/tpl/tplimpl/embedded/templates/disqus.html
@@ -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) {