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

_index.md « page-images « 00-adding-content « content-and-customization « content « exampleSite - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3100ffb4c5db167b3ccf7cd50364a20b035a8d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
+++
title = "images"
date = "2017-04-24T18:36:24+02:00"
weight = 10
hidden = false
subpage = true
+++

Images have a similar syntax to markdown links but include a preceding exclamation point.
```
	![myImage](image.jpeg)
```
![myImage](image.jpeg)

## Resizing image

Add HTTP parameters `width` and/or `height` to the link image to resize the image. Values are CSS values (default is `auto`).

```
	![myImage](image.jpeg?height=80px)
```
![myImage](image.jpeg?height=80px)


## Add CSS classes

Add a HTTP `classes` parameter to the link image to add CSS classes. `shadow` and `border` are available but you could define other ones.
```
	![myImage](image.jpeg?classes=border,shadow)
```
![myImage](image.jpeg?classes=border,shadow)