Initial commit - v0.1.0
This commit is contained in:
69
content/support/error/404.html.ejs
Executable file
69
content/support/error/404.html.ejs
Executable file
@@ -0,0 +1,69 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The Wonder Dome | Page Not Found</title>
|
||||
<link rel="stylesheet" href="/styles/styles.<%= site.version -%>.css">
|
||||
<style>
|
||||
*, *:before, *:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
a,
|
||||
a:link {
|
||||
color: #c9bb69;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #c57f5d;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #efb88f;
|
||||
}
|
||||
|
||||
a:active {
|
||||
background-color: #8c272d;
|
||||
color: #efb88f;
|
||||
}
|
||||
|
||||
body {
|
||||
background: url("/images/404-bg.jpg") no-repeat center center fixed;
|
||||
background-color: #121a24;
|
||||
background-size: cover;
|
||||
color: #b9b9ba;
|
||||
line-height: 1.3em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.container {
|
||||
margin: 0 auto;
|
||||
background-color: #333333;
|
||||
background-color: rgba(33,33,33,.7);
|
||||
border-radius: 1em;
|
||||
max-width: 30em;
|
||||
width: 100%;
|
||||
padding: 2em;
|
||||
margin: 2em auto;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Page Not Found</h1>
|
||||
<p>Sorry, but the page you were trying to view does not exist.</p>
|
||||
<p>It looks like this was the result of either:</p>
|
||||
<ul>
|
||||
<li>a mistyped address,</li>
|
||||
<li>an out-of-date link, or</li>
|
||||
<li>a side effect of <a href="https://en.wikipedia.org/wiki/Hackers_(film)">some n00b trying to hack "The Gibson"</a>.</li>
|
||||
</ul>
|
||||
<p>You can <a href="javascript:history.go(-1);" title="Go back and hack!">go back and try again</a>, or just start over at the <a href="/" title="Give up and go to 127.0.0.1!">Wonder Dome home page</a>.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
56
content/support/feed.xml.ejs.off
Executable file
56
content/support/feed.xml.ejs.off
Executable file
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title><%- site.title %></title>
|
||||
<link><%- site.uri %></link>
|
||||
<description><%- site.description %></description>
|
||||
<% if (language) { %>
|
||||
<language><%= language %></language>
|
||||
<% } %>
|
||||
<% if (copyright) { %>
|
||||
<copyright><%= copyright %></copyright>
|
||||
<% } %>
|
||||
<%
|
||||
if (keywords) {
|
||||
var keywords = keywords.split(/\W+/);
|
||||
for (var i=0; i < keywords.length; i++) {
|
||||
if (keywords[i]) {
|
||||
%>
|
||||
<category><%= keywords[i] %></category>
|
||||
<%
|
||||
}
|
||||
}
|
||||
}
|
||||
%>
|
||||
<% if (author.email) { %>
|
||||
<managingEditor><%= author.email %></managingEditor>
|
||||
<webMaster><%= author.email %></webMaster>
|
||||
<% } %>
|
||||
<% if (image) { %>
|
||||
<image><%= image %></image>
|
||||
<% } %>
|
||||
<generator>HarpJS</generator>
|
||||
<atom:link href="<%- site.uri %>/feed.xml" rel="self" type="application/rss+xml" />
|
||||
<%
|
||||
for(slug in public._data) {
|
||||
var
|
||||
post = public._data[slug],
|
||||
now = new Date(),
|
||||
then = post.date_pub ? new Date(post.date_pub) : new Date();
|
||||
if (post.title && !post.is_draft && then.getTime() <= now.getTime()) {
|
||||
%>
|
||||
<item>
|
||||
<title><%- post.title %></title>
|
||||
<description><%= post.description %></description>
|
||||
<pubDate><%= then.toUTCString() %></pubDate>
|
||||
<link><%- site.uri %>/<%- slug %>.html</link>
|
||||
<guid isPermaLink="true"><%- site.uri %>/<%- slug %>.html</guid>
|
||||
|
||||
</item>
|
||||
<%
|
||||
}
|
||||
}
|
||||
%>
|
||||
</channel>
|
||||
</rss>
|
||||
|
14
content/support/sitemap.xml.ejs
Executable file
14
content/support/sitemap.xml.ejs
Executable file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<% site.pages.forEach(function(page) { -%>
|
||||
|
||||
<url>
|
||||
<loc><%= page.path %></loc>
|
||||
<lastmod><%= page.date %></lastmod>
|
||||
</url>
|
||||
<%
|
||||
});
|
||||
-%>
|
||||
|
||||
</urlset>
|
Reference in New Issue
Block a user