Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvjeantet <valere.jeantet@gmail.com>2020-09-12 11:56:09 +0300
committervjeantet <valere.jeantet@gmail.com>2020-09-12 11:56:09 +0300
commitdbb1f014183b10444e08fb5b2b76213bdb000e23 (patch)
treed8ca47b73278d9c96cb1c6092270a2485c6bb4cd
parenta035927d9db7431d8611baa84c18f0e2c6c95800 (diff)
fix template which prevent site from buildingdevelop
-rw-r--r--layouts/partials/body-article-sidepage.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/body-article-sidepage.html b/layouts/partials/body-article-sidepage.html
index 4f172d2..219760c 100644
--- a/layouts/partials/body-article-sidepage.html
+++ b/layouts/partials/body-article-sidepage.html
@@ -25,7 +25,7 @@
{{ if .Site.Params.editWithNetlifyCMSURL }}
<li>
- {{$dir := replace .Dir "\\" "/" }}{{if eq $dir "/" }}{{$dir=""}}{{end}}
+ {{$dir := (replace .Dir "\\" "/") }}{{if eq $dir "/" }}{{$dir = ""}}{{end}}
<a href="{{ .Site.BaseURL }}{{ .Site.Params.editWithNetlifyCMSURL }}{{with .File}}{{ replace .Dir "\\" "/" | safeURL }}{{ .BaseFileName }}{{end}}" target="blank">
<i class="fab fa-github"></i>
{{T "Edit-this-page"}}</a>