jekyll-pdf-embed 1.1.2.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-pdf-embed/pdf-tag.rb +52 -2
- data/lib/jekyll-pdf-embed/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 502ec8a65a422d04ffc1f3da00fdc76f1c2ac823874da6c4eb2d0930cef2a282
|
4
|
+
data.tar.gz: 2c3d681e6d013757c47b33be5d83b1ea5723bfc6f8e020acc1101ce4c1236b60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20472200c186b2da24b421c4a41ec639d32c46351beb4dbd7f2726a36b2c4feafad243231eb60975a1eb8aab720b46615c055445f0ad3730dad0639e8807bc56
|
7
|
+
data.tar.gz: 85c83569831f49db1a20d9dad83fb9b21e19b7d1dc01a215045ddaefe6764c0a65e5e4c607684dd4c97f4b409c556c69fc02d4a21b54ae2da17cfc27888864e7
|
@@ -68,9 +68,59 @@ class JekyllPDFEmbed < Liquid::Tag
|
|
68
68
|
end
|
69
69
|
|
70
70
|
if @no_link
|
71
|
-
%
|
71
|
+
%(
|
72
|
+
<style>
|
73
|
+
.pdf-embed-wrap-#{@uuid} {
|
74
|
+
display: flex;
|
75
|
+
flex-direction: column;
|
76
|
+
width: #{@width};
|
77
|
+
height: #{@height};
|
78
|
+
}
|
79
|
+
.pdf-embed-container-#{@uuid} {
|
80
|
+
height: 100%;
|
81
|
+
}
|
82
|
+
.pdf-embed-container-#{@uuid} iframe {
|
83
|
+
width: 100%;
|
84
|
+
height: 100%;
|
85
|
+
}
|
86
|
+
</style>
|
87
|
+
<div class="pdf-embed-wrap-#{@uuid}">
|
88
|
+
<div class="pdf-embed-container-#{@uuid}">
|
89
|
+
<iframe src="#{@link}" frameborder="0" allowfullscreen></iframe>
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
).gsub(/\n+/, '').gsub(/\s+/, ' ').lstrip.chop.strip
|
72
93
|
else
|
73
|
-
%
|
94
|
+
%(
|
95
|
+
<style>
|
96
|
+
.pdf-embed-wrap-#{@uuid} {
|
97
|
+
display: flex;
|
98
|
+
flex-direction: column;
|
99
|
+
width: #{@width};
|
100
|
+
height: #{@height};
|
101
|
+
}
|
102
|
+
.pdf-embed-container-#{@uuid} {
|
103
|
+
height: 100%;
|
104
|
+
}
|
105
|
+
.pdf-link-#{@uuid} {
|
106
|
+
background-color: white;
|
107
|
+
text-align: center;
|
108
|
+
border-style: solid;
|
109
|
+
}
|
110
|
+
.pdf-embed-container-#{@uuid} iframe {
|
111
|
+
width: 100%;
|
112
|
+
height: 100%;
|
113
|
+
}
|
114
|
+
</style>
|
115
|
+
<div class="pdf-embed-wrap-#{@uuid}">
|
116
|
+
<div class="pdf-link-#{@uuid}">
|
117
|
+
<a href="#{@link}" target="_blank">#{@label}</a>
|
118
|
+
</div>
|
119
|
+
<div class="pdf-embed-container-#{@uuid}">
|
120
|
+
<iframe src="#{@link}" frameborder="0" allowfullscreen></iframe>
|
121
|
+
</div>
|
122
|
+
</div>
|
123
|
+
).gsub(/\n+/, '').gsub(/\s+/, ' ').lstrip.chop.strip
|
74
124
|
end
|
75
125
|
end
|
76
126
|
|
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.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mihajlo Nesic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|