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: 0b6eaccc7ee58e1dd7d90e78a73746170a85f869 (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
---
date: "2017-04-24T18:36:24+02:00"
hidden: false
subpage: true
title: images
weight: 10
---

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)