Skip to content

Commit 50cb810

Browse files
committed
allow customization of description and keywords
1 parent 4196bd3 commit 50cb810

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/build.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ var fn = jade.compile(src, {
1919
var html = fn({
2020
projects: projects,
2121
maintainers: maintainers,
22-
style: 'flat-square'
22+
style: 'flat-square',
23+
title: 'badgeboard'
24+
description: 'project status at a glance'
25+
keywords: 'badgeboard, repo-utils'
2326
})
2427

2528
fs.writeFileSync(out, html)

src/layout.jade

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ html.no-js
33
head
44
meta(charset='utf-8')
55
meta(http-equiv='X-UA-Compatible', content='IE=edge')
6-
title= title || 'jshttp'
7-
meta(name='description', content='')
6+
title= title || 'badgeboard'
7+
meta(name='description', content='#{description || ''}')
8+
meta(name='keywords', content='#{keywords || ''}')
89
meta(name='viewport', content='width=device-width, initial-scale=1')
910
link(href='https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css', rel='stylesheet')
1011
style

0 commit comments

Comments
 (0)