panthera-jekyll 1.3.0 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97dff38fb777f88d514d40bb480844699b89fbea648eb18138dceeccd92d6fd8
4
- data.tar.gz: 8729ed86c622920e7805920c2d85f78c94598c1ff0197f3d37e153046ac47a09
3
+ metadata.gz: 538a7ac4974e4a5a36af8224e3e630ecd5234893e1e602591aa72fa9ecda5d10
4
+ data.tar.gz: e50a221c57a48ea144b9be4fbfa1b86b819999b1a5583f9e90c8ec5daa0aa1f7
5
5
  SHA512:
6
- metadata.gz: 012d47efcef47ea5205f4aceffa965e9f09d710b41d2a20868504d9d3c95d153bdf075bf9980af9ba755b88655989b27b5f0e398660afe2783e2972bbf084d7b
7
- data.tar.gz: '06655518c4c5c050ef8b5c755286fe9fc8f4e8fab6f682026929dd2fcaf01862e3189bfea0a40fb8c80d75568ef0489ff5e68ac581927a4ac6e373ce84ecc2f2'
6
+ metadata.gz: 14a6cc7a8b1b4e334e380f5b1971da40f27a9ec63942fd9e96ad69dc664b56ae7e00bd6a2c7a28c355d4e7b4ea6e8b02e10ddee7ec03faa006e89a12a9ca5b4a
7
+ data.tar.gz: 44164cbe488db21797d8691482ae849e6d356ceb1e6b06dcc87151c1c3f29d4290abe1aa51cc0f88ea02e96244c08246d02bf6e8ff0b8e8f301f404212323f9f
data/README.md CHANGED
@@ -177,7 +177,7 @@ layout: post
177
177
  title: First Demo Post
178
178
  date: 2020-07-10 13:32:20 +0300
179
179
  description: Post description (optional)
180
- image: image.jpg (optional)
180
+ image: /image.jpg (optional)
181
181
  tags: [Holidays, Hawaii]
182
182
  ---
183
183
 
@@ -5,22 +5,24 @@
5
5
  <div class="pan-post-list--left">
6
6
  <div class="pan-post-list--image">
7
7
  {% if post.image %}
8
- <a href="{{ post.url | prepend: site.baseurl }}" style="background-image: url({{ '/' | prepend: site.baseurl | append: post.image }});"></a>
8
+ <a href="{{ post.url | relative_url }}" style="background-image: url({{ post.image | relative_url }});"></a>
9
9
  {% else %}
10
- <a href="{{ post.url | prepend: site.baseurl }}"></a>
10
+ <a href="{{ post.url | relative_url }}"></a>
11
11
  {% endif %}
12
12
  </div>
13
13
  </div>
14
14
  <div class="pan-post-list--right">
15
15
  <div class="pan-post-list--content">
