feat(app/metrics): add warnings for embed misconfiguration (closes #1196)

This commit is contained in:
lowlighter
2022-08-28 13:34:31 -04:00
parent b618c7879f
commit 0a1c578d4f
6 changed files with 41 additions and 3 deletions

View File

@@ -51,6 +51,7 @@ WARRANTY, to the extent permitted by applicable law.
Last generated: <%= meta.generated %>
</div><% } -%>
<% if (warnings.length) { %><div class="warnings"><%- warnings.map(({warning}) => `WARN: ${warning.message}`).join("<br/>") %></div><% } %><%# -%>
<% for (const partial of [...partials]) { %><%- await include(`partials/${partial}.ejs`) %><% } -%>
<% if (base.metadata) { -%>

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@@ -62,6 +62,10 @@
.banner, footer {
color: #AE9DA7;
}
.warnings {
color: #D79533;
white-space: normal;
}
/* Isocalendar */
.isocalendar svg {