Skip to content

Commit

Permalink
Merge pull request #13 from owasp-modsecurity/hsiwik/issue-12
Browse files Browse the repository at this point in the history
Display v2 and v3 as stable version on the front page
  • Loading branch information
dune73 authored Apr 25, 2024
2 parents 94a252f + d22a6b5 commit 388096b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ images: ["/img/social-share.png"]

crs:
release_url_prefix: "https://github.com/owasp-modsecurity/ModSecurity/releases/tag"
latest_major_version: "3.0.12"
latest_v2_major_version: "2.9.7"
latest_v3_major_version: "3.0.12"

github:
repo_url: "https://github.com/owasp-modsecurity/website/blob/main"
Expand Down
3 changes: 2 additions & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ <h2 class="subhero">{{ i18n "subhero" }}</h2>
<p class="shortened-width">{{ i18n "explainerText" | markdownify }}</p>

{{ with $crs }}
<a href="{{ printf "%s/v%s" .release_url_prefix .latest_major_version }}" class="button">Get latest: {{ .latest_major_version }}</a>
<a href="{{ printf "%s/v%s" .release_url_prefix .latest_v2_major_version }}" class="button">Get latest v2: {{ .latest_v2_major_version }}</a>
<a href="{{ printf "%s/v%s" .release_url_prefix .latest_v3_major_version }}" class="button">Get latest v3: {{ .latest_v3_major_version }}</a>
{{ end }}
</div>
<div class="hero-grid__col1">
Expand Down

0 comments on commit 388096b

Please sign in to comment.