diff --git a/content/blog/three-steps/index.md b/content/blog/three-steps/index.md index 72091ed..b4b85ea 100644 --- a/content/blog/three-steps/index.md +++ b/content/blog/three-steps/index.md @@ -1,6 +1,7 @@ --- title: Three important steps before jumping to the code description: Once you decide which feature you want to build, it’s time to decide how to actually build it. +thumbnail: thumbnail.png author: Denis Stebunov date: 2024-07-08T14:37:00+0200 --- diff --git a/content/blog/why-go-full-stack/index.md b/content/blog/why-go-full-stack/index.md index c4b521f..730087e 100644 --- a/content/blog/why-go-full-stack/index.md +++ b/content/blog/why-go-full-stack/index.md @@ -1,6 +1,7 @@ --- title: Why go full-stack? description: What does it mean to be a full-stack web developer today, and what are their pros and cons for team productivity? +thumbnail: why-go-full-stack.png author: Denis Stebunov date: 2023-02-01T12:40:00+0300 --- diff --git a/content/blog/why-go-full-stack/thumbnail.png b/content/blog/why-go-full-stack/thumbnail.png deleted file mode 100644 index 86efbc4..0000000 Binary files a/content/blog/why-go-full-stack/thumbnail.png and /dev/null differ diff --git a/content/blog/why-public-chats-are-better-than-direct-messages/index.md b/content/blog/why-public-chats-are-better-than-direct-messages/index.md index a0b01d7..0568fab 100644 --- a/content/blog/why-public-chats-are-better-than-direct-messages/index.md +++ b/content/blog/why-public-chats-are-better-than-direct-messages/index.md @@ -1,6 +1,7 @@ --- title: Why public chats are better than direct messages description: How we communicate makes an enormous impact on our work. One of the best strategies for improving communication in a team is making it open. +thumbnail: thumbnail.png author: Denis Stebunov date: 2022-09-07T17:38:00+0200 --- diff --git a/content/blog/zero-downtime-DB-migrations/index.md b/content/blog/zero-downtime-DB-migrations/index.md index 1bb3c98..8663d73 100644 --- a/content/blog/zero-downtime-DB-migrations/index.md +++ b/content/blog/zero-downtime-DB-migrations/index.md @@ -1,6 +1,7 @@ --- title: Migrating a production database without any downtime description: The basic principles of zero-downtime DB migrations and quick recipes for the most common scenarios. +thumbnail: thumbnail.png author: Denis Stebunov date: 2024-10-16T14:32:00+0200 --- diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 731e861..11261ca 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -28,12 +28,9 @@ -{{- $thumbnail := .Resources.GetMatch "thumbnail.png" }} -{{- $thumbnail2x := .Resources.GetMatch "thumbnail@2x.png" }} -{{- if $thumbnail2x }} - {{- $thumbnail = $thumbnail2x }}} -{{- end }} -{{- if $thumbnail }} +{{- $page := . }} +{{- with .Params.thumbnail }} + {{- $thumbnail := $page.Resources.Get . }} diff --git a/layouts/blog/blog.html b/layouts/blog/blog.html index 02903f4..f5bfd30 100644 --- a/layouts/blog/blog.html +++ b/layouts/blog/blog.html @@ -15,13 +15,14 @@