Further cleanup

This commit is contained in:
Ariejan de Vroom 2017-10-16 16:32:14 +02:00
parent 1a5c766c94
commit 423e4f7d17
Signed by: ariejan
GPG Key ID: AD739154F713697B
10 changed files with 1 additions and 233 deletions

View File

@ -5,6 +5,7 @@ contentdir = "content"
languageCode = "en-US"
layoutdir = "layouts"
publishdir = "public"
theme = "cocoa-eh"
title = "ariejan de vroom"
copyright = "Ariejan de Vroom"
disqusshortname = ""

View File

@ -1,20 +0,0 @@
{{ partial "header.html" . }}
<h1 class="list-title">{{ .Title }}</h1>
<div class="posts">
{{ range (where .Data.Pages "Section" "posts") }}
<article id="{{ .Slug }}">
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p>
<time class="date" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2 January 2006" }}</time>
{{ if .Description }}
&mdash;
{{ .Description | safeHTML }}
{{ end }}
</p>
</article>
{{ end }}
</div>
{{ partial "footer.html" . }}

View File

@ -1,66 +0,0 @@
{{ partial "header.html" . }}
<article class="post" id="{{ .Slug }}">
<h1 class="title">{{ .Title }}</h1>
<p class="post-date">
{{ if eq .Section "posts" }}
{{ .Date.Format "2 January 2006" }}
{{ end }}
</p>
{{ .Content }}
{{ if eq .Section "posts" }}
<aside class="about">
<p>
<strong>About Ariejan</strong> I'm a software engineer building rock solid back-end systems
using Ruby on Rails, Golang, and Elixir. In my free time I love to
repair audio equipment, experiment with electronics, and play the piano.
</p>
<p>
<strong>Continue reading</strong> Check my list of <a href="/recommendations">book recommendations</a>.
</p>
<p>
<strong>Get in touch</strong> Mention <a href="http://twitter.com/ariejan">@ariejan</a> on Twitter or shoot me <a href="mailto:ariejan@devroom.io">an email</a> (<a href="/gpg">gpg</a> available).
</p>
</aside>
{{ end }}
</article>
<script type="text/javascript">
function ready(fn) {
if (document.readyState != 'loading') {
fn();
} else {
document.addEventListener('DOMContentLoaded', fn);
}
}
function imageClick(e) {
e.preventDefault();
this.classList.toggle('zoomed');
}
function handleEsc(e) {
if (e.keyCode == 27) {
var zoomedImages = document.querySelectorAll('img.zoomed');
Array.prototype.forEach.call(zoomedImages, function(el, i) {
el.classList.toggle('zoomed');
});
}
}
ready(function() {
var images = document.querySelectorAll('article img');
Array.prototype.forEach.call(images, function(el, i) {
el.addEventListener('click', imageClick);
});
document.addEventListener('keyup', handleEsc);
});
</script>
{{ partial "footer.html" . }}

View File

@ -1,18 +0,0 @@
{{ partial "header.html" . }}
<div class="posts">
{{ range (where .Data.Pages "Section" "posts") }}
<article id="{{ .Slug }}">
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p>
<time class="date" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2 January 2006" }}</time>
{{ if .Description }}
&mdash;
{{ .Description | safeHTML }}
{{ end }}
</p>
</article>
{{ end }}
</div>
{{ partial "footer.html" . }}

View File

@ -1,38 +0,0 @@
<div class="footer">
Copyright © 1996 {{now.Format "2006"}} {{ .Site.Copyright }}
<br/>
<span id="crypto-donations">
BTC: <a href="bitcoin:32vFGNzzJwn9qcAABwetFL2J58DvECaRwH">32vFGNzzJwn9qcAABwetFL2J58DvECaRwH</a>
<br />
ETH: <a href="ethereum:0x485Dc52e580aAeCB06ED81531FA16AadEfF10cE8">0x485Dc52e580aAeCB06ED81531FA16AadEfF10cE8</a>
</span>
</div>
</div><!-- content -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//gekko.devroom.io/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//gekko.devroom.io/piwik.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-60089-16', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>

View File

@ -1,62 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv='content-type' content='text/html;charset=utf-8' />
<title>{{ if ne .URL "/" }} {{ .Title }} &middot;{{ end }} {{ .Site.Title }}</title>
<meta property="og:title" content="{{ if ne .URL "/" }} {{ .Title }} &middot;{{ end }} {{ .Site.Title }}" />
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:url" content="{{ .Permalink }}" />
{{ if .IsPage }}
<meta property="og:type" content="article" />
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
{{ range .Params.tags }}
<meta property="og:article:tag" content="{{ . }}" />
{{ end }}
{{ else }}
<meta property="og:type" content="website" />
{{ end }}
<meta content='IE=edge' http-equiv='X-UA-Compatible'>
<meta content='width=device-width,initial-scale=1.0' name='viewport'>
<meta content='Ariejan de Vroom' name='author'>
<meta content='a blog by ariejan de vroom about software engineering and craftsmanship.' name='description'>
<meta content='software engineering, programming, craftsmanship, devops, ruby, rubyonrails, rails, git, svn, postgres, postgresql, mysql, mac, ios, apple, web2.0, go, golang' name='keywords'>
<meta name="google-site-verification" content="e6zZ0IYoNKd2iP_M1lGPUAFVt8YfI93uN5uPWWbZUkc" />
<!-- OpenID -->
<link href='https://ariejan.wordpress.com/?openidserver=1' rel='openid.server'>
<link href='https://ariejan.wordpress.com/' rel='openid.delegate'>
<!-- RSS -->
<link href='http://feeds.feedburner.com/ariejan' rel='alternate' title='RSS' type='application/rss+xml'>
<!-- Icons -->
<link rel="shortcut icon" href="/favicon.ico?v=20150406" />
<!-- Style -->
<link href='/css/style.css' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="sidebar">
<h1><a href="/">ariejan <span>de vroom</span></a></h1>
<div id='stack'>
Father, software engineer, electronics tinkerer, audiophile, and proponent of the Oxford comma.
</div>
<nav>
<ul>
<li><a href="/">Blog</a></li>
<li><a href="/categories/audio-repair">Audio Repair</a></li>
<li><a href="/categories/electronics">Electronics</a></li>
<li><a href="/gpg">GPG</a></li>
<li><a href="/about">About</a></li>
</ul>
</nav>
</div><!-- sidebar -->
<div class="content">

View File

@ -1 +0,0 @@
<a href="/tags/{{ . | urlize }}">{{ lower . }}</a>

View File

@ -1,3 +0,0 @@
{{ with .Params.tags }}
{{ delimit (apply (apply (sort .) "partial" "post/tag/link" ".") "chomp" ".") ", " " and " }}
{{ end }}

View File

@ -1,21 +0,0 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ .Site.Title }}</title>
<generator uri="https://gohugo.io">Hugo</generator>
<link>{{ .Permalink }}</link>
{{ with .Site.LanguageCode }}<language>{{.}}</language>{{end}}
{{ with .Site.Author.name }}<author>{{.}}</author>{{end}}
{{ with .Site.Copyright }}<copyright>{{.}}</copyright>{{end}}
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</updated>
{{ range first 25 .Data.Pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
{{with .Site.Author.name}}<author>{{.}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
</rss>

View File

@ -1,4 +0,0 @@
<div class="embed video-player">
<iframe class="youtube-player" type="text/html" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%" src="//www.youtube.com/embed/{{ index .Params 0 }}" allowfullscreen frameborder="0">
</iframe>
</div>