From 930ba09997712cb59d83f13bb995a1c4588bb767 Mon Sep 17 00:00:00 2001 From: Benjamin Sproule Date: Sat, 18 Jul 2015 19:36:37 +0100 Subject: [PATCH] Added editor config Changed formatting Added ability to use gravatar or a site specific image --- .editorconfig | 19 ++++++++++ .gitignore | 4 +- layout/_partial/header.ejs | 67 ++++++++++++++++---------------- layout/_partial/profile.ejs | 76 ++++++++++++++++++------------------- 4 files changed, 90 insertions(+), 76 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..13e5a4f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + +# Matches multiple files with brace expansion notation +# Set default charset +[*.{js,py}] +charset = utf-8 + +# 4 space indentation +[{*.json,*.yml,*.styl,*.ejs}] +indent_style = space +indent_size = 2 diff --git a/.gitignore b/.gitignore index 8b5ae8e..ffba1b0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -_config.yml \ No newline at end of file +_config.yml +*.iml +.idea diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index 432eb6e..de345c4 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -1,37 +1,34 @@ \ No newline at end of file + + + diff --git a/layout/_partial/profile.ejs b/layout/_partial/profile.ejs index 5aca08d..8d324c2 100644 --- a/layout/_partial/profile.ejs +++ b/layout/_partial/profile.ejs @@ -1,42 +1,38 @@ \ No newline at end of file +
+ + +
+ <% if(theme.contacts) { %> +
+ + + <% for(var i in theme.contacts) { %> + + <% } %> + +
+
+ <% } %> + <% if(theme.about) { %> +
+

About

+

<%- theme.about %>

+
+ <% } %> + +