We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4f72df commit 58539cbCopy full SHA for 58539cb
1 file changed
docs/layouts/_partials/header/header.html
@@ -143,6 +143,14 @@ <h5 class="offcanvas-title fw-bold" id="offcanvasNavMainLabel">{{ .Site.Params.T
143
144
<!-- Release Notes -->
145
<div class="flex-grow-1 d-none d-lg-flex justify-content-center align-items-center">
146
+ {{ $url := "https://api.github.com/repos/DefectDojo/django-DefectDojo/releases/latest" }}
147
+ {{ $resource := resources.GetRemote $url }}
148
+
149
+ {{ if $resource }}
150
+ {{ $release := $resource | transform.Unmarshal }}
151
152
+ {{ $release.name }} |
153
+ {{ end }}
154
<a href="/changelog/pro_changelog/">
155
<button type="button" class="btn btn-link nav-link p-2 d-none d-lg-block" aria-label="Release Notes">
156
<span class="fw-bold">Release Notes</span>
0 commit comments