From 5b9125ad5e3205901c330d15d3282f0d14ec7804 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 15 Feb 2014 18:21:31 -0800 Subject: [PATCH] allow adding custom scripts & styles to layout --- harp.json | 4 +++- public/_layout.ejs | 9 ++++++++- public/projects/_project.ejs | 4 ++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/harp.json b/harp.json index 76dbb39..8bf43c8 100644 --- a/harp.json +++ b/harp.json @@ -2,6 +2,8 @@ "globals": { "site": "samhuri.net", "author": "Sami Samhuri", - "url": "http://samhuri.net" + "url": "http://samhuri.net", + "styles": [], + "scripts": [] } } \ No newline at end of file diff --git a/public/_layout.ejs b/public/_layout.ejs index 48834a5..3031a94 100644 --- a/public/_layout.ejs +++ b/public/_layout.ejs @@ -13,7 +13,10 @@ - + <% for (var i in styles) { %> + + <% } %> + @@ -33,6 +36,10 @@

sami@samhuri.net

+ <% for (var i in scripts) { %> + + <% } %> +