fix: fix character constant "pathname"

when setting default for the configuration item Params.utterances.issueTerm, "pathname" should be used.
This commit is contained in:
Mogeko 2021-09-14 22:17:41 +02:00
parent 64d4afb610
commit 9bd967fd76
No known key found for this signature in database
GPG Key ID: B35485A88F40AD2C
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
var owner = JSON.parse({{ $owner | jsonify }}); var owner = JSON.parse({{ $owner | jsonify }});
{{ $repo:= .Site.Params.utterances.repo }} {{ $repo:= .Site.Params.utterances.repo }}
var repo = JSON.parse({{ $repo | jsonify }}); var repo = JSON.parse({{ $repo | jsonify }});
{{ $issueTerm:= .Site.Params.utterances.issueTerm | default 'pathname' }} {{ $issueTerm:= .Site.Params.utterances.issueTerm | default "pathname" }}
var issueTerm = JSON.parse({{ $issueTerm | jsonify }}); var issueTerm = JSON.parse({{ $issueTerm | jsonify }});
{{ $baseTheme:= index .Site.Params.themeOptions 0 }} {{ $baseTheme:= index .Site.Params.themeOptions 0 }}
var baseTheme = JSON.parse({{ $baseTheme | jsonify }}); var baseTheme = JSON.parse({{ $baseTheme | jsonify }});