Skip to content

Commit

Permalink
Upgrade to Hugo 0.124.1
Browse files Browse the repository at this point in the history
`.File` can potentially be nil on pages that can't be mapped to a file
(e.g., directories without an `_index.md`), so add a guard around the
GitHub docs link in the footer.
  • Loading branch information
arusahni authored and ggevay committed Jun 2, 2024
1 parent b9282e4 commit e69fbd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ci/builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ RUN if [ $ARCH_GCC = x86_64 ]; then \
&& echo '04d4be5097b98cd28de469f8856b3fbe82669f57b482a4cf3092a55e9e8e9e0d htmltest.tar.gz' | sha256sum --check \
&& tar -xzf htmltest.tar.gz -C /usr/local/bin htmltest \
&& rm htmltest.tar.gz \
&& curl -fsSL https://github.com/gohugoio/hugo/releases/download/v0.87.0/hugo_extended_0.87.0_Linux-64bit.tar.gz > hugo.tar.gz \
&& echo 'f216af92c06809c03981296f513ce54d3d690715d3c9fdfaff802d4a6759a260 hugo.tar.gz' | sha256sum --check \
&& curl -fsSL https://github.com/gohugoio/hugo/releases/download/v0.124.1/hugo_extended_0.124.1_Linux-64bit.tar.gz > hugo.tar.gz \
&& echo '55f5a5f6a4c923457b2ed4e2b00c251eabfe43d8d4afbe2ada92d9759c5e0410 hugo.tar.gz' | sha256sum --check \
&& tar -xzf hugo.tar.gz -C /usr/local/bin hugo \
&& rm hugo.tar.gz; \
fi
Expand Down
4 changes: 3 additions & 1 deletion doc/user/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
</svg>
</button>
</div>
{{ with .File }}
<div>
<a
href="//github.com/MaterializeInc/materialize/edit/main/doc/user/content/{{ .File.Path }}"
href="//github.com/MaterializeInc/materialize/edit/main/doc/user/content/{{ .Path }}"
class="btn-ghost"
>
<svg
Expand All @@ -52,6 +53,7 @@
Edit this page
</a>
</div>
{{ end }}
<div class="footer-links">
<a href="https://materialize.com">Home</a>
<a href="https://status.materialize.com">Status</a>
Expand Down

0 comments on commit e69fbd6

Please sign in to comment.