Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBarranqueiro committed Dec 25, 2015
2 parents 496f860 + 5d6b053 commit a637bc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ Tranquilpeak introduces new variables to give you a lot of possibilities.

Example :
``` markdown
disqusIdentifier: fdsF34ff34
keywords:
- javascript
- hexo
Expand All @@ -453,6 +454,7 @@ photos:
comments: false
```

- **disqusIdentifier** : Define a unique string which is used to look up a page's thread in the Disqus system.
- **keywords** : Define keywords for search engines. you can also define global keywords in Hexo configuration file.
- **clearReading** : Hide sidebar on all article page to let article take full width to improve reading, and enjoy wide images and cover images. Useless if `theme.sidebar_behavior` is equal to `3` or `4`. (true: enable, false: disable). Default behavior : `theme.clear_reading` value in theme configuration file.
- **autoThumbnailImage** : Automatically select the cover image or the first photo from the gallery of a post if there is no thumbnail image as the thumbnail image. `autoThumbnailImage` overwrite the setting `auto_thumbnail_image` in the theme configuration file
Expand Down
2 changes: 1 addition & 1 deletion scripts/tags/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

var rPath = /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))|^[A-Za-z0-9_\/-]+\.\w{2,4})/;
var rClass = /^[_a-zA-Z0-9-]+$/;
var rSize = /^\d+( ?:|\.\d+)(?:px|%)?$/;
var rSize = /^\d+(?:|\.\d+)(?:px|%)?$/;
var rFigClass = /(^fig-\d{2,3}$|^center$)/;
var fancyboxClass = 'fancybox';
var figureClass = 'figure';
Expand Down

0 comments on commit a637bc6

Please sign in to comment.