mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-22 07:45:08 +01:00
Update README.md
This commit is contained in:
parent
af6f549dd9
commit
017f61b323
@ -128,9 +128,9 @@ to `config.toml` file in your Hugo root directory and change params fields. In c
|
|||||||
|
|
||||||
Adding a cover image to your post is simple and there are two options when you edit your `index.md` file in `content/posts/blog-entry-xy/index.md`:
|
Adding a cover image to your post is simple and there are two options when you edit your `index.md` file in `content/posts/blog-entry-xy/index.md`:
|
||||||
|
|
||||||
* Use `cover: "/path/to/absolute/img.jpg"` to link an absolute image
|
* Use `cover = "/path/to/absolute/img.jpg"` to link an absolute image
|
||||||
* Resulting in `https://www.yourpage.com/path/to/absolute/img.jpg`
|
* Resulting in `https://www.yourpage.com/path/to/absolute/img.jpg`
|
||||||
* Use `cover: "img.jpg"` and `useRelativeCover: true` to link the image relative to the blog post folder
|
* Use `cover = "img.jpg"` and `useRelativeCover = true` to link the image relative to the blog post folder
|
||||||
* Resulting in `https://www.yourpage.com/posts/blog-entry-xy/img.jpg`
|
* Resulting in `https://www.yourpage.com/posts/blog-entry-xy/img.jpg`
|
||||||
|
|
||||||
## Add-ons
|
## Add-ons
|
||||||
|
Loading…
Reference in New Issue
Block a user