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 diff --git a/layouts/partials/page-meta-links.html b/layouts/partials/page-meta-links.html new file mode 100644 index 0000000..f6d6c8e --- /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 }}