Skip to content

Commit 9fd5c5e

Browse files
authored
Fix blog post with page bundle resources (#416)
1 parent f5ce7cd commit 9fd5c5e

7 files changed

Lines changed: 30 additions & 30 deletions

File tree

.cspell.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version: '0.2'
22
caseSensitive: true
33
words:
4+
- chalin
45
- docset
56
- Docsy
67
- gohugoio
31.5 KB
Loading
-378 KB
Binary file not shown.

content/en/blog/news/first-post/index.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
---
2-
date: 2018-10-06
2+
date: 2026-02-10
33
title: Easy documentation with Docsy
44
linkTitle: Announcing Docsy
55
description: >
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)'
99
resources:
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

2932
The front matter of this post specifies properties to be assigned to all image
3033
resources:
3134

3235
```
3336
resources:
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

4042
To 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

content/en/blog/news/second-post.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Second blog post
3-
date: 2018-10-06
3+
date: 2026-01-06
44
description: >
55
A short lead description about this content page. Text here can also be
66
**bold** or _italic_ and can even be split over multiple paragraphs.
-378 KB
Binary file not shown.
Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
---
22
date: 2018-10-06
3+
# cSpell:disable
34
title: مستدات راحت با داکسی
45
linkTitle: معرفی داکسی
56
description: "پوسته داکسی، قدرت گرفته از هوگو باعث می‌شود که سازندگان پروژه تمرکز خود را روی ساخت مطالب قرار دهند و نیازی به ساخت وبسایت نداشته باشد."
6-
author: Riona MacNamara ([@rionam](https://x.com/bepsays))
7-
resources:
8-
- src: "**.{png,jpg}"
9-
title: "Image #:counter"
10-
params:
11-
byline: "Photo: Riona MacNamara / CC-BY-CA"
7+
author: '[Patrice Chalin](https://github.com/chalin)'
128
---
139

1410
**این یک نوشته معمولی شامل تصویر می باشد.**
@@ -21,27 +17,28 @@ resources:
2117
اینجا یک تصویر (`featured-sunset-get.png`) که شامل بالاین و کپشن است می‌باشد.
2218

2319

24-
{{< imgproc sunset Fill "600x300" >}}
25-
دریافت و تغییر سایز یک تصویر در نسخه هوگو ۰.۴۳
20+
{{< imgproc sunset Crop "500x300" >}}
21+
22+
تصویر به ۵۰۰×۳۰۰ برش خورد
23+
2624
{{< /imgproc >}}
2725

2826

2927
مشخصات زیر که در اطلاعات پست آمده است روی تمامی تصاویر این پست اعمال می‌شوند:
3028

3129
```
3230
resources:
33-
- src: "**.{png,jpg}"
34-
title: "Image #:counter"
35-
params:
36-
byline: "Photo: Riona MacNamara / CC-BY-CA"
31+
- src: '**.{png,jpg}'
32+
params:
33+
byline: Photo by Peter Xie from Pexels
3734
```
3835

3936
برای افزودن تصویر در یک صفحه، مشخصات آن را به صورت زیر مشخص کنید:
4037

4138
```
42-
{{< imgproc sunset Fill "600x300" >}}
43-
دریافت و تغییر سایز یک تصویر در نسخه هوگو ۰.۴۳
44-
{{< /imgproc >}}
39+
{{</* imgproc sunset Crop "500x300" */>}}
40+
Image cropped to 500x300
41+
{{</* /imgproc */>}}
4542
```
4643

4744
تصاویر در اندازه و با بایلاین مشخص شده نمایش داده می‌شوند.

0 commit comments

Comments
 (0)