Skip to content

Commit

Permalink
- update View Latest button logic to be compatible with Antora 2
Browse files Browse the repository at this point in the history
use page.latest.url with fallback to page.versions.latest.url
  • Loading branch information
mojavelinux committed Jan 24, 2019
1 parent 8bd5ead commit 6211943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/partials/main.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{else}}
<p>A newer version of this documentation is available.</p>
{{/if}}
<a class="btn" href="{{{relativize page.versions.latest.url}}}">View Latest</a>
<a class="btn" href="{{{relativize (or page.latest.url page.versions.latest.url)}}}">View Latest</a>
</div>
{{/if}}
<div class="article-header">
Expand Down

0 comments on commit 6211943

Please sign in to comment.