Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hauke96/hugo-theme-hamburg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Stieler <mail@hauke-stieler.de>2019-03-30 02:41:26 +0300
committerHauke Stieler <mail@hauke-stieler.de>2019-03-30 02:41:26 +0300
commit7ef81b672acbb02ebab3fc4f71d474a16d883e90 (patch)
tree8dadaa1f89d35e245cb8f55eccbab9a013d4cedd /README.md
parent644859862686419f9b272b5f8940a54a50f6fd6b (diff)
Add shortcode description in README
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 637c90f..9ef88e3 100644
--- a/README.md
+++ b/README.md
@@ -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.