|
82 | 82 | {{- $params = merge $params (dict |
83 | 83 | "page" page |
84 | 84 | "list" $pages |
85 | | - "limit" $args.limit |
86 | 85 | "cols" $args.cols |
87 | | - "icon-rounded" $args.iconRounded |
88 | | - "icon-style" $args.iconStyle |
| 86 | + "limit" $args.limit |
| 87 | + "padding" $args.padding |
89 | 88 | "href" (cond $moreButton $moreLink "") |
90 | | - "href-title" (cond $moreButton $moreTitle "") |
91 | 89 | "href-force" (gt $result.total (len $result.pages)) |
92 | | - "more-link-type" $moreType |
93 | | - "more-link-icon" $moreIcon |
94 | 90 | )}} |
95 | 91 |
|
96 | 92 | {{ if $args.scroll }} |
|
100 | 96 | "body-style" "title" |
101 | 97 | "footer-style" "none" |
102 | 98 | "gutter" 1 |
103 | | - "padding" 3 |
104 | 99 | "ratio" "1x1" |
105 | 100 | "orientation" "horizontal-sm" |
106 | 101 | "styles" (cond $args.bento $styles "") |
107 | 102 | ) -}} |
108 | 103 | {{ else }} |
109 | 104 | {{ $params = merge $params (dict |
110 | | - "header-style" $args.headerStyle |
111 | | - "footer-style" $args.footerStyle |
112 | | - "padding" $args.padding |
113 | | - "class" (or $args.class "border-0") |
114 | | - "align" "start" |
115 | | - "orientation" $args.orientation |
116 | | - "hook" "assets/live-card.html" |
117 | | - "pagination" $args.pagination |
118 | | - "paginate" $paginate |
| 105 | + "header-style" $args.headerStyle |
| 106 | + "body-style" $args.bodyStyle |
| 107 | + "footer-style" $args.footerStyle |
| 108 | + "class" (or $args.class "border-0") |
| 109 | + "align" "start" |
| 110 | + "orientation" $args.orientation |
| 111 | + "href-title" (cond $moreButton $moreTitle "") |
| 112 | + "icon-rounded" $args.iconRounded |
| 113 | + "icon-style" $args.iconStyle |
| 114 | + "hook" "assets/live-card.html" |
| 115 | + "more-link-type" $moreType |
| 116 | + "more-link-icon" $moreIcon |
| 117 | + "pagination" $args.pagination |
| 118 | + "paginate" $paginate |
119 | 119 | ) -}} |
120 | 120 | {{ end }} |
121 | 121 | {{ if gt (len $pages) 0 }} |
|
0 commit comments