sidenote 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/sidenote.rb +13 -0
- metadata +46 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a4878f065ddf2369ad1b696636397220e6a713c7
|
4
|
+
data.tar.gz: 4a3b766c69554f663ee7378e99c7f91a85e63a61
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b77771f2b3098a3253f44101fdefc8eeb1595c01861c241a60f21cc6c154ae7944fd04f6a53a56cd7abc82c6a288ce1c3ac2b48736d10306dac394bce2b73165
|
7
|
+
data.tar.gz: 4ed0ebe5a20804176f049f093f7ac8c95950f2cb1e2bc1212e60b186424fc91a75cbfa81269cb0dab40e7ddf6ea586011c1ae5a906d8334319adcb9c9d8e73a4
|
data/lib/sidenote.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
module Jekyll
|
2
|
+
class RenderSideNoteTag < Liquid::Tag
|
3
|
+
require "shellwords"
|
4
|
+
def initialize(tag_name, text, tokens)
|
5
|
+
super
|
6
|
+
@text = text.shellsplit
|
7
|
+
end
|
8
|
+
def render(context)
|
9
|
+
"<sup><label for='#{@text[0]}' class='margin-toggle sidenote-number'></label></sup><input type='checkbox' id='#{@text[0]}' class='margin-toggle'/><span class='sidenote'>#{@text[1]} </span>"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
Liquid::Template.register_tag('sidenote', Jekyll::RenderSideNoteTag)
|
metadata
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sidenote
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matthew Michalska-Smith
|
8
|
+
- Clay Harmon
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2016-08-26 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: A gem to allow side notes a la Edward Tufte on Github based Jekyll blogs
|
15
|
+
email:
|
16
|
+
- mjsmith037@gmail.com
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- lib/sidenote.rb
|
22
|
+
homepage: https://github.com/clayh53/tufte-jekyll
|
23
|
+
licenses:
|
24
|
+
- MIT
|
25
|
+
metadata: {}
|
26
|
+
post_install_message:
|
27
|
+
rdoc_options: []
|
28
|
+
require_paths:
|
29
|
+
- lib
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
requirements: []
|
41
|
+
rubyforge_project:
|
42
|
+
rubygems_version: 2.6.6
|
43
|
+
signing_key:
|
44
|
+
specification_version: 4
|
45
|
+
summary: Sidenotes a la Edward Tufte in Jekyll
|
46
|
+
test_files: []
|