From da9ece77fef3e658e9476c94ea383ce99cab0cbf Mon Sep 17 00:00:00 2001 From: AnmolxSingh Date: Sat, 22 Feb 2025 01:33:20 +0530 Subject: [PATCH 1/4] try added Signed-off-by: AnmolxSingh --- themes/jaeger-docs/layouts/index.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/themes/jaeger-docs/layouts/index.html b/themes/jaeger-docs/layouts/index.html index 482c70ed..28f5cb24 100644 --- a/themes/jaeger-docs/layouts/index.html +++ b/themes/jaeger-docs/layouts/index.html @@ -1,10 +1,12 @@ {{ define "main" }} -{{ $rss := "" }} -{{ with resources.GetRemote "https://medium.com/feed/jaegertracing" }} +{{ $rss := dict }} +{{ with try (resources.GetRemote "https://medium.com/feed/jaegertracing") }} {{ with .Err }} - {{ errorf "%s" . }} - {{ else }} + {{ warnf "%s" . }} + {{ else with .Value }} {{ $rss = . | transform.Unmarshal }} + {{ else }} + {{ warnf "Unable to fetch RSS feed" }} {{ end }} {{ end }} From 1637db99f75e2a2313a7a03cb1a256db77a4e71b Mon Sep 17 00:00:00 2001 From: AnmolxSingh Date: Tue, 25 Feb 2025 18:51:51 +0530 Subject: [PATCH 2/4] hugo version changed Signed-off-by: AnmolxSingh --- .github/workflows/ci-test.yml | 2 +- netlify.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index b4c852e7..37fb3ccc 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -17,7 +17,7 @@ jobs: - name: ✨ Setup Hugo env: # should match one from netlify.toml - HUGO_VERSION: 0.123.6 + HUGO_VERSION: 0.143.1 run: | mkdir ~/hugo cd ~/hugo diff --git a/netlify.toml b/netlify.toml index 352f714e..d50bb7ca 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" command = "make netlify-production-build" [build.environment] -HUGO_VERSION = "0.123.6" +HUGO_VERSION = "0.143.1" [context.deploy-preview] command = "make netlify-deploy-preview" From 3adb0272c474f7fa44307f161c35c4bd0cf0f230 Mon Sep 17 00:00:00 2001 From: AnmolxSingh Date: Tue, 25 Feb 2025 19:38:58 +0530 Subject: [PATCH 3/4] fixes warning to error Signed-off-by: AnmolxSingh --- themes/jaeger-docs/layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/jaeger-docs/layouts/index.html b/themes/jaeger-docs/layouts/index.html index 28f5cb24..1a202b1d 100644 --- a/themes/jaeger-docs/layouts/index.html +++ b/themes/jaeger-docs/layouts/index.html @@ -2,7 +2,7 @@ {{ $rss := dict }} {{ with try (resources.GetRemote "https://medium.com/feed/jaegertracing") }} {{ with .Err }} - {{ warnf "%s" . }} + {{ errorf "%s" . }} {{ else with .Value }} {{ $rss = . | transform.Unmarshal }} {{ else }} From 92e1dc4679df047b749286161295b91471e54ae8 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Tue, 25 Feb 2025 09:14:43 -0500 Subject: [PATCH 4/4] Update netlify.toml Signed-off-by: Yuri Shkuro --- netlify.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/netlify.toml b/netlify.toml index d50bb7ca..8de0f16f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,6 +3,7 @@ publish = "public" command = "make netlify-production-build" [build.environment] +# should match one from .github/workflows/ci-test.yml HUGO_VERSION = "0.143.1" [context.deploy-preview]