mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-18 05:41:31 +00:00
Add alt attribute to the post's preview image (#271)
This commit is contained in:
committed by
Cotes Chung
parent
7a87ab4d05
commit
eacad65cbb
@@ -84,11 +84,13 @@ Then you can use it like other markdown language: surround the graph code with `
|
||||
|
||||
### Preview image
|
||||
|
||||
If you want to add an image to the top of the post contents, specify the url for the image by:
|
||||
If you want to add an image to the top of the post contents, specify the url and alt attribute for the image:
|
||||
|
||||
```yaml
|
||||
---
|
||||
image: /path/to/image-file
|
||||
image:
|
||||
src: /path/to/image/file
|
||||
alt: image alternative text
|
||||
---
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user