From 2c991534ed30fb5bfad16df9a443672ec9f1dc12 Mon Sep 17 00:00:00 2001 From: Jeremy Vyska <35526546+JeremyVyska@users.noreply.github.com> Date: Mon, 21 Feb 2022 15:43:06 +0100 Subject: [PATCH 1/2] Re-enable search --- config.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 3901c86d..b2113fb6 100644 --- a/config.toml +++ b/config.toml @@ -76,7 +76,7 @@ description = "Guidelines for when Developing AL for Microsoft Dynamics 365 Busi languageName = "English" title = "alguidelines.dev - Business Central Design Patterns" # Weight used for sorting. -weight = 1 +#weight = 1 # Everything below this are Site Params @@ -90,6 +90,7 @@ shorttitle = "alguidelines.dev" # Google Custom Search Engine ID. Remove or comment out to disable search. # gcs_engine_id = "c632b781ffe71b197" #algolia_docsearch = true +offlineSearch = true # current release branch - could be rc release_branch = "master" From 8cff4e68ab44e1d279426e90f160bbea82f3396a Mon Sep 17 00:00:00 2001 From: Jeremy Vyska <35526546+JeremyVyska@users.noreply.github.com> Date: Mon, 21 Feb 2022 15:43:42 +0100 Subject: [PATCH 2/2] Something in the Hugo multilang not behaving --- layouts/partials/page-meta-links.html | 55 +++++++++++++++++++++++++++ 1 file changed, 55 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 00000000..af9959ba --- /dev/null +++ b/layouts/partials/page-meta-links.html @@ -0,0 +1,55 @@ +{{ if .File }} +{{ $pathFormatted := replace .File.Path "\\" "/" -}} +{{ $gh_repo := ($.Param "github_repo") -}} +{{ $gh_url := ($.Param "github_url") -}} +{{ $gh_subdir := ($.Param "github_subdir") -}} +{{ $gh_project_repo := ($.Param "github_project_repo") -}} +{{ $gh_branch := (default "master" ($.Param "github_branch")) -}} +
+{{ end -}}