Browse Source

remove unused/necessary author mixin

pull/1/head
Brett Langdon 12 years ago
parent
commit
44f1c1746f
3 changed files with 1 additions and 12 deletions
  1. +1
    -3
      templates/article.jade
  2. +0
    -8
      templates/author.jade
  3. +0
    -1
      templates/index.jade

+ 1
- 3
templates/article.jade View File

@ -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


+ 0
- 8
templates/author.jade View File

@ -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

+ 0
- 1
templates/index.jade View File

@ -1,7 +1,6 @@
extends layout
block content
include author
each article in articles
article.article.intro
header


Loading…
Cancel
Save