Skip to content

Commit

Permalink
added banner for old docs (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
PixelRobots authored Jun 29, 2023
1 parent c92d661 commit 76ea56d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions layouts/partials/docs/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@
</span>
</a>
</div>
{{ if not $isLatest }}
{{ $url := replaceRE $version $latest .RelPermalink }}
<article class="message is-warning">
<div class="message-header">
<p>Warning</p>
</div>
<div class="message-body">
You are currently viewing Version "{{ $version }}" of the documentation and it is not the latest. For the most recent documentation, kindly <a href="{{ $url }}"> click here.</a>
</div>
</article>
{{ end }}
</div>
</div>
</section>

0 comments on commit 76ea56d

Please sign in to comment.