mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 02:21:52 +02:00
udpated docs
This commit is contained in:
parent
fbb78892bf
commit
a41437d73a
1 changed files with 2 additions and 2 deletions
|
@ -38,12 +38,12 @@ Hugo has various builtin methods to resize, crop and optimize images.
|
||||||
As an example - in `layouts/partials/article-link/card.html`, you have the following code:
|
As an example - in `layouts/partials/article-link/card.html`, you have the following code:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
{{ with .Fill "600x600" }}
|
{{ with .Resize "600x" }}
|
||||||
<div class="w-full thumbnail_card nozoom" style="background-image:url({{ .RelPermalink }});"></div>
|
<div class="w-full thumbnail_card nozoom" style="background-image:url({{ .RelPermalink }});"></div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
```
|
```
|
||||||
|
|
||||||
The default behavior of Hugo here is to use Smartcrop to dynamically set the anchor point (crop placement) on the image and resize it to fill 600x600px.
|
The default behavior of Hugo here is to resize the image to 600px keeping the ratio.
|
||||||
|
|
||||||
It is worth noting here that default image configurations such as [anchor point](https://gohugo.io/content-management/image-processing/#anchor) can also be set in your [site configuration](https://gohugo.io/content-management/image-processing/#processing-options) as well as in the template itself.
|
It is worth noting here that default image configurations such as [anchor point](https://gohugo.io/content-management/image-processing/#anchor) can also be set in your [site configuration](https://gohugo.io/content-management/image-processing/#processing-options) as well as in the template itself.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue