Make GitInfo not required for 'edit this page' link

soper-book
Alex Shpak 2019-11-16 21:49:48 +01:00
parent 1e4d0001e2
commit f1d4aeb69a
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
{{ end }}
{{ end }}
{{ if and .File .GitInfo .Site.Params.BookRepo .Site.Params.BookEditPath }}
{{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }}
<div>
<a class="flex align-center" href="{{ .Site.Params.BookRepo }}/{{ .Site.Params.BookEditPath }}/{{ .File.Path }}" target="_blank">
<img src="{{ "svg/edit.svg" | relURL }}" alt="Edit" />