hexo/node_modules/hexo-theme-fluid/layout/404.ejs

19 lines
540 B
Plaintext
Raw Normal View History

2023-10-03 11:14:36 +08:00
<%
page.layout = "404"
page.title = theme.page404.title || __('page404.title')
page.subtitle = theme.page404.subtitle || __('page404.subtitle')
page.banner_img = theme.page404.banner_img
page.banner_img_height = theme.page404.banner_img_height
page.banner_mask_alpha = theme.page404.banner_mask_alpha
%>
<script>
function redirect() {
location.href = "<%- url_for('/') %>";
}
<% if (theme.page404.redirect_delay) { %>
setTimeout(redirect, <%= parseInt(theme.page404.redirect_delay) %>)
<% } %>
</script>