Skip to content

Commit

Permalink
2023-11-04 13:50:58
Browse files Browse the repository at this point in the history
  • Loading branch information
uidHUB committed Nov 4, 2023
1 parent 59f4b75 commit 79712df
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions layouts/drafts/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@

<div class="row row-cols-1 row-cols-xl-2 g-3">
{{ range (.Paginator.Pages) }}
{{ $type := ((.Type) | singularize) }}
<div class="col">
<div class="d-sm-block d-md-none">
{{ (.Render "view/02") }}
</div>
<div class="d-none d-md-block">
{{ (.Render "view/01") }}
</div>
{{ if (in ($type) "faq") }}
{{ (partial (printf "module/node/modal/%s" ($type)) .) }}
{{ end }}
<div class="col">
<div class="d-sm-block d-md-none">
{{ (.Render "view/02") }}
</div>
<div class="d-none d-md-block">
{{ (.Render "view/01") }}
</div>
{{ if (in ((.Type) | singularize) "faq") }}
{{ (partial (printf "module/node/modal/%s" ((.Type) | singularize)) .) }}
{{ end }}
</div>
{{ end }}
</div>

Expand Down

0 comments on commit 79712df

Please sign in to comment.