From e2efb548dd2fff6de54ca645bb566e8ebece6ce8 Mon Sep 17 00:00:00 2001 From: Felipe Zipitria Date: Thu, 11 Apr 2024 17:13:08 -0300 Subject: [PATCH] fix: edit link in footer Signed-off-by: Felipe Zipitria --- layouts/partials/footer/github.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 layouts/partials/footer/github.html diff --git a/layouts/partials/footer/github.html b/layouts/partials/footer/github.html new file mode 100644 index 0000000..54cf048 --- /dev/null +++ b/layouts/partials/footer/github.html @@ -0,0 +1,13 @@ +{{ with .Site.Params.github }} +{{ if and .repo_url .show_edit_link }} +{{ with $.File }} +{{ $pageRelPath := replace .Path "\\" "/" }} +{{ $editURL := printf "%s/content/%s" $.Site.Params.github.repo_url $pageRelPath }} + + + {{ $.Site.Params.github_edit | default "Edit this page on GitHub" }} + + +{{ end }} +{{ end }} +{{ end }} \ No newline at end of file