Skip to content

Commit

Permalink
404.html: advertise the current GRASS GIS version (#353)
Browse files Browse the repository at this point in the history
Aim: reduce confusion when visitors land on an outdated version announcement
(problem identified with Matomo, search behaviour analysis).

Shortcode from: https://github.com/OSGeo/grass-website/tree/master/themes/grass/layouts/shortcodes

Fixes #351
  • Loading branch information
neteler committed Feb 5, 2023
1 parent 84ab8fc commit 56217e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion themes/grass/layouts/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
<div class="row">
<div class="col-lg-8 text-center mx-auto">
<h1><a href="{{ "/" | relURL }}"><img alt="GRASS GIS" src="{{.Site.BaseURL}}/images/logos/grasslogo.svg" width="33%"></a></h1>
<div class="alert alert-warning"><h2 style="margin:10px;color:red;">Sorry, there's nothing here.<span style="display:block;margin:10px;font-size:.75em;">
<div class="alert alert-warning">
<h2 style="margin:10px;color:red;">Sorry, there's nothing here.
<span style="display:block;margin:10px;font-size:.75em;">
<a href="{{ "/" | relURL }}"><i class="fa fa-home"></i> home</a><br>
<a href="{{ "/learn/manuals/" | relURL }}"><i class="fa fa-file-text"></i> manuals</a><br>
<a href="{{ "/download/" | relURL }}"><i class="fa fa-download"></i> downloads</a>
</h2>
<p style="color: #088B36;">Current version: GRASS GIS {{ .Site.Data.grass.current_version }}</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 56217e8

Please sign in to comment.