From 2c9377fdc3d7532e99308a71f4166e5cbe611bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Fri, 17 Mar 2023 13:44:42 +0100 Subject: [PATCH 1/3] Fix meta partial, edit links and mermaid --- layouts/partials/page-meta-links.html | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 layouts/partials/page-meta-links.html diff --git a/layouts/partials/page-meta-links.html b/layouts/partials/page-meta-links.html new file mode 100644 index 0000000..f96f51a --- /dev/null +++ b/layouts/partials/page-meta-links.html @@ -0,0 +1,37 @@ +{{ if .Path }} +{{ $pathFormatted := replace .Path "\\" "/" }} +{{ $gh_repo := ($.Param "github_repo") }} +{{ $gh_subdir := ($.Param "github_subdir") }} +{{ $gh_project_repo := ($.Param "github_project_repo") }} +{{ $gh_branch := (default "master" ($.Param "github_branch")) }} +{{ if $gh_repo }} +
+{{ $editURL := printf "%s/edit/%s/content/%s" $gh_repo $gh_branch $pathFormatted }} +{{ $issuesURL := printf "%s/issues/new?title=%s" $gh_repo (htmlEscape $.Title )}} + {{ T "post_edit_this" }} + {{ T "post_create_issue" }} +{{ if $gh_project_repo }} +{{ $project_issueURL := printf "%s/issues/new" $gh_project_repo }} + {{ T "post_create_project_issue" }} +{{ end }} + + +
+{{ end }} +{{ end }} \ No newline at end of file From 2609e1bf8aff3381cf515b5f0e967fe285c76057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Fri, 17 Mar 2023 13:46:45 +0100 Subject: [PATCH 2/3] Add newline --- layouts/partials/page-meta-links.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/page-meta-links.html b/layouts/partials/page-meta-links.html index f96f51a..f6d6c8e 100644 --- a/layouts/partials/page-meta-links.html +++ b/layouts/partials/page-meta-links.html @@ -34,4 +34,4 @@ {{ end }} -{{ end }} \ No newline at end of file +{{ end }} From 9a3fb45f713f7cb3fb1827c7140b357f628facf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Fri, 17 Mar 2023 13:47:31 +0100 Subject: [PATCH 3/3] Add changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93b0afd..f53a941 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Add code signing documentation +- Add `page-meta-links.html` for proper link formatting. ## [0.0.7] - 2023-03-13