diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 35c95f5..38d7982 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,7 +2,9 @@
{{ partial "content.html" . }} -
+ {{ if .Content }} +
+ {{ end }} {{ $parent := . }} {{ $sorted_pages := sort .Site.Pages (default "Title" .Params.sort_by) (default "asc" .Params.sort_order)}} {{ $valid_pages := where $sorted_pages ".Parent" "!=" nil }} diff --git a/static/src/js/index.js b/static/src/js/index.js index 03cda40..d51907f 100644 --- a/static/src/js/index.js +++ b/static/src/js/index.js @@ -49,7 +49,3 @@ $('.navbar-brand').on('click', function (event) { } event.preventDefault(); }); - -$('.nav-item.dropdown').on('click', function () { - window.location = $(this).find('a').attr('href'); -}); diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index 0df69fb..9bce686 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -170,6 +170,11 @@ pre.chroma { } } -.dropdown:hover > .dropdown-menu { - display: block; +.dropdown-menu { + min-width: initial; + padding: $spacer * 0.25 0; + + .dropdown-item { + padding: $spacer * 0.25 $spacer; + } }