From 6e99f42af823c480e23b2b36e026ee80ecaa3186 Mon Sep 17 00:00:00 2001 From: jirikrepl Date: Tue, 7 Jan 2020 11:03:36 +0100 Subject: [PATCH 1/2] feat: added "algolia search" css class to layout templates hugo uses single and list templates: https://gohugo.io/templates/lists/ https://gohugo.io/templates/single-page-templates/ we use single templates for "leaf" pages at the bottom of and list templates for all other pages --- layouts/_default/list.html | 2 +- layouts/_default/single.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 5e70b50..40e3735 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,5 @@ {{ define "main" }} - + {{ if not .Params.disable_breadcrumbs }} {{ partial "breadcrumb_recursive.html" (dict "menu" .Site.Menus.main "page" . ) }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4748ea2..47f4a9f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ define "main" }} - + {{ if not .Params.disable_breadcrumbs }} {{ partial "breadcrumb_recursive.html" (dict "menu" .Site.Menus.main "page" . ) }} From e515a9e85588db22507e18658af4e43f359181ef Mon Sep 17 00:00:00 2001 From: jirikrepl Date: Tue, 7 Jan 2020 11:27:49 +0100 Subject: [PATCH 2/2] refactor: changing weight in table of content this will fix the git merge conflict between publish and publish-develop --- config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 9314f66..31ea006 100644 --- a/config.toml +++ b/config.toml @@ -721,7 +721,7 @@ theme = "doc-theme" url = "/firmwareapi/pycom/network/coap/" identifier = "firmwareapi@pycom@network@coap" parent = "firmwareapi@pycom@network" - weight = 30 + weight = 20 [[menu.main]] name = "Bluetooth"