Skip to content
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.

Commit

Permalink
Don't include the peer5 script when the peer5 integration is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
xdarklight committed Oct 24, 2015
1 parent 797a469 commit e0ac89d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,13 @@ module.exports = {
{ src: "/stats.html", text: "Download statistics" },
{ src: "http://google.com", text: "google", target: "_blank" },
{ src: "http://github.com", text: "github", target: "_blank" }
]
],

/**
* The peer5 API key/ID. Setting this enables the peer5 CDN
* integration. See https://www.peer5.com/
*/
peer5Key: null
},

/** @see @href https://github.com/jnordberg/wintersmith#options */
Expand Down
4 changes: 3 additions & 1 deletion website/templates/layout.jade
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ html(lang='en')
script(type='text/javascript', src='//code.jquery.com/jquery-#{jqueryVersion}.min.js')
script(type='text/javascript', src='//cdn.datatables.net/#{datatablesVersion}/js/jquery.dataTables.min.js')
script(type='text/javascript', src='//maxcdn.bootstrapcdn.com/bootstrap/#{bootstrapVersion}/js/bootstrap.min.js')
script(type='text/javascript', src='//api.peer5.com/peer5.js?id=#{peer5Key}')
script(type='text/javascript', src='#{contents.assets["main.js"].url}')

if peer5Key
script(type='text/javascript', src='//api.peer5.com/peer5.js?id=#{peer5Key}')

body
div.container-fluid
if locals.topImageUrl
Expand Down

0 comments on commit e0ac89d

Please sign in to comment.