From 9abdee5f7c07b3bd12bb14134e9749e3f8a7d483 Mon Sep 17 00:00:00 2001 From: Mateusz Hromada Date: Tue, 11 Sep 2018 10:21:57 +0200 Subject: [PATCH] Add subpages in menu. --- layouts/.index.html.swp | Bin 12288 -> 0 bytes layouts/partials/sidebar.html | 10 +++++++++- static/css/labs.css | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) delete mode 100644 layouts/.index.html.swp diff --git a/layouts/.index.html.swp b/layouts/.index.html.swp deleted file mode 100644 index 84ae042b65df9041a43be75a3217fd81611711ee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI%y-ve05C`z18$B7Xo!q>v&CWZzQyGk4is({yE=OI{l1H?P< z08B80IMW~@MCl6XZ|UOZY~Lk6sYBKF(%#0VSn-#L#}v`s#Qc8cVTx|2iLyfKNV;u=>3w87^_F|!?bs@RC$@>=a?OCV#OX*K#99e2m9h3*pEn1&csKw6 diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 048389f..f1c8ad7 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -6,7 +6,15 @@ {{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
    {{ range .Children }} -
  • {{ .Name }}
  • +
  • {{ .Name }} + {{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }} + + {{ end }} +
  • {{ end }}
{{ end }} diff --git a/static/css/labs.css b/static/css/labs.css index 982495d..3c09159 100644 --- a/static/css/labs.css +++ b/static/css/labs.css @@ -52,6 +52,10 @@ BODY { padding-left: 40px; } +.sidebar .subsub-item > a{ + padding-left: 60px; +} + .sidebar .active > a { color: #fff; background-color: #428bca;