diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2018-10-24 11:59:40 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2018-10-24 12:04:57 +0300 |
commit | 1dbf91bec026da1f56f8c350ea83d66a510af790 (patch) | |
tree | 1410388287a7ebf8f8f098bbc9545ae85bef2571 /layouts/versions_dropdown.html | |
parent | 9e2c92296c3aaef571647a3c1f7db0c85bd92963 (diff) |
Move archives content to an index.html file
This fixes the issue when on the /archives page.
The dropdown login is that it takes the Nanoc identifier (file path
under content/) and in the archives case it was different than the
created file (set in Rules).
With this change, the identifier and the ending result are the same,
thus the dropdown link no longer 404.
Diffstat (limited to 'layouts/versions_dropdown.html')
-rw-r--r-- | layouts/versions_dropdown.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/layouts/versions_dropdown.html b/layouts/versions_dropdown.html index 739b1eec..f3384cca 100644 --- a/layouts/versions_dropdown.html +++ b/layouts/versions_dropdown.html @@ -3,10 +3,11 @@ <a role="button" class="btn btn-versions dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="versions"> <!-- Name the label dropdown after the release version so that you know - which version you're browsing. For `/archives` show 'Versions'. + which version you're browsing. For `/archives` show 'Archives' since + they're supposed to be versionless. --> - <% if @item.identifier.to_s.split('/')[1] == 'archives.html' %> - Versions + <% if @item.identifier.to_s.split('/')[1] == 'archives' %> + Archives <% else %> <%= ENV['CI_COMMIT_REF_NAME'] %> <% end %> |