Skip to content

Commit

Permalink
table fix
Browse files Browse the repository at this point in the history
Signed-off-by: Archit Sharma <[email protected]>
  • Loading branch information
iArchitSharma committed Jun 29, 2024
1 parent e2a1fb1 commit 10ba2f5
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 10ba2f5

Please sign in to comment.