From ff6b76cdeb4c204ece2fc866bbd9cf323d5cf26b Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Mon, 4 Sep 2023 08:37:52 +0200 Subject: [PATCH] hugo: remove edit page link for upstream pages Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- layouts/partials/github-links.html | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/layouts/partials/github-links.html b/layouts/partials/github-links.html index 8f85fea884..22a3c0cde4 100644 --- a/layouts/partials/github-links.html +++ b/layouts/partials/github-links.html @@ -1,14 +1,20 @@ {{ if hugo.IsProduction }} -{{ if .File }} +{{ with .File }} +{{ if not (in .Filename "/_vendor/") }}
- edit{{ T "editPage" }} - open_in_new -
-- done{{ T "requestChanges" }}open_in_new + edit + {{ T "editPage" }} + open_in_new +
{{ end }} {{ end }} ++ done + {{ T "requestChanges" }} + open_in_new + +
+{{ end }}