Sha256: 4eab1b04dce49e51be04aa4549649a2d543619076d4f088b9c0e2ca63663cc46
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
# middleman-aria_current A [Middleman] extension for indicating a current (active) link using [`aria-current`][spec]. If you're new to `aria-current`, [LĂ©onie Watson wrote a _wonderful_ article detailing its usage][article]. [Middleman]: https://middlemanapp.com/ [spec]: https://www.w3.org/TR/wai-aria-1.1/#aria-current [article]: http://tink.uk/using-the-aria-current-attribute/ # Install 1. Add middleman-aria_current to your `Gemfile`: ``` gem "middleman-aria_current" ``` 1. Run: ``` bundle install ``` ## Usage ```erb <%= current_link_to "Home", "/" %> ``` ```html <a href="/" aria-current="page">Home</a> ``` ## License middleman-aria_current is Copyright (c) 2017 Tyson Gach and thoughtbot, inc. It is free software, and may be redistributed under the terms specified in the [LICENSE] file. [LICENSE]: LICENSE.md ## About  middleman-aria_current is maintained and funded by thoughtbot, inc. The names and logos for thoughtbot are trademarks of thoughtbot, inc. We love open source software! See [our other projects][community] or [hire us][hire] to help build your product. [community]: https://thoughtbot.com/community?utm_source=github [hire]: https://thoughtbot.com/hire-us?utm_source=github
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-aria_current-0.1.0 | README.md |