panthera-jekyll 1.3.1 → 1.3.6

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: a23aa043febea91846126df2300a992c447beb78663e279fc3764b43341dfdae
4
- data.tar.gz: 73621de703c1949a97126a2f7d483138ec64a59192c18ef181c88a89478e7fb9
3
+ metadata.gz: 409d41d6f729bbb21ae74a35920a9e124a089e4185188ba2a5c1235f7d14cf63
4
+ data.tar.gz: 698fec45346aa6cdef845894bcd7ed02160798cec0d88ba07d09c728e5243cfa
5
5
  SHA512:
6
- metadata.gz: 8613a429a32c4b8818df74b3509387a3bf42768f111712666fdab318dc2f7ef25b07c8563a26d82d6cb938712868cfb87ba6c4991995d79df85570c4782c4e69
7
- data.tar.gz: fb441b81d2a79c30328a114f9a2daf49fb3d06a8b34d9337f25c3d74ff3295d8e063c940684f5c77f23d5a749d0bd65142a59da1d1af7f7c5f11d7c0cef16b72
6
+ metadata.gz: c719498cf61233da8ef4e555fee8ad6db596496e713bd8b34ffca4003444a1462e650e0464aaed43e135da693415db433ed606d1d6869b80d6327f45e2e04c45
7
+ data.tar.gz: 0e18d49554c275a210ed1202bedd8ef1501eb08e66fcdfbce59e3b193619f9844500c69da95d14d4cda732cdc24f018533a5ee8d68250f2b84e3e3e9e64c89b8
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
 
@@ -1,29 +1,2 @@
1
1
 
2
- <section class="pan-post-list">
3
- {% for post in site.posts %}
4
- <div class="pan-post-list__item">
5
- <div class="pan-post-list--left">
6
- <div class="pan-post-list--image">
7
- {% if post.image %}
8
- <a href="{{ post.url | prepend: site.baseurl }}" style="background-image: url({{ '/' | prepend: site.baseurl | append: post.image }});"></a>
9
- {% else %}
10
- <a href="{{ post.url | prepend: site.baseurl }}"></a>
11
- {% endif %}
12
- </div>
13
- </div>
14
- <div class="pan-post-list--right">
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>
24
- </div>
25
- </div>
26
- {% endfor %}
27
- </section>
28
-
29
- {% include pagination.html %}
2
+ {% include posts/index.html %}
@@ -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.baseurl }}">
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.baseurl }}">
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 %}
@@ -0,0 +1,31 @@
1
+
2
+ <section class="pan-post-list">
3
+ {% for post in site.posts %}
4
+ <div class="pan-post-list__item">
5
+ <div class="pan-post-list--left">
6
+ <div class="pan-post-list--image">
7
+ {% if post.image %}
8
+ <a href="{{ post.url | relative_url }}" style="background-image: url({{ post.image | relative_url }});"></a>
9
+ {% else %}
10
+ <a href="{{ post.url | relative_url }}"></a>
11
+ {% endif %}
12
+ </div>
13
+ </div>
14
+ <div class="pan-post-list--right">
15
+ <div class="pan-post-list--content">
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>
26
+ </div>
27
+ </div>
28
+ {% endfor %}
29
+ </section>
30
+
31
+ {% include pagination.html %}
@@ -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 {
@@ -73,16 +72,19 @@
73
72
  &--content {
74
73
  position: relative;
75
74
  top: var(--content-top) !important;
76
- transform: var(--content-transform) !important;
77
75
  background-color: #FFF;
78
76
  border-radius: var(--border-radius) !important;
79
77
  box-shadow: var(--content-shadow) !important;
80
78
  margin: var(--content-margin) !important;
81
- height: var(--content-height) !important;
82
79
  transition: all 0.5s ease-in-out 0s;
83
80
  padding: 20px;
84
81
  }
85
82
 
83
+ &--body {
84
+ overflow: hidden;
85
+ min-height: var(--content-height) !important;
86
+ }
87
+
86
88
  h2 {
87
89
  margin: 0px 0px 5px 0px;
88
90
  }
@@ -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.1
4
+ version: 1.3.6
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-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -80,6 +80,7 @@ files:
80
80
  - _includes/header.html
81
81
  - _includes/left.html
82
82
  - _includes/pagination.html
83
+ - _includes/posts/index.html
83
84
  - _layouts/default.html
84
85
  - _layouts/page.html
85
86
  - _layouts/post.html