Skip to content

Commit f9be8f7

Browse files
committed
fix indent
1 parent 1ceb7cc commit f9be8f7

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

portal/_extensions/gallery_generator.py

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -127,29 +127,30 @@ def build_from_items(items, filename, title='Gallery', subtitle=None, subtext=No
127127
modal_str = '\n'.join([m.lstrip() for m in modal_str.split('\n')])
128128
else:
129129
modal_str = ''
130-
new_card = f"""
131-
:::{{grid-item-card}}
132-
:shadow: md
133-
:class-footer: card-footer
134-
:class-card: tagged-card {tag_classes}
135-
136-
<div class="d-flex gallery-card">
137-
<img src="{thumbnail}" class="gallery-thumbnail" />
138-
<div class="container">
139-
<a href="{item["url"]}" class="text-decoration-none"><h4 class="display-4 p-0">{item["title"]}</h4></a>
140-
<p class="card-subtitle">{authors_str}<br/>{affiliations_str}</p>
141-
<p class="my-2">{short_description} </p>
142-
</div>
130+
131+
new_card = f"""
132+
:::{{grid-item-card}}
133+
:shadow: md
134+
:class-footer: card-footer
135+
:class-card: tagged-card {tag_classes}
136+
137+
<div class="d-flex gallery-card">
138+
<img src="{thumbnail}" class="gallery-thumbnail" />
139+
<div class="container">
140+
<a href="{item["url"]}" class="text-decoration-none"><h4 class="display-4 p-0">{item["title"]}</h4></a>
141+
<p class="card-subtitle">{authors_str}<br/>{affiliations_str}</p>
142+
<p class="my-2">{short_description} </p>
143143
</div>
144-
{modal_str}
144+
</div>
145+
{modal_str}
145146
146-
+++
147+
+++
147148
148-
{tags}
149+
{tags}
149150
150-
:::
151+
:::
151152
152-
"""
153+
"""
153154

154155
grid_body.append('\n'.join([m.lstrip() for m in new_card.split('\n')]))
155156

0 commit comments

Comments
 (0)