Skip to content

Commit

Permalink
Upgrade Hugo version to v0.143.1 (#851)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>
  • Loading branch information
AnmolxSingh and yurishkuro authored Feb 25, 2025
1 parent 57ed087 commit a1df298
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 5 additions & 3 deletions themes/jaeger-docs/layouts/index.html
Original file line number Diff line number Diff line change
@@ -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 }}

Expand Down

0 comments on commit a1df298

Please sign in to comment.