Upgrade Hugo version to v0.143.1 (#851)

Resolves #850 

## Description of the changes
- added try functionality as new version of hugo

## How was this change tested?
- 

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [ ] I have added unit tests for the new functionality
- [ ] I have run lint and test steps successfully
  - for `jaeger`: `make lint test`
  - for `jaeger-ui`: `npm run lint` and `npm run test`

---------

Signed-off-by: AnmolxSingh <anmol7344@gmail.com>
Signed-off-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
This commit is contained in:
Anmol 2025-02-25 19:48:50 +05:30 committed by GitHub
parent 57ed087590
commit a1df2985cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -3,7 +3,8 @@ publish = "public"
command = "make netlify-production-build"
[build.environment]
HUGO_VERSION = "0.123.6"
# should match one from .github/workflows/ci-test.yml
HUGO_VERSION = "0.143.1"
[context.deploy-preview]
command = "make netlify-deploy-preview"

View File

@ -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 }}
{{ else with .Value }}
{{ $rss = . | transform.Unmarshal }}
{{ else }}
{{ warnf "Unable to fetch RSS feed" }}
{{ end }}
{{ end }}