Skip to content

Commit

Permalink
Merge pull request #310 from iArchitSharma/table
Browse files Browse the repository at this point in the history
table fix
  • Loading branch information
iArchitSharma authored Jun 29, 2024
2 parents e2a1fb1 + 10ba2f5 commit de0f46c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/shortcodes/csvtable.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $data := "" }}

{{ $p := "static/data/csv/keys.csv" }}
{{ $excludedColumns := slice 0 9 10 11 12 13 14 15 16 }}
{{ $excludedColumns := slice 0 10 11 12 13 14 15 16 17 18 }}

{{ if os.FileExists $p }}
{{ $opts := dict "delimiter" "," }}
Expand Down Expand Up @@ -47,9 +47,9 @@ <h2>{{ $category }} Permissions</h2>
{{ if and (gt $i 0) (eq (trim (index $row 0) " ") $category) }}
<tr>
{{ range $j, $cell := $row }}
{{ if and (not (in $excludedColumns $j)) (or (gt $j 2) (lt $j 8)) }}
{{ if and (not (in $excludedColumns $j)) (or (gt $j 2) (lt $j 10)) }}
<td>
{{ if and (gt $j 2) (lt $j 8) }}
{{ if and (gt $j 2) (lt $j 10) }}
{{ if eq $cell "X" }}
{{ else }}
Expand Down

0 comments on commit de0f46c

Please sign in to comment.