moving to one pass with hugo..

This commit is contained in:
Marcell Mars 2020-12-18 22:41:06 +01:00
parent 4732c15fd7
commit 9738d858fd

View file

@ -26,7 +26,7 @@
{{ $is_in_is_in = $is_in_is_in | append ($.GetPage .) }}
{{ end }}
{{ if eq hugo.Environment "preview" }}
{{ if eq hugo.Environment "gitea" }}
<div class="headiter">
<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_edit/master/content/{{ .File }}">EDIT_THIS</a>
{{ with $scratch.core }}<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_new/master/content/{{ index . 0 }}/">ADD_{{ index . 0 | upper }}</a>{{ end }}