jekyll-anecdote 0.0.3
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/jekyll-anecdote.rb +15 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b32db2d4996e11bf85deca88d9b2f2b573cffb286f3335c1f5bfc6f8c54eefad
|
4
|
+
data.tar.gz: 2a106a987ef4a0b2b192e736d2c28c0f9cc319d668825bafc1a52b76e0c9f6b5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 85dad5931f32733ee5bee95782e7b0e6e0c6c2ec9251cfe554e62ab8e94f78a5b21ec3629c286519a5867039180b5180961c2a52810097648c17fcb01349ef5a
|
7
|
+
data.tar.gz: 626e53b6af742a24039e0afba7645fb7f70e56111d0332de8ef4acdbf1ba275c7b4579459d83b84c76cf72d250947895114d8b856458f2c2e7b78d19b8981e7a
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require "jekyll"
|
2
|
+
|
3
|
+
class AnecdoteTag < Liquid::Tag
|
4
|
+
def initialize(tag_name, text, tokens)
|
5
|
+
super
|
6
|
+
@text = text
|
7
|
+
end
|
8
|
+
|
9
|
+
def render(context)
|
10
|
+
/([^|]+)\|(.+)/.match @text.strip
|
11
|
+
"<sup class=\"tooltip\">[#{$1}]<span>#{$2}</span></sup>"
|
12
|
+
end
|
13
|
+
|
14
|
+
Liquid::Template.register_tag "anecdote", self
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-anecdote
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Johan Manuel
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-09-03 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Add popup trivia to your posts
|
14
|
+
email: johan.manuel@live.fr
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/jekyll-anecdote.rb
|
20
|
+
homepage:
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubygems_version: 3.1.4
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: Anecdote
|
43
|
+
test_files: []
|