jekyll-pinboard 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/jekyll-pinboard.rb +17 -0
- metadata +45 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 78f31a3e4517a7b86fb78fc458c8a80279f6b260
|
4
|
+
data.tar.gz: 6115dc380fdabbe574b3d6fd50233023fdfd62eb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b7bb79a3d3ec4bcc9e69da73949379f5a4e2ab85d76c6a5162bf58583fbe7a71218d1bf7ae90ff499752993a099cc65932ef6545cd8b37b4143c557da9ed5645
|
7
|
+
data.tar.gz: a5d7cf05bc7d6f2f3accaf60b88619a4e37e935c96ba266e88d2cebed3e0ce499a7e91154407efa614e3a69ea837f7388f0b2ef2a7dba09f9cd6c12b048ae7a7
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Jekyll Pinboard Plugin
|
2
|
+
# https://github.com/snaptortoise/jekyll-pinboard-plugin
|
3
|
+
# Author: George Mandis (http://george.mandi.is, https://snaptortoise.com)
|
4
|
+
|
5
|
+
require "open-uri"
|
6
|
+
require "json"
|
7
|
+
|
8
|
+
Jekyll::Hooks.register :site, :after_init do |site|
|
9
|
+
pinboard_token = site.config['pinboard']['token']
|
10
|
+
pinboard_tags = site.config['pinboard']['tags']
|
11
|
+
site.config['pinboard']['data'] = {}
|
12
|
+
|
13
|
+
pinboard_tags.each_with_index do |tag, key|
|
14
|
+
json_data = open("https://api.pinboard.in/v1/posts/all?auth_token=" + pinboard_token + "&format=json&tag=" + tag).read
|
15
|
+
site.config['pinboard']['data'][tag] = JSON.parse(json_data)
|
16
|
+
end
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-pinboard
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- George Mandis
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-10-25 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: This plugin makes your Pinboard bookmarks accessible within your Jekyll
|
14
|
+
templates.
|
15
|
+
email: george@mand.is
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/jekyll-pinboard.rb
|
21
|
+
homepage: https://github.com/snaptortoise/jekyll-pinboard-plugin
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata: {}
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
requirements: []
|
40
|
+
rubyforge_project:
|
41
|
+
rubygems_version: 2.6.7
|
42
|
+
signing_key:
|
43
|
+
specification_version: 4
|
44
|
+
summary: A Jekyll plugin that makes your Pinboard bookmarks accessible
|
45
|
+
test_files: []
|