Skip to content

Commit

Permalink
allow customization of description and keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishrock123 committed Aug 19, 2014
1 parent 4196bd3 commit 50cb810
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ var fn = jade.compile(src, {
var html = fn({
projects: projects,
maintainers: maintainers,
style: 'flat-square'
style: 'flat-square',
title: 'badgeboard'
description: 'project status at a glance'
keywords: 'badgeboard, repo-utils'
})

fs.writeFileSync(out, html)
5 changes: 3 additions & 2 deletions src/layout.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ html.no-js
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
title= title || 'jshttp'
meta(name='description', content='')
title= title || 'badgeboard'
meta(name='description', content='#{description || ''}')
meta(name='keywords', content='#{keywords || ''}')
meta(name='viewport', content='width=device-width, initial-scale=1')
link(href='https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css', rel='stylesheet')
style
Expand Down

0 comments on commit 50cb810

Please sign in to comment.