Fix typo: .relPermalink → .RelPermalink

This commit is contained in:
Vincent Tam 2019-04-25 12:16:32 +02:00
parent 37d73ff832
commit c44ae13891
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@
{{ end }}
{{- if .Site.Params.staticman -}}
&nbsp;|&nbsp;<i class="fas fa-comment"></i>&nbsp;
{{ $slug := replace .relPermalink "/" "" }}
{{ $slug := replace .RelPermalink "/" "" }}
{{ if .Site.Data.comments }}
{{ $comments := index $.Site.Data.comments $slug }}
{{ if $comments }}

View File

@ -1,6 +1,6 @@
<section class="js-comments staticman-comments">
{{ $slug := replace .relPermalink "/" "" }}
{{ $slug := replace .RelPermalink "/" "" }}
{{ if .Site.Data.comments }}
{{ $comments := index $.Site.Data.comments $slug }}
@ -36,7 +36,7 @@
<form class="js-form form" method="post" action="{{ .Site.Params.staticman.api }}">
<input type="hidden" name="options[slug]" value="{{ replace .relPermalink "/" "" }}">
<input type="hidden" name="options[slug]" value="{{ replace .RelPermalink "/" "" }}">
<input type="hidden" name="options[parent]" value="">
{{ if .Site.Params.staticman.recaptcha }}