Skip to content

Commit 3ac1562

Browse files
committed
hide image caption if the value is null as text.
1 parent 386ee47 commit 3ac1562

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

views/newsletter.ejs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,10 @@
993993
style="border-radius: 5px; border: none; -ms-interpolation-mode: bicubic; max-width: 100%;"
994994
width="600">
995995
</td>
996-
</tr><% if (post.featuredImageCaption) { %>
996+
</tr>
997+
998+
<!-- I saw `null` as a text for `post.featuredImageCaption`, weird. -->
999+
<% if (post.featuredImageCaption && post.featuredImageCaption !== 'null') { %>
9971000
<tr>
9981001
<td align="center"
9991002
style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; vertical-align: top; width: 100%; padding-bottom: 30px; text-align: center; font-size: 13px; color: #738a94;"

0 commit comments

Comments
 (0)