From 2065efa34a442fb47b922bb9cea1690b6c58ba73 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Mon, 14 Dec 2020 03:12:18 +0100 Subject: [PATCH] don't show edit buttons for annex and author --- layouts/partials/header.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f0382e8..c45676e 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -22,14 +22,13 @@ {{ end }} {{ if eq hugo.Environment "preview" }} - {{- $giteaUrl := .Site.Params.sandpointsGiteaUrl -}}
- EDIT_THIS - ADD_{{ with $scratch.core }}{{ index . 0 | upper }}{{ end }} - ADD_{{ with $scratch.mantle }}{{ index . 0 | upper }}{{ end }} - ADD_{{ with $scratch.crust }}{{ index . 0 | upper }}{{ end }} - PUBLISH - ? + EDIT_THIS + {{ with $scratch.core }}ADD_{{ index . 0 | upper }}{{ end }} + {{ with $scratch.mantle }}ADD_{{ index . 0 | upper }}{{ end }} + {{ with $scratch.crust }}ADD_{{ index . 0 | upper }}{{ end }} + PUBLISH + ?
{{ end }}