diff --git a/layouts/partials/utilities/GetMenu.html b/layouts/partials/utilities/GetMenu.html index 69349631..b81a0c64 100644 --- a/layouts/partials/utilities/GetMenu.html +++ b/layouts/partials/utilities/GetMenu.html @@ -1 +1,6 @@ -{{ return index .Site.Data .Section }} \ No newline at end of file +{{- $menu := "" -}} +{{- if .IsPage -}} + {{- $menu = index .Site.Data .Section -}} +{{- end -}} + +{{- return $menu -}} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 629f8de5..8ec01d01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gethinode/hinode", - "version": "0.13.0", + "version": "0.13.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@gethinode/hinode", - "version": "0.13.0", + "version": "0.13.1", "license": "MIT", "devDependencies": { "@fortawesome/fontawesome-free": "^6.4.0", diff --git a/package.json b/package.json index ce88e28b..7bad28ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gethinode/hinode", - "version": "0.13.0", + "version": "0.13.1", "description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator", "keywords": [ "hugo",