jekyll-pdf-embed 1.0.1 → 1.0.2
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 +4 -4
- data/lib/jekyll-pdf-embed.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: beae1030c2bc28ceacb22348348e25e795bb13edf8c6acb85143f116ed46a1b0
|
|
4
|
+
data.tar.gz: dc2aaa09bdd08457d0ffb36978efcade92dd1b9821bfabe1671609e1cd6d6f88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df0a83aee8120e660643d1e1215dd278456456fa5bcf2beea2f3d1a274b083c09b31249ac03d30b316ac4410a2ce11d50326e0e3aa9704a5a7975acda2ee6a85
|
|
7
|
+
data.tar.gz: 4ed799fad7d82aef99ccdbb837856913d2a77d84e09ddc778163d1dcfcf2c6e8e998eaa3b0b0a8d46dd9acbc3eb81192ea8d8dbc8aa06f4c48f38e7d24a4fa4e
|
data/lib/jekyll-pdf-embed.rb
CHANGED
|
@@ -8,7 +8,7 @@ class PDFEmbed < Liquid::Tag
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def render(context)
|
|
11
|
-
%Q{<style>.pdf-embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; margin-bottom: 20px; } .pdf-embed-container iframe, .pdf-embed-container object, .pdf-embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style><div class='pdf-embed-container'><iframe title="PDF file" width="640" height="390" src=#{@text} frameborder="0" allowfullscreen></iframe></div>}
|
|
11
|
+
%Q{<style>.pdf-embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; margin-bottom: 20px; border-style: solid; } .pdf-link { background-color: white; text-align: center; border-style: solid; } .pdf-embed-container iframe, .pdf-embed-container object, .pdf-embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style><div class='pdf-link'><a href=#{@text}>View PDF</a></div><div class='pdf-embed-container'><iframe title="PDF file" width="640" height="390" src=#{@text} frameborder="0" allowfullscreen></iframe></div>}
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
Liquid::Template.register_tag('pdf', self)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-pdf-embed
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mihajlo Nesic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-09-
|
|
11
|
+
date: 2019-09-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -24,7 +24,9 @@ dependencies:
|
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
|
-
description:
|
|
27
|
+
description: "\n\tJekyll PDF Embed is a ruby gem for Jekyll static site generator.\n\tIt
|
|
28
|
+
allows user to easily embed external or local PDF files to any page or blog post.\n
|
|
29
|
+
\ "
|
|
28
30
|
email: nesicmihajlo98@gmail.com
|
|
29
31
|
executables: []
|
|
30
32
|
extensions: []
|
|
@@ -54,5 +56,5 @@ rubyforge_project:
|
|
|
54
56
|
rubygems_version: 2.7.6.2
|
|
55
57
|
signing_key:
|
|
56
58
|
specification_version: 4
|
|
57
|
-
summary: Jekyll plugin
|
|
59
|
+
summary: Jekyll plugin for embedding PDF files to any page or post
|
|
58
60
|
test_files: []
|