From 44f1c1746fcab0dfe5fffb04725bee31c620aa8b Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Sat, 16 Nov 2013 15:46:00 -0500 Subject: [PATCH] remove unused/necessary author mixin --- templates/article.jade | 4 +--- templates/author.jade | 8 -------- templates/index.jade | 1 - 3 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 templates/author.jade diff --git a/templates/article.jade b/templates/article.jade index 8893fe8..8f85c4c 100644 --- a/templates/article.jade +++ b/templates/article.jade @@ -8,11 +8,9 @@ block prepend title | #{ page.title + " - "} block append header - include author h1= page.title p.author - | #{ "Written by " } - mixin author(page.metadata.author) + | Written by #{page.metadata.author} block content article.article diff --git a/templates/author.jade b/templates/author.jade deleted file mode 100644 index 7bd5e84..0000000 --- a/templates/author.jade +++ /dev/null @@ -1,8 +0,0 @@ - -mixin author(authorName) - - var author = contents.authors[authorName + '.json'] - span.author - if author - a(href='mailto:'+author.metadata.email)= author.metadata.name - else - =authorName diff --git a/templates/index.jade b/templates/index.jade index 5f7191d..879602e 100644 --- a/templates/index.jade +++ b/templates/index.jade @@ -1,7 +1,6 @@ extends layout block content - include author each article in articles article.article.intro header