Skip to content

Commit

Permalink
website: fix community site (#4522)
Browse files Browse the repository at this point in the history
* remove hugo templating

This page doesn't go through hugo at all, so these things would
end up on the website.

A quick fix is reverting the bits that added the templating. The
downside is that local dev and PR previews will link to
/docs/latest/ecosystem, which doesn't exist there.

* link Documentation and Download to /docs

For /docs/ (not /docs/latest) we have a redirect in local dev and
PR preview mode:

    /docs -> /docs/edge

so this will be a little less broken: only ecosystem is a 404 link
on the preview.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
  • Loading branch information
srenatus committed Mar 30, 2022
1 parent b0ca278 commit 0e4d875
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docs/website/static/community.html
@@ -1,7 +1,3 @@
{{- $latest := "latest" -}}
{{- if eq (len site.Data.releases) 1 -}}
{{- $latest = "edge" -}}
{{- end -}}
<!doctype html>
<html lang="en">

Expand Down Expand Up @@ -42,13 +38,13 @@

<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="./docs/{{ $latest }}/">Documentation</a>
<a class="nav-link" href="./docs/">Documentation</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./docs/{{ $latest }}/#running-opa">Download</a>
<a class="nav-link" href="./docs/#running-opa">Download</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./docs/{{ $latest }}/ecosystem/">Ecosystem</a>
<a class="nav-link" href="./docs/latest/ecosystem/">Ecosystem</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./support">Support</a>
Expand Down

0 comments on commit 0e4d875

Please sign in to comment.