From a0f39bf8fd36d65f976a2e80c217e05be59904ca Mon Sep 17 00:00:00 2001 From: Joe Wroten Date: Sun, 7 Aug 2016 14:21:51 -0500 Subject: [PATCH] Fixed livereload, added rough header --- build/app.css | 2 +- build/index.html | 12 +++++++++--- index.js | 6 +++--- layouts/layout.html | 12 +++++++++--- layouts/layout/index.html | 34 ++++++++++++++++++++++++++++++++++ src/app.scss | 17 +++++++++++++++-- 6 files changed, 71 insertions(+), 12 deletions(-) create mode 100644 layouts/layout/index.html diff --git a/build/app.css b/build/app.css index a293e71..c859653 100644 --- a/build/app.css +++ b/build/app.css @@ -1 +1 @@ -body{background:yellow} +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/index.html b/build/index.html index 1e1d436..280b35d 100644 --- a/build/index.html +++ b/build/index.html @@ -7,11 +7,17 @@ +
-

- Home -

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

Joe Wroten

diff --git a/index.js b/index.js index 6b87bd5..01be421 100644 --- a/index.js +++ b/index.js @@ -22,16 +22,16 @@ Metalsmith(__dirname) .use(layouts({ engine: 'handlebars' })) - .use(serve()) .use( watch({ paths: { - "src/**/*": true, - "layouts/**/*": true + "src/**/*": "**/*", + "layouts/**/*": "**/*" }, livereload: true, }) ) + .use(serve()) .build(function(err, files) { if (err) { throw err; } }); diff --git a/layouts/layout.html b/layouts/layout.html index abe5c56..7f8259b 100644 --- a/layouts/layout.html +++ b/layouts/layout.html @@ -7,11 +7,17 @@ +
-

- Home -

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

{{ title }}

{{ description }}

diff --git a/layouts/layout/index.html b/layouts/layout/index.html new file mode 100644 index 0000000..4966fbb --- /dev/null +++ b/layouts/layout/index.html @@ -0,0 +1,34 @@ + + + + + {{ 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/src/app.scss b/src/app.scss index 7936173..27cab5e 100644 --- a/src/app.scss +++ b/src/app.scss @@ -1,3 +1,16 @@ -body { - background: yellow; +html { + margin: 0; +} + +body { + margin: 0; + background: #F2F2F2; + > header { + padding: 2rem; + background: #282A36; + color: white; + a { + color: #87D2C8; + } + } }