Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rcmdnk/keyboardkey
keyboardkey will provide "key" tag for the easy writing way of keyboard like symbol for Octopress
https://github.com/rcmdnk/keyboardkey
Last synced: about 1 month ago
JSON representation
keyboardkey will provide "key" tag for the easy writing way of keyboard like symbol for Octopress
- Host: GitHub
- URL: https://github.com/rcmdnk/keyboardkey
- Owner: rcmdnk
- Created: 2013-06-19T17:10:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-01T14:35:14.000Z (12 months ago)
- Last Synced: 2024-05-01T12:24:42.692Z (7 months ago)
- Language: Ruby
- Homepage: http://rcmdnk.github.io/blog/2013/06/19/blog-octopress/
- Size: 7.81 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
keyboardkey
===========keyboardkey provides "key" tag for the easy writing way of keyboard like symbol for Octopress.
## Installation
Copy `plugins/keyboardkey.rb` to your `plugins` directory,
and `sass/plugins/_keyboardkey.scss` to your `sass/plugins/` directory.Add a following line to `sass/plugins/_plugins.scss`:
@import "keyboardkey";
Done!
## Usage
Use `key` tag to produce keyboardkey like symbol like:
{% key A %}
For some symbols, you can use `symbol` argument at the second
with symbol names such `control`, `option`, `shift`, etc... (they are Mac symbols.)See `keyboardkey.rb` for other symbols.
If you want to change the size of outputs, use `key_small` or `key_large`.
(In addition, there are `key_half`, `key_2x`, `key_3x`, `key_4x`, `key_5x` options.)If you like black key, use `key_black`.
`key_uppercase` option will make all characters uppercase.Examples:
Show ⌃:
{% key symbol control %} :
Show Control:
{% key Control %} :
Show black, large key with a in uppercase:
{% key A key_black key_large key_uppercase %} :
More examples can be found [here](http://rcmdnk.github.io/blog/2013/06/19/blog-octopress/).
## Standalone scss file
`keyboardkey.scss` allows you to use direct discription w/o Liquid filter.
If you `keyboardkey.scss` in your site, you can use:
"A"
""to show keys of A or ⌃.