mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 02:55:33 -04:00
fix breaking changes in Hugo 0.57
This commit is contained in:
69
layouts/404.html
Normal file
69
layouts/404.html
Normal file
@@ -0,0 +1,69 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Page Not Found</title>
|
||||
<style>
|
||||
body {
|
||||
background: #efefef;
|
||||
color: #5f5f5f;
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
div#message {
|
||||
background: #fff;
|
||||
max-width: 400px;
|
||||
margin: 100px auto 16px;
|
||||
padding: 16px 32px;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 1px 3px #e0e0e0, 0 1px 2px #888;
|
||||
}
|
||||
div#message h1 {
|
||||
margin: 16px 0;
|
||||
font-size: 24px;
|
||||
font-weight: 300;
|
||||
}
|
||||
div#message p {
|
||||
margin: 16px 0;
|
||||
font-size: 15px;
|
||||
line-height: 140%;
|
||||
}
|
||||
div#message a {
|
||||
color: #0077a7;
|
||||
}
|
||||
div#message a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
body, div#message {
|
||||
background: #fff;
|
||||
margin-top: 16px;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body id="error">
|
||||
<div id="message">
|
||||
<h1>Welp, this is awkward... 😳</h1>
|
||||
<p>The file you asked for wasn't found in this neck of the woods. Please check the URL for mistakes and try again, or take your ball and <a href="{{ .Site.BaseURL }}">go home</a>.</p>
|
||||
</div>
|
||||
<script>
|
||||
var _paq = _paq || [];
|
||||
_paq.push(['setRequestMethod', 'POST']);
|
||||
_paq.push(['setSecureCookie', true]);
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
_paq.push(['enableHeartBeatTimer']);
|
||||
(function() {
|
||||
var u='https://stats.jarv.is/';
|
||||
_paq.push(['setTrackerUrl', u+'send']);
|
||||
_paq.push(['setSiteId', '1']);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.async=true; g.defer=true; g.src=u+'stats.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@@ -1,7 +1,7 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "blog-header.html" . }}
|
||||
<main id="archive">
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
{{ range (where .Site.RegularPages "Type" "notes").GroupByDate "2006" }}
|
||||
<section class="year">
|
||||
<h2>{{ .Key }}</h2>
|
||||
<ul>
|
||||
@@ -16,4 +16,4 @@
|
||||
{{ end }}
|
||||
</main>
|
||||
{{ partial "blog-footer.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
|
Reference in New Issue
Block a user