<%= item.title %>
<% } %> -<% if (showField('subtitle')) { %><%= item.subtitle %>
<% } %>
-<% if (showField('reading-time')) { %><%= item['reading-time'] %>
<% } %>
+``{=html}
+
+<% if (showField('title')) { %>
+`
`{=html}
<% } %>
<% if (fields.includes('filename') || fields.includes('file-modified')) { %>
- `{=html}
<% } %>
-`{=html} <%= item.title %> `
`{=html} +<% } %> + +<% if (showField('subtitle')) { %> +``{=html} <%= item.subtitle %> `
`{=html}
+<% } %>
+
+<% if (showField('reading-time')) { %>
+``{=html} <%= item['reading-time'] %> `
`{=html}
+<% } %>
<% if (fields.includes('categories') && item.categories) { %>
+``{=html}
-
`{=html}
<% } %>
-<% if (showField('description')) { %>
-
- <% for (const category of item.categories) { %>
-
+<% for (const category of item.categories) { %>
+`<%= category %>
- <% } %>
-`{=html} <%= category %> `
`{=html}
+<% } %>
+`<%= item.description %>
+<% if (showField('description')) { %>
+``{=html} <%= item.description %> `
`{=html}
<% } %>
-<%
+
+<%
const flexJustify = showField('author') && showField('date') ? "justify" : showField('author') ? "start" : "end";
%>
+
<% if (showField('author') || showField('date')) { %>
-
-<% if (showField('author')) { %>
+` <% } %>
-<% if (showField('date')) { %><%= item.date %>
<% } %>
-`{=html}
+
+<% if (showField('author')) { %>
+`
-<% for (const field of otherFields) {
-let value = readField(item, field);
-%>
-
+<% if (otherFields.length > 0) { %>
+``{=html}
+<% for (const field of otherFields) {
+let value = readField(item, field);
+%>
+`
`{=html}
<% } %>
-
+` `{=html}
<% } %>
-<% if (otherFields.length > 0) { %>
+<% if (showField('date')) { %>
+``{=html} <%= item.date %> `
`{=html}
+<% } %>
-<%= listing.utilities.fieldName(field) %> | -<%= listing.utilities.outputLink(item, field, value) %> | -
`{=html} <%= listing.utilities.fieldName(field) %> ` | `{=html} +``{=html} <%= listing.utilities.outputLink(item, field, value) %> ` | `{=html} +`