Skip to content

Commit

Permalink
tags: leverage space in terms layout matcornic#530
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed May 19, 2023
1 parent 5554989 commit 5309308
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/term.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{- end }}
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) (.Title | humanize) }}
<h1 id="{{ $title | anchorize }}">{{ $title }}</h1>
<ul>
<ul class="columnize">
{{- range sort .Pages "Title" }}
{{- $c:=""}}{{/* display pages of a term */}}
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableTagHiddenPages true) ) }}
Expand Down
9 changes: 9 additions & 0 deletions static/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1768,3 +1768,12 @@ html[dir="rtl"] #sidebar ul.collapsible-menu > li > label > i.fa-chevron-right {
.tax-box {
width: 18rem;
}

.columnize{
column-count: 2;
}
@media screen and (min-width: 79.25rem) {
.columnize{
column-count: 3;
}
}

0 comments on commit 5309308

Please sign in to comment.