Skip to content

Commit

Permalink
Fix for newer jade versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ponychicken committed Apr 11, 2014
1 parent 13ac432 commit e0696de
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 17 deletions.
3 changes: 3 additions & 0 deletions settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"contentExtension": ".txt"
}
4 changes: 2 additions & 2 deletions templates/default/download.jade
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
- return /nightly/.test(name1) ? 1 : parseInt(name1.match(/(\d*)$/)[1]) < parseInt(name2.match(/(\d*)$/)[1]);
- });
for file in files
version = file.name.split('-')[1]
- version = file.name.split('-')[1]
if !/^v/.test(version)
version = version.charAt(0).toUpperCase() + version.slice(1)
- version = version.charAt(0).toUpperCase() + version.slice(1)
.download
.image
a.nohover(href=file.url)
Expand Down
2 changes: 1 addition & 1 deletion templates/default/html.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!! 5
doctype html
html
!{template('head', root, param)}
body
Expand Down
2 changes: 1 addition & 1 deletion templates/default/page.jade
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//- Render content template before, to get access to param.titles
content = template('content')
- content = template("content")
article(class=inPath(root.get('tutorials')) ? 'tutorial' : page.type)
if !param.titles || !param.titles.length || !param.titles[0].isFirst
h1 !{page.title}
Expand Down
2 changes: 1 addition & 1 deletion templates/default/tutorials_aside.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tutorials = root.get('tutorials')
- tutorials = root.get('tutorials')
if tutorials && (tutorials == page || tutorials.isAncestor(page))
h1 Index
!{ template('tutorials_index', tutorials) }
Expand Down
2 changes: 1 addition & 1 deletion templates/example/html.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!! 5
doctype html
html
!{template('head', root, param)}
body.fullscreen
Expand Down
8 changes: 4 additions & 4 deletions templates/example/thumbnail.jade
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
id = 'thumb-' + page.index
- id = 'thumb-' + page.index
.thumbnail
.resource
a.hover(href=page.url)
thumb = page.files[0]
- thumb = page.files[0]
if thumb
monoThumb = thumb.exportThumb({ width: 242, grayscale: true })
thumb = thumb.exportThumb({ width: 242 })
- monoThumb = thumb.exportThumb({ width: 242, grayscale: true })
- thumb = thumb.exportThumb({ width: 242 })
img.normal(src=monoThumb.url, width=monoThumb.width, height=monoThumb.height)
img.over.hidden(src=thumb.url, width=thumb.width, height=thumb.height)
.caption
Expand Down
2 changes: 1 addition & 1 deletion templates/examples/content.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.thumbnails
list = page.children
- list = page.children
for child in page.flip == 'true' ? list.flip() : list
!{template('thumbnail', child)}
8 changes: 4 additions & 4 deletions templates/external/thumbnail.jade
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
id = 'thumb-' + page.index
- id = 'thumb-' + page.index
.thumbnail
.resource
a.hover(href=page.link, target="_blank")
thumb = page.files[0]
- thumb = page.files[0]
if thumb
monoThumb = thumb.exportThumb({ width: 242, grayscale: true})
thumb = thumb.exportThumb({ width: 242 })
- monoThumb = thumb.exportThumb({ width: 242, grayscale: true})
- thumb = thumb.exportThumb({ width: 242 })
img.normal(src=monoThumb.url, width=monoThumb.width, height=monoThumb.height)
img.over.hidden(src=thumb.url, width=thumb.width, height=thumb.height)
.caption
Expand Down
2 changes: 1 addition & 1 deletion templates/home/html.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!! 5
doctype html
html
!{template('head', root, param)}
body.fullscreen
Expand Down
2 changes: 1 addition & 1 deletion templates/tutorial/aside.jade
Original file line number Diff line number Diff line change
@@ -1 +1 @@
!{ template('tutorials_aside') }
!=template('tutorials_aside')

0 comments on commit e0696de

Please sign in to comment.