Skip to content

Commit 9c43d63

Browse files
committed
fix: ensure no extra<p> tag is added
1 parent 61094dd commit 9c43d63

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/resources/projects/website/listing/item-grid.ejs.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,12 @@ const flexJustify = showField('author') && showField('date') ? "justify" : showF
141141
let value = readField(item, field);
142142
%>
143143
<tr>
144+
```
145+
144146
<td><%= listing.utilities.fieldName(field) %></td>
145147
<td class="<%- field %>"><%= listing.utilities.outputLink(item, field, value) %></td>
148+
149+
```{=html}
146150
</tr>
147151
<% } %>
148152
</table>

src/resources/projects/website/listing/listing-table.ejs.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,14 @@ return listing.utilities.outputLink(item, field, value, `listing-${field}`);
8282
%>
8383
8484
<tr <%= listing.utilities.metadataAttrs(item) %><%= onclick(item) %>>
85-
<% for (const field of fields){ %>
86-
<td>
8785
```
88-
<%= outputValue(itemNumber, field) %>
89-
```{=html}
90-
</td>
86+
87+
<% for (const field of fields){ %>
88+
<td><%= outputValue(itemNumber, field) %></td>
9189
<% } %>
90+
91+
```{=html}
92+
9293
</tr>
9394
<% } %>
9495
</tbody>

0 commit comments

Comments
 (0)