diff --git a/layouts/docs/single.html b/layouts/docs/single.html index b253f681c..a1cef4dcb 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -18,6 +18,7 @@ {{ partial "components/feedback.html" . }} {{ partial "components/pager.html" . }} {{ partial "components/comments.html" . }} + {{ partial "custom/docs-issue-link.html" . }} diff --git a/layouts/partials/custom/docs-issue-link.html b/layouts/partials/custom/docs-issue-link.html new file mode 100644 index 000000000..d484fbee3 --- /dev/null +++ b/layouts/partials/custom/docs-issue-link.html @@ -0,0 +1,4 @@ +{{- $issueTitle := urlquery (printf "Improve: %s" .Title) -}} +{{- $issueBody := urlquery (printf "Page: %s" .Permalink) -}} +{{- $link := printf "https://github.com/medic/cht-docs/issues/new?title=%s&body=%s" $issueTitle $issueBody -}} +Create Docs Issue ↗ \ No newline at end of file diff --git a/layouts/partials/custom/head-end.html b/layouts/partials/custom/head-end.html index 6933ef943..98cecb9d5 100644 --- a/layouts/partials/custom/head-end.html +++ b/layouts/partials/custom/head-end.html @@ -402,5 +402,6 @@ } else { init(); } + })();