16
- <h2><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2>
17
- <p class="info">
18
- <span>{{ post.date | date: '%Y, %b %d' }}</span>
19
- &nbsp;&nbsp; - &nbsp;&nbsp;
20
- <span>{% capture words %}{{ post.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}</span>
21
- </p>
22
- <p class="desc">{{ post.content | strip_html | truncatewords: 20 }}</p>
23
- </div>
16
+ <div class="pan-post-list--body">
17
+ <h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
18
+ <p class="info">
19
+ <span>{{ post.date | date: '%Y, %b %d' }}</span>
20
+ &nbsp;&nbsp; - &nbsp;&nbsp;
21
+ <span>{% capture words %}{{ post.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}</span>
22
+ </p>
23
+ <p class="desc">{{ post.content | strip_html | truncatewords: 20 }}</p>
24
+ </div>
25
+ </div>
24
26
  </div>
25
27
  </div>
26
28
  {% endfor %}
@@ -7,11 +7,13 @@
7
7
  <div class="pan-layout-header__avatar">
8
8
  <span>{{ site.title | default: site.github.owner_name }}</span>
9
9
 
10
- {% if site.github.owner_gravatar_url %}
11
- <img src="{{ site.avatar | default: site.github.owner_gravatar_url }}" alt="{{ site.title | default: site.github.owner_name }}">
12
- {% else %}
13
- <img src="https://secure.gravatar.com/avatar/?d=mm&r=g&s=40" alt="">
14
- {% endif %}
10
+ <a href="{{ '/' | relative_url }}">
11
+ {% if site.github.owner_gravatar_url %}
12
+ <img src="{{ site.avatar | default: site.github.owner_gravatar_url }}" alt="{{ site.title | default: site.github.owner_name }}">
13
+ {% else %}
14
+ <img src="https://secure.gravatar.com/avatar/?d=mm&r=g&s=40" alt="">
15
+ {% endif %}
16
+ </a>
15
17
  </div>
16
18
  </div>
17
19
  </section>
@@ -20,12 +20,16 @@
20
20
 
21
21
  <div class="pan-layout-left__top">
22
22
  <div class="pan-layout-left__avatar">
23
- {% if site.github.owner_gravatar_url %}
24
- <a href="{{ site.url }}">
25
- <img src="{{ site.avatar | default: site.github.owner_gravatar_url }}" alt="{{ site.title | default: site.github.owner_name }}">
23
+ {% if site.avatar %}
24
+ <a href="{{ '/' | relative_url }}">
25
+ <img src="{{ site.avatar }}" alt="{{ site.title | default: site.github.owner_name }}">
26
+ </a>
27
+ {% else if site.github.owner_gravatar_url %}
28
+ <a href="{{ '/' | relative_url }}">
29
+ <img src="{{ site.github.owner_gravatar_url }}" alt="{{ site.title | default: site.github.owner_name }}">
26
30
  </a>
27
31
  {% else %}
28
- <a href="{{ site.url }}">
32
+ <a href="{{ '/' | relative_url }}">
29
33
  <img src="https://secure.gravatar.com/avatar/?d=mm&r=g&s=150" alt="">
30
34
  </a>
31
35
  {% endif %}
@@ -3,13 +3,11 @@ layout: default
3
3
  ---
4
4
 
5
5
  <section class="post-view">
6
+ {% if page.image %}
6
7
  <div class="post-view__image">
7
- {% if page.image %}
8
- <img src="{{ '/' | prepend: site.baseurl | append: post.image }}" alt="{{ page.title }}">
9
- {% else %}
10
- <img src="{{ '/assets/images/post.jpg' | prepend: site.baseurl }}" alt="{{ page.title }}">
11
- {% endif %}
8
+ <img src="{{ page.image | relative_url }}" alt="{{ page.title }}">
12
9
  </div>
10
+ {% endif %}
13
11
 
14
12
  <div class="post-view__header">
15
13
  <h1>{{ page.title }}</h1>
@@ -12,11 +12,11 @@
12
12
 
13
13
  --content-top: 0px;
14
14
  --content-transform: none;
15
- --content-height: auto;
15
+ --content-height: 100px;
16
16
  --content-margin: -30px auto 0px auto;
17
17
  --content-shadow: -2px 4px 8px rgba(0, 0, 0, .2);
18
18
 
19
- @media (min-width: pan-device(md)) {
19
+ @media (min-width: pan-device(lg)) {
20
20
  --display: flex;
21
21
 
22
22
  --left-width: 300px;
@@ -28,7 +28,6 @@
28
28
  --content-top: 50%;
29
29
  --content-transform: translateY(-50%);
30
30
  --content-margin: 0px 0px 0px -30px;
31
- --content-height: 140px;
32
31
  }
33
32
 
34
33
  &__item {
@@ -78,11 +77,15 @@
78
77
  border-radius: var(--border-radius) !important;
79
78
  box-shadow: var(--content-shadow) !important;
80
79
  margin: var(--content-margin) !important;
81
- height: var(--content-height) !important;
82
80
  transition: all 0.5s ease-in-out 0s;
83
81
  padding: 20px;
84
82
  }
85
83
 
84
+ &--body {
85
+ overflow: hidden;
86
+ min-height: var(--content-height) !important;
87
+ }
88
+
86
89
  h2 {
87
90
  margin: 0px 0px 5px 0px;
88
91
  }
@@ -43,11 +43,18 @@
43
43
  margin-left: 10px;
44
44
  }
45
45
 
46
- img {
46
+ a {
47
+ display: inline-block;
47
48
  width: 40px;
48
49
  height: 40px;
49
- border-radius: 50%;
50
- vertical-align: middle;
50
+
51
+ > img {
52
+ width: 100%;
53
+ height: 100%;
54
+ border-radius: 50%;
55
+ vertical-align: middle;
56
+ }
51
57
  }
58
+
52
59
  }
53
60
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panthera-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Ezeani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-12 00:00:00.000000000 Z
11
+ date: 2020-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll