11---
2- date : 2018-10-06
2+ date : 2026-02-10
33title : Easy documentation with Docsy
44linkTitle : Announcing Docsy
55description : >
66 The Docsy Hugo theme lets project maintainers and contributors focus on
77 content, not on reinventing a website infrastructure from scratch
8- author : Riona MacNamara ([@rionam ](https://x .com/bepsays))
8+ author : ' [Patrice Chalin ](https://github .com/chalin) '
99resources :
1010 - src : ' **.{png,jpg}'
11- title : ' Image #:counter'
1211 params :
13- byline : ' Photo: Riona MacNamara / CC-BY-CA'
12+ byline : Photo by Peter Xie from Pexels
13+ # https://www.pexels.com/photo/serene-ocean-sunset-with-rocky-silhouettes-35157036/
14+ cSpell:ignore : imgproc Pexels
1415---
1516
1617** This is a typical blog post that includes images.**
@@ -20,28 +21,29 @@ description that will be displayed on the blog landing page, and its author.
2021
2122## Including images
2223
23- Here's an image (` featured-sunset-get.png ` ) that includes a byline and a
24- caption.
24+ Here's an image that includes a byline and a caption.
2525
26- {{< imgproc sunset Fill "600x300" >}} Fetch and scale an image in the upcoming
27- Hugo 0.43. {{< /imgproc >}}
26+ {{< imgproc sunset Crop "500x300" >}}
27+
28+ Image cropped to 500x300
29+
30+ {{< /imgproc >}}
2831
2932The front matter of this post specifies properties to be assigned to all image
3033resources:
3134
3235```
3336resources:
34- - src: "**.{png,jpg}"
35- title: "Image #:counter"
36- params:
37- byline: "Photo: Riona MacNamara / CC-BY-CA"
37+ - src: '**.{png,jpg}'
38+ params:
39+ byline: Photo by Peter Xie from Pexels
3840```
3941
4042To include the image in a page, specify its details like this:
4143
4244``` go-html-template
43- {{</* imgproc sunset Fill "600x300 " */>}}
44- Fetch and scale an image in the upcoming Hugo 0.43.
45+ {{</* imgproc sunset Crop "500x300 " */>}}
46+ Image cropped to 500x300
4547{{</* /imgproc */>}}
4648```
4749
0 commit comments