Skip to content

Commit 7b27b46

Browse files
committed
Convert to metalsmith
1 parent 63dd5e3 commit 7b27b46

File tree

471 files changed

+606
-644
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

471 files changed

+606
-644
lines changed

_includes/footer.css

-35
This file was deleted.

_layouts/default.html

-87
This file was deleted.

_layouts/glsl.html

-97
This file was deleted.

_site/static.sh

-5
This file was deleted.

.nojekyll assets/.nojekyll

File renamed without changes.

_site/d3.v3.js assets/d3.v3.js

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

_site/perlin.js assets/perlin.js

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

build.js

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
var Handlebars = require('handlebars');
2+
var Metalsmith = require('metalsmith');
3+
var date = require('metalsmith-date-in-filename');
4+
var paths = require('metalsmith-paths');
5+
var collections = require('metalsmith-collections');
6+
var permalinks = require('metalsmith-permalinks');
7+
var layouts = require('metalsmith-layouts');
8+
var pagination = require('metalsmith-pagination');
9+
var assets = require('metalsmith-assets');
10+
11+
Handlebars.registerHelper('each-reverse', require('diy-handlebars-helpers/lib/each-reverse'));
12+
13+
Metalsmith(__dirname)
14+
.source('posts')
15+
.metadata({
16+
title: 'Animations',
17+
baseurl: '/animations'
18+
})
19+
.use(date({
20+
override: true
21+
}))
22+
.use(paths({
23+
property: 'paths'
24+
}))
25+
.use(collections({
26+
posts: '**'
27+
}))
28+
.use(function (files, metalsmith, done) {
29+
Object.keys(files).forEach(function (name) {
30+
if (/\.frag$/.test(name)) {
31+
var data = files[name];
32+
data.layout = 'glsl.html';
33+
delete files[name];
34+
files[name.replace(/\.frag$/, '.html')] = data;
35+
}
36+
});
37+
done();
38+
})
39+
.use(permalinks({
40+
pattern: ':date',
41+
date: 'YYYY-MM-DD'
42+
}))
43+
.use(pagination({
44+
posts: {
45+
perPage: 100,
46+
path: ':num',
47+
layout: 'index.html',
48+
first: 'index.html',
49+
noPageOne: true
50+
}
51+
}))
52+
.use(layouts({
53+
engine: 'handlebars',
54+
default: 'default.html'
55+
}))
56+
.use(assets({
57+
source: 'assets',
58+
destination: '.'
59+
}))
60+
.build(function (err) {
61+
if (err) throw err;
62+
});

_site/.nojekyll build/.nojekyll

File renamed without changes.

_site/2014-12-20/index.html build/2014-12-20/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282

8383
</style>
8484

