mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-08 00:27:58 +00:00
Add new feature intro to docs
This commit is contained in:
parent
790cf30376
commit
6447ffaf59
@ -50,7 +50,7 @@ The author information of the post usually does not need to be filled in the _Fr
|
|||||||
---
|
---
|
||||||
author:
|
author:
|
||||||
name: Full Name
|
name: Full Name
|
||||||
url: https://example.com
|
link: https://example.com
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -114,6 +114,8 @@ image:
|
|||||||
|
|
||||||
Except for `alt`, all other options are necessary, especially the `width` and `height`, which are related to user experience and web page loading performance. Later section ["Image size"](#image-size) will also mention this.
|
Except for `alt`, all other options are necessary, especially the `width` and `height`, which are related to user experience and web page loading performance. Later section ["Image size"](#image-size) will also mention this.
|
||||||
|
|
||||||
|
Starting from _Chirpy v4.4.0_, the attributes `height` and `width` support abbreviations: `height` → `h`, `width` → `w`.
|
||||||
|
|
||||||
|
|
||||||
### Image caption
|
### Image caption
|
||||||
|
|
||||||
@ -134,6 +136,13 @@ In order to prevent the page content layout from shifting when the image is load
|
|||||||
```
|
```
|
||||||
{: .nolineno}
|
{: .nolineno}
|
||||||
|
|
||||||
|
Starting from _Chirpy v4.4.0_, `height` and `width` support abbreviations (`height` → `h`, `width` → `w`). The following example has the same effect as the above:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
{: w="700" h="400" }
|
||||||
|
```
|
||||||
|
{: .nolineno}
|
||||||
|
|
||||||
### Image position
|
### Image position
|
||||||
|
|
||||||
By default, the image is centered, but you can specify the position by using one of the classes `normal`, `left`, and `right`. For example:
|
By default, the image is centered, but you can specify the position by using one of the classes `normal`, `left`, and `right`. For example:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user