Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cspell.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: '0.2'
caseSensitive: true
words:
- chalin
- docset
- Docsy
- gohugoio
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
30 changes: 16 additions & 14 deletions content/en/blog/news/first-post/index.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
---
date: 2018-10-06
date: 2026-02-10
title: Easy documentation with Docsy
linkTitle: Announcing Docsy
description: >
The Docsy Hugo theme lets project maintainers and contributors focus on
content, not on reinventing a website infrastructure from scratch
author: Riona MacNamara ([@rionam](https://x.com/bepsays))
author: '[Patrice Chalin](https://github.com/chalin)'
resources:
- src: '**.{png,jpg}'
title: 'Image #:counter'
params:
byline: 'Photo: Riona MacNamara / CC-BY-CA'
byline: Photo by Peter Xie from Pexels
# https://www.pexels.com/photo/serene-ocean-sunset-with-rocky-silhouettes-35157036/
cSpell:ignore: imgproc Pexels
---

**This is a typical blog post that includes images.**
Expand All @@ -20,28 +21,29 @@ description that will be displayed on the blog landing page, and its author.

## Including images

Here's an image (`featured-sunset-get.png`) that includes a byline and a
caption.
Here's an image that includes a byline and a caption.

{{< imgproc sunset Fill "600x300" >}} Fetch and scale an image in the upcoming
Hugo 0.43. {{< /imgproc >}}
{{< imgproc sunset Crop "500x300" >}}

Image cropped to 500x300

{{< /imgproc >}}

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

```
resources:
- src: "**.{png,jpg}"
title: "Image #:counter"
params:
byline: "Photo: Riona MacNamara / CC-BY-CA"
- src: '**.{png,jpg}'
params:
byline: Photo by Peter Xie from Pexels
```

To include the image in a page, specify its details like this:

```go-html-template
{{</* imgproc sunset Fill "600x300" */>}}
Fetch and scale an image in the upcoming Hugo 0.43.
{{</* imgproc sunset Crop "500x300" */>}}
Image cropped to 500x300
{{</* /imgproc */>}}
```

Expand Down
2 changes: 1 addition & 1 deletion content/en/blog/news/second-post.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Second blog post
date: 2018-10-06
date: 2026-01-06
description: >
A short lead description about this content page. Text here can also be
**bold** or _italic_ and can even be split over multiple paragraphs.
Expand Down
Binary file not shown.
27 changes: 12 additions & 15 deletions content/fa/blog/news/first-post/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
---
date: 2018-10-06
# cSpell:disable
title: مستدات راحت با داکسی
linkTitle: معرفی داکسی
description: "پوسته داکسی، قدرت گرفته از هوگو باعث می‌شود که سازندگان پروژه تمرکز خود را روی ساخت مطالب قرار دهند و نیازی به ساخت وبسایت نداشته باشد."
author: Riona MacNamara ([@rionam](https://x.com/bepsays))
resources:
- src: "**.{png,jpg}"
title: "Image #:counter"
params:
byline: "Photo: Riona MacNamara / CC-BY-CA"
author: '[Patrice Chalin](https://github.com/chalin)'
---

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


{{< imgproc sunset Fill "600x300" >}}
دریافت و تغییر سایز یک تصویر در نسخه هوگو ۰.۴۳
{{< imgproc sunset Crop "500x300" >}}

تصویر به ۵۰۰×۳۰۰ برش خورد

{{< /imgproc >}}


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

```
resources:
- src: "**.{png,jpg}"
title: "Image #:counter"
params:
byline: "Photo: Riona MacNamara / CC-BY-CA"
- src: '**.{png,jpg}'
params:
byline: Photo by Peter Xie from Pexels
```

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

```
{{< imgproc sunset Fill "600x300" >}}
دریافت و تغییر سایز یک تصویر در نسخه هوگو ۰.۴۳
{{< /imgproc >}}
{{</* imgproc sunset Crop "500x300" */>}}
Image cropped to 500x300
{{</* /imgproc */>}}
```

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