Sha256: 46c0c17aed4e2ecf36c0b41da69849b1cb9e8701abefec820fa75b45804c4a09

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 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/

# Installation

1. Add middleman-aria_current to your `Gemfile`:

    ```bash
    gem "middleman-aria_current"
    ```

1. Install the gem:

    ```bash
    bundle install
    ```

1. Activate the extension in `config.rb`:

    ```ruby
    activate :aria_current
    ```

## Usage

```erb
<%= current_link_to "Home", "/" %>
<%= current_link_to "About", "/about" %>
```

```html
<a href="/" aria-current="page">Home</a>
<a href="/about">About</a>
```

## License

middleman-aria_current is copyright © 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

![thoughtbot](http://presskit.thoughtbot.com/images/thoughtbot-logo-for-readmes.svg)

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.1 README.md