diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-07-26 13:30:11 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-07-26 13:30:11 +0300 |
commit | c035fd9e8f3cd5647e40b4acfec2a561257dd252 (patch) | |
tree | 9ab22aaafb32d1c2240c4767f5b3508e1027578e /layouts | |
parent | ed37ab813f0a6078ae7689704c4e6df004ea3f13 (diff) |
fix children css
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/children.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/shortcodes/children.html b/layouts/shortcodes/children.html index 563d0ca..fe2da11 100644 --- a/layouts/shortcodes/children.html +++ b/layouts/shortcodes/children.html @@ -1,3 +1,4 @@ +{{ $_hugo_config := `{ "version": 1 }` }} {{- $showhidden := .Get "showhidden"}} {{- $style := .Get "style" | default "li" }} {{- $depth := .Get "depth" | default 1 }} @@ -14,13 +15,14 @@ {{- $cpage := (.Scratch.Get "current") }} +<link rel="stylesheet" type="text/css" href='{{ (resources.Get "sass/shortcodes/children.scss" | toCSS).Permalink }}'> + <ul class="children children-{{$style}}"> {{- .Scratch.Set "pages" $cpage.Pages }} {{- if $cpage.Sections}} {{- .Scratch.Set "pages" ($cpage.Pages | union $cpage.Sections) }} {{- end}} {{- $pages := (.Scratch.Get "pages") }} - {{- if eq $sortTerm "Weight"}} {{- template "childs" dict "menu" $pages.ByWeight "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm}} {{- else if eq $sortTerm "Name"}} |