diff options
author | Hauke Stieler <mail@hauke-stieler.de> | 2019-03-30 02:41:26 +0300 |
---|---|---|
committer | Hauke Stieler <mail@hauke-stieler.de> | 2019-03-30 02:41:26 +0300 |
commit | 7ef81b672acbb02ebab3fc4f71d474a16d883e90 (patch) | |
tree | 8dadaa1f89d35e245cb8f55eccbab9a013d4cedd /README.md | |
parent | 644859862686419f9b272b5f8940a54a50f6fd6b (diff) |
Add shortcode description in README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -124,6 +124,19 @@ Includes images and opens them in a new tab when clicked: {{< img "photo.png" "What a lovely picture" >}} ``` +### Get URL to an image +Creates a link to the given image +``` +{{< imgUrl "photo.png" "link text" >}} +``` + +### Embed scaled image +Scales an image to the given size and embeds it like the shortcode `img` does. +``` +{{< imgUrl "photo.png" "What a lovely picture" "500x" >}} +``` +(This image is scaled to 500 pixels in width, the height is determined automatically) + ## Multiple authors This theme will read the information of an author based on the language code of a page. |