diff --git a/config.toml b/config.toml index 1c2eb90b709a34bdf28e07de0b597af59bd3836e..0d7e4b8b0ed72a0df575d73f3d0d19749474906c 100644 --- a/config.toml +++ b/config.toml @@ -42,3 +42,18 @@ googleAnalytics = "GTM-WLHTXFF" pre = "blog" pageref = "/blog" weight = 2 + +[[menu.main]] + identifier = "community" + name = "Community" + weight = 3 +[[menu.main]] + identifier = "gitlab" + parent = "community" + name = "Gitlab" + url = "https://gitlab.arm.com/soafee" +[[menu.main]] + identifier = "slack" + parent = "community" + name = "Slack" + url = "https://join.slack.com/t/soafee/shared_invite/zt-12e17668h-DttNpOtyFNi5H1udojYmtg" diff --git a/themes/soafee/layouts/partials/header.html b/themes/soafee/layouts/partials/header.html index e7ec970d05f7d59bd03196ad05763a2a81da1762..e899d47dd8d1b7c3fd651b5658a3d640209f5b77 100644 --- a/themes/soafee/layouts/partials/header.html +++ b/themes/soafee/layouts/partials/header.html @@ -11,15 +11,29 @@ diff --git a/themes/soafee/layouts/partials/menu_item.html b/themes/soafee/layouts/partials/menu_item.html new file mode 100644 index 0000000000000000000000000000000000000000..a31da83fbfdcd781d35691f93864b49193b3b270 --- /dev/null +++ b/themes/soafee/layouts/partials/menu_item.html @@ -0,0 +1,13 @@ +{{ $currentPage := .currentPage | default . }} +{{ $ctx := .ctx | default . }} + +{{ $is := $currentPage.IsMenuCurrent "main" $ctx }} +{{ $has := $currentPage.HasMenuCurrent "main" $ctx }} + +
  • + +{{- $text := print $ctx.Name | safeHTML -}} +{{- $text -}} + +