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

19 lines
522 B
Plaintext

<%
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>