diff --git a/.cspell.yml b/.cspell.yml index eb5be098104..c60eb2b1ec1 100644 --- a/.cspell.yml +++ b/.cspell.yml @@ -1,6 +1,7 @@ version: '0.2' caseSensitive: true words: + - chalin - docset - Docsy - gohugoio diff --git a/content/en/blog/news/first-post/featured-pexels-peter-xie-sunset-35157036.jpg b/content/en/blog/news/first-post/featured-pexels-peter-xie-sunset-35157036.jpg new file mode 100644 index 00000000000..a006251a3f8 Binary files /dev/null and b/content/en/blog/news/first-post/featured-pexels-peter-xie-sunset-35157036.jpg differ diff --git a/content/en/blog/news/first-post/featured-sunset-get.png b/content/en/blog/news/first-post/featured-sunset-get.png deleted file mode 100644 index db3373c0bfb..00000000000 Binary files a/content/en/blog/news/first-post/featured-sunset-get.png and /dev/null differ diff --git a/content/en/blog/news/first-post/index.md b/content/en/blog/news/first-post/index.md index 7e466ad8c72..1c33df28422 100644 --- a/content/en/blog/news/first-post/index.md +++ b/content/en/blog/news/first-post/index.md @@ -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.** @@ -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 -{{}} -Fetch and scale an image in the upcoming Hugo 0.43. +{{}} +Image cropped to 500x300 {{}} ``` diff --git a/content/en/blog/news/second-post.md b/content/en/blog/news/second-post.md index 15cc8e43ab4..4bffd033443 100755 --- a/content/en/blog/news/second-post.md +++ b/content/en/blog/news/second-post.md @@ -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. diff --git a/content/fa/blog/news/first-post/featured-sunset-get.png b/content/fa/blog/news/first-post/featured-sunset-get.png deleted file mode 100644 index db3373c0bfb..00000000000 Binary files a/content/fa/blog/news/first-post/featured-sunset-get.png and /dev/null differ diff --git a/content/fa/blog/news/first-post/index.md b/content/fa/blog/news/first-post/index.md index 3099e284c4c..acc420f9a54 100644 --- a/content/fa/blog/news/first-post/index.md +++ b/content/fa/blog/news/first-post/index.md @@ -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)' --- **این یک نوشته معمولی شامل تصویر می باشد.** @@ -21,8 +17,10 @@ resources: اینجا یک تصویر (`featured-sunset-get.png`) که شامل بالاین و کپشن است می‌باشد. -{{< imgproc sunset Fill "600x300" >}} -دریافت و تغییر سایز یک تصویر در نسخه هوگو ۰.۴۳ +{{< imgproc sunset Crop "500x300" >}} + +تصویر به ۵۰۰×۳۰۰ برش خورد + {{< /imgproc >}} @@ -30,18 +28,17 @@ 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 ``` برای افزودن تصویر در یک صفحه، مشخصات آن را به صورت زیر مشخص کنید: ``` -{{< imgproc sunset Fill "600x300" >}} -دریافت و تغییر سایز یک تصویر در نسخه هوگو ۰.۴۳ -{{< /imgproc >}} +{{}} +Image cropped to 500x300 +{{}} ``` تصاویر در اندازه و با بایلاین مشخص شده نمایش داده می‌شوند.