Fix typo: .relPermalink → .RelPermalink
This commit is contained in:
parent
37d73ff832
commit
c44ae13891
@ -18,7 +18,7 @@
|
||||
{{ end }}
|
||||
{{- if .Site.Params.staticman -}}
|
||||
| <i class="fas fa-comment"></i>
|
||||
{{ $slug := replace .relPermalink "/" "" }}
|
||||
{{ $slug := replace .RelPermalink "/" "" }}
|
||||
{{ if .Site.Data.comments }}
|
||||
{{ $comments := index $.Site.Data.comments $slug }}
|
||||
{{ if $comments }}
|
||||
|
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user