Permalink
Browse files

Bootswatch: add image dimensions. (#825)

  • Loading branch information...
1 parent 0413143 commit a0ad55a2212c9220c5a347ef1e031404ce6e79d9 @XhmikosR XhmikosR committed on GitHub Dec 16, 2016
Showing with 4 additions and 2 deletions.
  1. +3 −1 .pug-lintrc.json
  2. +1 −1 views/bootswatch.pug
View
@@ -21,7 +21,9 @@
"requireSpecificAttributes": [
{
"img": [
- "alt"
+ "alt",
+ "width",
+ "height"
]
}
],
@@ -17,7 +17,7 @@ block content
.col-sm-12.col-md-8
.bootswatch
a(href=config.bootswatch.link.replace('SWATCH_NAME', name))
- img.bootswatch.img-responsive(src=config.bootswatch.image.replace('SWATCH_NAME', name), alt=name + ' thumbnail')
+ img.bootswatch.img-responsive(src=config.bootswatch.image.replace('SWATCH_NAME', name), alt=name + ' thumbnail', width='528', height='317')
.input-group
input.form-control(type='text', value=file)
.input-group-btn

0 comments on commit a0ad55a

Please sign in to comment.