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 +4 -4
- data/README.md +1 -1
- data/_includes/all-posts.html +1 -28
- data/_includes/header.html +7 -5
- data/_includes/left.html +8 -4
- data/_includes/posts/index.html +31 -0
- data/_layouts/post.html +3 -5
- data/_sass/includes/all-posts.scss +7 -5
- data/_sass/includes/header.scss +10 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 409d41d6f729bbb21ae74a35920a9e124a089e4185188ba2a5c1235f7d14cf63
|
4
|
+
data.tar.gz: 698fec45346aa6cdef845894bcd7ed02160798cec0d88ba07d09c728e5243cfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c719498cf61233da8ef4e555fee8ad6db596496e713bd8b34ffca4003444a1462e650e0464aaed43e135da693415db433ed606d1d6869b80d6327f45e2e04c45
|
7
|
+
data.tar.gz: 0e18d49554c275a210ed1202bedd8ef1501eb08e66fcdfbce59e3b193619f9844500c69da95d14d4cda732cdc24f018533a5ee8d68250f2b84e3e3e9e64c89b8
|
data/README.md
CHANGED
data/_includes/all-posts.html
CHANGED
@@ -1,29 +1,2 @@
|
|
1
1
|
|
2
|
-
|
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
|
-
-
|
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 %}
|
data/_includes/header.html
CHANGED
@@ -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
|
-
{
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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>
|
data/_includes/left.html
CHANGED
@@ -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.
|
24
|
-
<a href="{{
|
25
|
-
<img src="{{ site.avatar
|
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="{{
|
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
|
+
-
|
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 %}
|
data/_layouts/post.html
CHANGED
@@ -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
|
-
{
|
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:
|
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(
|
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
|
}
|
data/_sass/includes/header.scss
CHANGED
@@ -43,11 +43,18 @@
|
|
43
43
|
margin-left: 10px;
|
44
44
|
}
|
45
45
|
|
46
|
-
|
46
|
+
a {
|
47
|
+
display: inline-block;
|
47
48
|
width: 40px;
|
48
49
|
height: 40px;
|
49
|
-
|
50
|
-
|
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.
|
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-
|
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
|