Skip to content

Commit

Permalink
test division
Browse files Browse the repository at this point in the history
  • Loading branch information
chenopis committed Jun 6, 2018
1 parent 789e289 commit b16f50b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/docs/browse.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ <h3><a href="{{ .RelPermalink }}">{{ .Params.bigheader | default .Title }}</a></
{{ $num_pages := len $pages }}
{{ if gt $num_pages 0 }}
{{ $column_size := (div $num_pages 3) | math.Ceil | int | default 1 }}
<div style="visibility: hidden">column_size: {{ (div $num_pages 3) | math.Ceil }}</div>
<div>num_pages: {{ $num_pages }}, div 3: {{ (div $num_pages 3) }}</div>
{{ range $i, $e := $pages.ByWeight }}
{{ $offset := mod $i $column_size | add 1 }}
<div style="visibility: hidden">offset: {{ $offset }}</div>
<div>offset: {{ $offset }}</div>
{{ if eq $offset 1 }}
<div class="browsecolumn">
{{ end }}
Expand Down

0 comments on commit b16f50b

Please sign in to comment.