From 05a646a7ef4b001fd4cb314173812d0674a5a0ea Mon Sep 17 00:00:00 2001 From: Doge Date: Sat, 22 May 2021 20:59:07 +0800 Subject: Add site boardcast support with mourn mode --- layout/_partial/head.ejs | 2 +- layout/index.ejs | 11 +++++++++++ layout/layout.ejs | 6 +++++- 3 files changed, 17 insertions(+), 2 deletions(-) (limited to 'layout') diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index e093db6..5e3296a 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -26,7 +26,7 @@ <% } %> - + \ No newline at end of file diff --git a/layout/index.ejs b/layout/index.ejs index 106b7f4..239edaa 100644 --- a/layout/index.ejs +++ b/layout/index.ejs @@ -1,3 +1,14 @@ +<% if (theme.boardcast.enable) { %> +
+
+
+
+ <%= theme.boardcast.message %> +
+
+
+
+<% } %> <% page.posts.each(function (post) { %>
diff --git a/layout/layout.ejs b/layout/layout.ejs index db6dfb5..62c04c3 100644 --- a/layout/layout.ejs +++ b/layout/layout.ejs @@ -1,5 +1,9 @@ - +<% if (theme.mourn) { %> + +<% } else { %> + +<% } %> <%- partial('_partial/head') %> <%- partial('_partial/header') %> -- cgit v1.2.3