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 @@ - - - - - Joe Wroten - - - - - -
- [ sharpshark28@joewroten.com ] (master) ~/portfolio -
- npm start -
- Starting up server, serving ./ on port: 8080 ... -
- Resume accessible @ ./resume.pdf -
- -

Joe Wroten

-

- -

TODO

- -

First post

-

Second post

-

Third post

-

Fourth post

- - - - - - - diff --git a/build/posts/first-post/index.html b/build/posts/first-post/index.html deleted file mode 100644 index 7559e61..0000000 --- a/build/posts/first-post/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - My First Post - - - -
-

- Home -

- -
-

My First Post

- -

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 @@ - - - - - My Fourth Post - - - -
-

- Home -

- -
-

My Fourth Post

- -

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 @@ - - - - - My Second Post - - - -
-

- Home -

- -
-

My Second Post

- -

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 @@ - - - - - My Third Post - - - -
-

- Home -

- -
-

My Third Post

- -

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 @@ - - - - - {{ title }} - - - - - -
- [ sharpshark28@joewroten.com ] (master) ~/portfolio -
- npm start -
- Starting up server, serving ./ on port: 8080 ... -
- Resume accessible @ ./resume.pdf -
- -

{{ title }}

-

{{ 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 @@ - - - - - {{ title }} - - - - - -
-

- [ sharpshark28@joewroten.com ] (master) ~/portfolio -
- npm start -
- Starting up server, serving ./ on port: 8080 ... -
- Resume accessible @ ./resume.pdf -

-
- -

{{ title }}

-

{{ 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 @@ - - - - - {{ title }} - - - -
-

- Home -

+{{> header }} -

{{ title }}

{{{ contents }}} - - - +{{> footer }} diff --git a/package.json b/package.json index 9a90d59..5a2ce7f 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "metalsmith-permalinks": "^0.5.0" }, "devDependencies": { + "metalsmith-assets": "^0.1.0", "metalsmith-sass": "^1.3.0", "metalsmith-serve": "0.0.7", "metalsmith-watch": "^1.0.3" diff --git a/partials/footer.html b/partials/footer.html new file mode 100644 index 0000000..7b6633c --- /dev/null +++ b/partials/footer.html @@ -0,0 +1,7 @@ + + + + + diff --git a/partials/header.html b/partials/header.html new file mode 100644 index 0000000..53ae123 --- /dev/null +++ b/partials/header.html @@ -0,0 +1,20 @@ + + + + + {{ title }} + + + + + + +
+ [ sharpshark28@joewroten.com ] (master) ~/portfolio +
+ npm start +
+ Starting up server, serving ./ on port: 8080 ... +
+ Resume accessible @ ./resume.pdf +
diff --git a/src/app.scss b/src/app.scss index 27cab5e..24999af 100644 --- a/src/app.scss +++ b/src/app.scss @@ -14,3 +14,11 @@ body { } } } + +.text-code { + font-family: 'Source Code Pro', monospace; +} + +.text-success { + color: #28C665; +} diff --git a/src/assets/resume.pdf b/src/assets/resume.pdf new file mode 100644 index 0000000..b0bff0b Binary files /dev/null and b/src/assets/resume.pdf differ diff --git a/src/home.md b/src/home.md new file mode 100644 index 0000000..7d7c0b9 --- /dev/null +++ b/src/home.md @@ -0,0 +1,10 @@ +--- +layout: home.html +--- +

+ Heyya,
+ I'm Joe L. Wroten, +

+

... an edge riding web tech architect aimed at realizing the best tools to communicate valuable informationt o the people who need it.

+ +Patient Education diff --git a/src/index.md b/src/index.md deleted file mode 100644 index 9999a8e..0000000 --- a/src/index.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -layout: layout.html ---- - -

TODO

- -First post - -Second post - -Third post - -Fourth post diff --git a/src/posts/first-post.md b/src/posts/first-post.md deleted file mode 100644 index 62ad941..0000000 --- a/src/posts/first-post.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: My First Post -date: 2012-08-20 -layout: post.html ---- - -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/src/posts/fourth-post.md b/src/posts/fourth-post.md deleted file mode 100644 index 4dbbd98..0000000 --- a/src/posts/fourth-post.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: My Fourth Post -date: 2012-12-07 -layout: post.html ---- - -A really short, rushed-feeling string of words. diff --git a/src/posts/patient-education.md b/src/posts/patient-education.md new file mode 100644 index 0000000..62186dd --- /dev/null +++ b/src/posts/patient-education.md @@ -0,0 +1,7 @@ +--- +title: Patient Education +date: 2016-08-20 +layout: post.html +--- + +Test diff --git a/src/posts/second-post.md b/src/posts/second-post.md deleted file mode 100644 index 97742d5..0000000 --- a/src/posts/second-post.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: My Second Post -date: 2012-08-23 -layout: post.html ---- - -A super-interesting piece of prose I have already written weeks ago. diff --git a/src/posts/third-post.md b/src/posts/third-post.md deleted file mode 100644 index f36e1ce..0000000 --- a/src/posts/third-post.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: My Third Post -date: 2012-09-28 -layout: post.html ---- - -A slightly late, less interesting piece of prose.