.RelPermalink instead of .URL in remark42 template

.URL is deprecated
This commit is contained in:
Dmitry Belyaev 2019-08-13 19:28:47 +03:00
parent 48e24ec2fc
commit 0c73aac0ab
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -1,4 +1,4 @@
{{ if or (eq (substr .URL 0 6) "/post/") (eq (substr .URL 0 6) "/page/") }}
{{ if or (eq (substr .RelPermalink 0 6) "/post/") (eq (substr .RelPermalink 0 6) "/page/") }}
<script type="text/javascript">
var remark_config = {
host: "https://remark.b4tman.ru",