Fix typo: .relPermalink → .RelPermalink
This commit is contained in:
parent
37d73ff832
commit
c44ae13891
2 changed files with 3 additions and 3 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- if .Site.Params.staticman -}}
|
{{- if .Site.Params.staticman -}}
|
||||||
| <i class="fas fa-comment"></i>
|
| <i class="fas fa-comment"></i>
|
||||||
{{ $slug := replace .relPermalink "/" "" }}
|
{{ $slug := replace .RelPermalink "/" "" }}
|
||||||
{{ if .Site.Data.comments }}
|
{{ if .Site.Data.comments }}
|
||||||
{{ $comments := index $.Site.Data.comments $slug }}
|
{{ $comments := index $.Site.Data.comments $slug }}
|
||||||
{{ if $comments }}
|
{{ if $comments }}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<section class="js-comments staticman-comments">
|
<section class="js-comments staticman-comments">
|
||||||
|
|
||||||
{{ $slug := replace .relPermalink "/" "" }}
|
{{ $slug := replace .RelPermalink "/" "" }}
|
||||||
|
|
||||||
{{ if .Site.Data.comments }}
|
{{ if .Site.Data.comments }}
|
||||||
{{ $comments := index $.Site.Data.comments $slug }}
|
{{ $comments := index $.Site.Data.comments $slug }}
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
|
|
||||||
<form class="js-form form" method="post" action="{{ .Site.Params.staticman.api }}">
|
<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="">
|
<input type="hidden" name="options[parent]" value="">
|
||||||
|
|
||||||
{{ if .Site.Params.staticman.recaptcha }}
|
{{ if .Site.Params.staticman.recaptcha }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue