From 641824260de5a0a8d68059a1928362748cdb66a6 Mon Sep 17 00:00:00 2001 From: Aaron Crawfis Date: Wed, 5 Jul 2023 12:50:25 -0700 Subject: [PATCH 1/2] Update GitHub issues links --- docs/layouts/partials/page-meta-links.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/layouts/partials/page-meta-links.html b/docs/layouts/partials/page-meta-links.html index 06b57245d..2e117191d 100644 --- a/docs/layouts/partials/page-meta-links.html +++ b/docs/layouts/partials/page-meta-links.html @@ -19,7 +19,7 @@ {{ end }} {{ $editURL := printf "%s/edit/%s" $gh_repo $gh_repo_path }} {{ $createURL := printf "%s/edit/%s" $gh_repo $gh_repo_path }} - {{ $issuesURL := printf "%s/issues/new?title=%s" $gh_repo (safeURL $.Title )}} + {{ $issuesURL := printf "%s/issues/new/choose" $gh_repo }} {{ $newPageStub := resources.Get "stubs/new-page-template.md" }} {{ $newPageQS := querify "value" $newPageStub.Content "filename" "change-me.md" | safeURL }} {{ $newPageURL := printf "%s/new/%s?%s" $gh_repo $gh_repo_path $newPageQS }} @@ -27,7 +27,7 @@ Edit this page New docs issue {{ if $gh_project_repo }} - {{ $project_issueURL := printf "%s/issues/new" $gh_project_repo }} + {{ $project_issueURL := printf "%s/issues/new/choose" $gh_project_repo }} New project issue {{ end }} From 18be28979e066512933359812ac40df357afe58b Mon Sep 17 00:00:00 2001 From: Aaron Crawfis Date: Wed, 5 Jul 2023 12:50:35 -0700 Subject: [PATCH 2/2] Only show tags/categories on home page --- .../layouts/partials/taxonomy_terms_cloud.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docs/layouts/partials/taxonomy_terms_cloud.html diff --git a/docs/layouts/partials/taxonomy_terms_cloud.html b/docs/layouts/partials/taxonomy_terms_cloud.html new file mode 100644 index 000000000..8d120710d --- /dev/null +++ b/docs/layouts/partials/taxonomy_terms_cloud.html @@ -0,0 +1,18 @@ +{{ $context := .context }} +{{ $taxo := .taxo }} +{{ $title := .title }} +{{ if and (isset $context.Site.Taxonomies (lower $taxo)) ($context.Page.IsHome) }} + {{ $taxonomy := index $context.Site.Taxonomies (lower $taxo) }} + {{ if (gt (len $taxonomy) 0)}} +
+ {{ with $title }} +
{{ . }}
+ {{ end }} + +
+ {{ end }} +{{ end }} \ No newline at end of file