diff --git a/.gitignore b/.gitignore index 107ffa3..95a3e0d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ logs *.log npm-debug.log* +.DS_STORE # Runtime data pids @@ -39,3 +40,6 @@ jspm_packages # Optional REPL history .node_repl_history + +# Ignore build +/build diff --git a/build/app.css b/build/app.css deleted file mode 100644 index c859653..0000000 --- a/build/app.css +++ /dev/null @@ -1 +0,0 @@ -html{margin:0}body{margin:0;background:#F2F2F2}body>header{padding:2rem;background:#282A36;color:white}body>header a{color:#87D2C8} diff --git a/build/assets b/build/assets deleted file mode 100644 index e69de29..0000000 diff --git a/build/index.html b/build/index.html deleted file mode 100644 index 280b35d..0000000 --- a/build/index.html +++ /dev/null @@ -1,38 +0,0 @@ - - -
- -- Home -
- -An interesting post about how it's going to be different this time around. I'm going to write a lot more nowadays and use this blog to improve my writing.
- - - - - diff --git a/build/posts/fourth-post/index.html b/build/posts/fourth-post/index.html deleted file mode 100644 index 6695d1e..0000000 --- a/build/posts/fourth-post/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - -- Home -
- -A really short, rushed-feeling string of words.
- - - - - diff --git a/build/posts/second-post/index.html b/build/posts/second-post/index.html deleted file mode 100644 index 5ff3eb8..0000000 --- a/build/posts/second-post/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - -- Home -
- -A super-interesting piece of prose I have already written weeks ago.
- - - - - diff --git a/build/posts/third-post/index.html b/build/posts/third-post/index.html deleted file mode 100644 index 40f1784..0000000 --- a/build/posts/third-post/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - -- Home -
- -A slightly late, less interesting piece of prose.
- - - - - diff --git a/index.js b/index.js index 01be421..33f623e 100644 --- a/index.js +++ b/index.js @@ -2,6 +2,7 @@ var Metalsmith = require('metalsmith'); var markdown = require('metalsmith-markdown'); var sass = require('metalsmith-sass'); var layouts = require('metalsmith-layouts'); +var assets = require('metalsmith-assets'); var permalinks = require('metalsmith-permalinks'); var serve = require('metalsmith-serve'); var watch = require('metalsmith-watch'); @@ -17,15 +18,21 @@ Metalsmith(__dirname) .destination('./build') .clean(false) .use(markdown()) + .use(assets({ + source: './src/assets', + destination: './src/assets' + })) .use(permalinks()) .use(sass()) .use(layouts({ - engine: 'handlebars' + engine: 'handlebars', + partials: 'partials' })) .use( watch({ paths: { "src/**/*": "**/*", + "partials/**/*": "**/*", "layouts/**/*": "**/*" }, livereload: true, diff --git a/layouts/home.html b/layouts/home.html new file mode 100644 index 0000000..97f02a2 --- /dev/null +++ b/layouts/home.html @@ -0,0 +1,5 @@ +{{> header }} + +{{{ contents }}} + +{{> footer }} diff --git a/layouts/layout.html b/layouts/layout.html deleted file mode 100644 index 7f8259b..0000000 --- a/layouts/layout.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - -{{ description }}
- - {{{ contents }}} - - - - - - diff --git a/layouts/layout/index.html b/layouts/layout/index.html deleted file mode 100644 index 4966fbb..0000000 --- a/layouts/layout/index.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - -
- [ sharpshark28@joewroten.com ] (master) ~/portfolio
-
- npm start
-
- Starting up server, serving ./ on port: 8080 ...
-
- Resume accessible @ ./resume.pdf
-
{{ description }}
- - {{{ contents }}} - - - - - - diff --git a/layouts/post.html b/layouts/post.html index c8da1f9..2e50e34 100644 --- a/layouts/post.html +++ b/layouts/post.html @@ -1,23 +1,7 @@ - - - - -- Home -
+{{> header }} -