85+
8586
<script>
8687
var width = 500,
8788
height = 500;
@@ -128,7 +129,7 @@
128129
<footer>
129130
<a href="/animations/"><i class="fa fa-th"></i></a>
130131
<a href="https://twitter.com/jfire"><i class="fa fa-twitter"></i></a>
131-
<a href="https://github.com/jfirebaugh/animations/blob/master/_posts/2014-12-20-lines.html"><i class="fa fa-github"></i></a>
132+
<a href="https://github.com/jfirebaugh/animations/blob/master/posts/2014-12-20-lines.html"><i class="fa fa-github"></i></a>
132133
</footer>
133134
<script>
134135
document.addEventListener('DOMContentLoaded', function(event) {

_site/2014-12-21/index.html build/2014-12-21/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
<footer>
164164
<a href="/animations/"><i class="fa fa-th"></i></a>
165165
<a href="https://twitter.com/jfire"><i class="fa fa-twitter"></i></a>
166-
<a href="https://github.com/jfirebaugh/animations/blob/master/_posts/2014-12-21-lines.html"><i class="fa fa-github"></i></a>
166+
<a href="https://github.com/jfirebaugh/animations/blob/master/posts/2014-12-21-lines.html"><i class="fa fa-github"></i></a>
167167
</footer>
168168
<script>
169169
document.addEventListener('DOMContentLoaded', function(event) {

_site/2014-12-22/index.html build/2014-12-22/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
<footer>
136136
<a href="/animations/"><i class="fa fa-th"></i></a>
137137
<a href="https://twitter.com/jfire"><i class="fa fa-twitter"></i></a>
138-
<a href="https://github.com/jfirebaugh/animations/blob/master/_posts/2014-12-22-dots.html"><i class="fa fa-github"></i></a>
138+
<a href="https://github.com/jfirebaugh/animations/blob/master/posts/2014-12-22-dots.html"><i class="fa fa-github"></i></a>
139139
</footer>
140140
<script>
141141
document.addEventListener('DOMContentLoaded', function(event) {

_site/2014-12-23/index.html build/2014-12-23/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
<footer>
133133
<a href="/animations/"><i class="fa fa-th"></i></a>
134134
<a href="https://twitter.com/jfire"><i class="fa fa-twitter"></i></a>
135-
<a href="https://github.com/jfirebaugh/animations/blob/master/_posts/2014-12-23-arcs.html"><i class="fa fa-github"></i></a>
135+
<a href="https://github.com/jfirebaugh/animations/blob/master/posts/2014-12-23-arcs.html"><i class="fa fa-github"></i></a>
136136
</footer>
137137
<script>
138138
document.addEventListener('DOMContentLoaded', function(event) {

_site/2014-12-24/index.html build/2014-12-24/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
<footer>
134134
<a href="/animations/"><i class="fa fa-th"></i></a>
135135
<a href="https://twitter.com/jfire"><i class="fa fa-twitter"></i></a>
136-
<a href="https://github.com/jfirebaugh/animations/blob/master/_posts/2014-12-24-stars.html"><i class="fa fa-github"></i></a>
136+
<a href="https://github.com/jfirebaugh/animations/blob/master/posts/2014-12-24-stars.html"><i class="fa fa-github"></i></a>
137137
</footer>
138138
<script>
139139
document.addEventListener('DOMContentLoaded', function(event) {

_site/2014-12-25/index.html build/2014-12-25/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
<footer>
150150
<a href="/animations/"><i class="fa fa-th"></i></a>
151151
<a href="https://twitter.com/jfire"><i class="fa fa-twitter"></i></a>
152-
<a href="https://github.com/jfirebaugh/animations/blob/master/_posts/2014-12-25-snow.html"><i class="fa fa-github"></i></a>
152+
<a href="https://github.com/jfirebaugh/animations/blob/master/posts/2014-12-25-snow.html"><i class="fa fa-github"></i></a>
153153
</footer>
154154
<script>
155155
document.addEventListener('DOMContentLoaded', function(event) {

_site/2014-12-26/index.html build/2014-12-26/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
<footer>
131131
<a href="/animations/"><i class="fa fa-th"></i></a>
132132
<a href="https://twitter.com/jfire"><i class="fa fa-twitter"></i></a>
133-
<a href="https://github.com/jfirebaugh/animations/blob/master/_posts/2014-12-26-wave.html"><i class="fa fa-github"></i></a>
133+
<a href="https://github.com/jfirebaugh/animations/blob/master/posts/2014-12-26-wave.html"><i class="fa fa-github"></i></a>
134134
</footer>
135135
<script>
136136
document.addEventListener('DOMContentLoaded', function(event) {

_site/2014-12-27/index.html build/2014-12-27/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
<footer>
234234
<a href="/animations/"><i class="fa fa-th"></i></a>
235235
<a href="https://twitter.com/jfire"><i class="fa fa-twitter"></i></a>
236-
<a href="https://github.com/jfirebaugh/animations/blob/master/_posts/2014-12-27-moon.html"><i class="fa fa-github"></i></a>
236+
<a href="https://github.com/jfirebaugh/animations/blob/master/posts/2014-12-27-moon.html"><i class="fa fa-github"></i></a>
237237
</footer>
238238
<script>
239239
document.addEventListener('DOMContentLoaded', function(event) {

_site/2014-12-28/index.html build/2014-12-28/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
<footer>
137137
<a href="/animations/"><i class="fa fa-th"></i></a>
138138
<a href="https://twitter.com/jfire"><i class="fa fa-twitter"></i></a>
139-
<a href="https://github.com/jfirebaugh/animations/blob/master/_posts/2014-12-28-circles.html"><i class="fa fa-github"></i></a>
139+
<a href="https://github.com/jfirebaugh/animations/blob/master/posts/2014-12-28-circles.html"><i class="fa fa-github"></i></a>
140140
</footer>
141141
<script>
142142
document.addEventListener('DOMContentLoaded', function(event) {

_site/2014-12-29/index.html build/2014-12-29/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
<footer>
151151
<a href="/animations/"><i class="fa fa-th"></i></a>
152152
<a href="https://twitter.com/jfire"><i class="fa fa-twitter"></i></a>
153-
<a href="https://github.com/jfirebaugh/animations/blob/master/_posts/2014-12-29-clock.html"><i class="fa fa-github"></i></a>
153+
<a href="https://github.com/jfirebaugh/animations/blob/master/posts/2014-12-29-clock.html"><i class="fa fa-github"></i></a>
154154
</footer>
155155
<script>
156156
document.addEventListener('DOMContentLoaded', function(event) {

_site/2014-12-30/index.html build/2014-12-30/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
<footer>
139139
<a href="/animations/"><i class="fa fa-th"></i></a>
140140
<a href="https://twitter.com/jfire"><i class="fa fa-twitter"></i></a>
141-
<a href="https://github.com/jfirebaugh/animations/blob/master/_posts/2014-12-30-drip.html"><i class="fa fa-github"></i></a>
141+
<a href="https://github.com/jfirebaugh/animations/blob/master/posts/2014-12-30-drip.html"><i class="fa fa-github"></i></a>
142142
</footer>
143143
<script>
144144
document.addEventListener('DOMContentLoaded', function(event) {

0 commit comments

Comments
 (0)