Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ name: Deploy Hugo site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches:
- main
# branches:
# - main
branches: [ "*" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -60,7 +61,7 @@ jobs:
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
with:
Expand Down
16 changes: 8 additions & 8 deletions layouts/partials/capsule/chart-version.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
{{- $scratch.Set "chartVersion" "" -}}

{{- $helmIndexURL := "https://projectcapsule.github.io/charts/index.yaml" -}}
{{- $remote := resources.GetRemote $helmIndexURL -}}

{{- if $remote.Err -}}
{{- /* Remote fetch failed; we can't do better than a placeholder. */ -}}
{{- "latest" -}}
{{- else -}}
{{- $data := $remote | transform.Unmarshal -}}
{{- with try (resources.GetRemote $helmIndexURL) -}}
{{- with .Err -}}
{{- /* Remote fetch failed; we can't do better than a placeholder. */ -}}
{{- "latest" -}}
{{- else -}}
{{- $remote := .Value -}}
{{- $data := $remote | transform.Unmarshal -}}
{{- $entries := index $data "entries" -}}
{{- $capsuleCharts := index $entries "capsule" -}}

Expand Down Expand Up @@ -50,6 +50,6 @@
{{- end -}}
{{- end -}}
{{- end -}}

{{- $scratch.Get "chartVersion" -}}
{{- end -}}
{{- end -}}