2019-01-04 18:14:53 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
2019-01-04 18:36:40 +00:00
|
|
|
|
2019-01-04 18:14:53 +00:00
|
|
|
<title><%= metadata.title %></title>
|
2019-01-04 18:36:40 +00:00
|
|
|
|
|
|
|
<link rel="canonical" href="https://shadowfacts.net<%= metadata.permalink %>">
|
|
|
|
<link rel="alternate" type="application/rss+xml" title="Shadowfacts" href="https://shadowfacts.net/feed.xml">
|
|
|
|
|
|
|
|
<link rel="icon" href="/favicon.ico">
|
|
|
|
<link rel="apple-touch-icon-precomposed" href="/favicon-152.png">
|
|
|
|
<meta name="msapplication-TileColor" content="#F9C72F">
|
|
|
|
<meta name="msapplication-TileImage" content="/favicon-152.png">
|
|
|
|
|
2019-01-04 22:54:34 +00:00
|
|
|
<meta name="twitter:card" content="summary" />
|
|
|
|
<meta name="twitter:creator" content="@ShadowfactsDev" />
|
|
|
|
<meta property="og:title" content="<%= metadata.title %>" />
|
|
|
|
<% if (metadata.shortDesc) { %>
|
|
|
|
<meta property="og:type" content="article" />
|
|
|
|
<meta property="og:description" content="<%= metadata.shortDesc %>" />
|
|
|
|
<% } else { %>
|
|
|
|
<meta property="og:type" content="website" />
|
|
|
|
<meta property="og:description" content="Just my various ramblings." />
|
|
|
|
<% } %>
|
|
|
|
<meta property="og:image" content="https://shadowfacts.net/shadowfacts.png" />
|
|
|
|
<meta property="og:url" content="https://shadowfacts.net<%= metadata.permalink %>" />
|
|
|
|
<meta property="og:site_name" content="Shadowfacts" />
|
|
|
|
|
2019-01-04 18:14:53 +00:00
|
|
|
<script>
|
|
|
|
(() => {
|
|
|
|
let theme = localStorage.getItem("theme");
|
|
|
|
if (theme !== "light" && theme !== "dark") {
|
|
|
|
theme = "light";
|
|
|
|
localStorage.setItem("theme", theme);
|
|
|
|
}
|
|
|
|
document.write(`<link rel="stylesheet" href="/css/${theme}.css">`);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
<noscript>
|
|
|
|
<link rel="stylesheet" href="/css/light.css">
|
|
|
|
</noscript>
|
|
|
|
</head>
|
2019-01-04 23:24:16 +00:00
|
|
|
<body itemscope itemtype="https://schema.org/Blog">
|
2019-01-04 18:14:53 +00:00
|
|
|
<header class="site-header">
|
|
|
|
<div class="container">
|
2019-01-05 02:44:55 +00:00
|
|
|
<h1 class="site-title"><%- fancyLink("Shadowfacts", "/") %></h1>
|
2019-01-04 18:14:53 +00:00
|
|
|
<p class="site-description">The outper part of a shadow is called the penumbra.</p>
|
2019-01-05 02:44:55 +00:00
|
|
|
<nav class="site-nav" role="navigation">
|
2019-01-04 18:14:53 +00:00
|
|
|
<ul>
|
2019-01-05 02:44:55 +00:00
|
|
|
<li><%- fancyLink("Meme Machine", "https://mememachine.shadowfacts.net") %></li>
|
|
|
|
<li><%- fancyLink("RTFM", "https://rtfm.shadowfacts.net") %></li>
|
|
|
|
<li><%- fancyLink("Type", "https://type.shadowfacts.net") %></li>
|
|
|
|
<li><%- fancyLink("Tutorials", "/tutorials/") %></li>
|
2019-01-04 18:14:53 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
2019-01-05 02:44:55 +00:00
|
|
|
<div class="container" role="main">
|
2019-01-04 18:14:53 +00:00
|
|
|
<%- content %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="site-footer">
|
|
|
|
<div class="container">
|
|
|
|
<div>
|
|
|
|
<h2 class="site-title">Shadowfacts</h2>
|
|
|
|
<p class="ui-controls">
|
|
|
|
<label for="dark-theme">Dark Theme: </label>
|
|
|
|
<input type="checkbox" name="" id="dark-theme">
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<nav class="social-links">
|
|
|
|
<ul>
|
2019-01-05 02:44:55 +00:00
|
|
|
<li><%- fancyLink("Email", "mailto:me@shadowfacts.net") %></li>
|
|
|
|
<li><%- fancyLink("RSS", "/feed.xml") %></li>
|
|
|
|
<li><%- fancyLink("GitHub", "https://github.com/shadowfacts") %></li>
|
|
|
|
<li><%- fancyLink("Twitter", "https://twitter.com/ShadowfactsDev") %></li>
|
|
|
|
<li><%- fancyLink("Mastodon", "https://social.shadowfacts.net/users/shadowfacts") %></li>
|
2019-01-04 18:14:53 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
(() => {
|
|
|
|
const el = document.getElementById("dark-theme");
|
|
|
|
el.checked = localStorage.getItem("theme") === "dark";
|
|
|
|
el.onclick = function() {
|
|
|
|
const theme = this.checked ? "dark" : "light";
|
|
|
|
localStorage.setItem("theme", theme);
|
|
|
|
window.location.reload();
|
|
|
|
};
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
<noscript>
|
|
|
|
<style>
|
|
|
|
.ui-controls {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</noscript>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|