Make GitInfo not required for 'edit this page' link

This commit is contained in:
Alex Shpak 2019-11-16 21:49:48 +01:00
parent 1e4d0001e2
commit f1d4aeb69a

View file

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