OpenZeppelin / docs.openzeppelin.com

Source for the OpenZeppelin documentation site
https://docs.openzeppelin.com
45 stars 87 forks source link

Add banner when viewing previous versions #243

Open frangio opened 4 years ago

frangio commented 4 years ago

Some users are visiting the docs for older versions of a project when they are actually interested in the latest version. We can have a banner at the top of older versions reminding people that they're not looking at the latest version.

frangio commented 3 years ago

This should probably be added in article.hbs using something like:

{{#unless (eq @root.page.componentVersion.version @root.page.component.latestVersion.version)}}
<!-- banner -->
{{/unless}}