panthera-jekyll 1.2.1 → 1.3.4

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: e698d7a1ff8dbfa0e03259d10e4df413be01a7f056c2c803bf352c887bf2b69b
4
- data.tar.gz: c828eecc97bac4c876c74ce60eed510da7b1dc6fac1efd0ce76b708647c186f8
3
+ metadata.gz: 9901fd714c3d7a3ac57b105b8aa9645e0df295a7e83bec12ad12dc5362bd29f5
4
+ data.tar.gz: d39ff8e9270632607880ed87cf013a497de2c9b773c669fca3fe0cec4f92ce72
5
5
  SHA512:
6
- metadata.gz: 8ed2709024e200c487b8190debdc8906da135bf85e86d7b6e1368d8b298754aae62e2ceec45ffdfc85ce9429450bb74360b22ff2c46655cdaad0334a7e5fa5ca
7
- data.tar.gz: a204a1d20ec23ba90452fdefef8d06494b03f9fb9aec5888d062c394c4ffeb1cb40d9519c36538af4d8910ddf1acc7390dd46fbd32b3d9468449a726a8617e94
6
+ metadata.gz: c51dd8a2ffdf6696a44a6d101efa25c8059d0b2ce3e797e11c663830ac3e5418251bb665a120d027e08659a1cd4bc3ba1c51acde7bea52076156dc5dce9dae70
7
+ data.tar.gz: 3de15fa02321f4034aa1e6c0bd576cbb766a4e1a94bf32f0fdbac03d00cbc4743865678dbcaa4c79f631c2e89c7bff2e13f148301a12dbd93589fbbec591bb3d
data/README.md CHANGED
@@ -155,6 +155,67 @@ If you'd like to add your own custom styles:
155
155
 
156
156
  *Note: If you'd like to change the theme's Sass variables, you must set new values before the `@import` line in your stylesheet.*
157
157
 
158
+ ## Blog Posts
159
+
160
+ ### Creating Posts
161
+
162
+ To create a post, add a file to your `_posts` directory with the following format:
163
+
164
+ ```
165
+ YEAR-MONTH-DAY-title.MARKUP
166
+ ```
167
+
168
+ Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `MARKUP` is the file extension representing the format used in the file. For example, the following are examples of valid post filenames:
169
+
170
+ ```
171
+ 2020-07-10-new-years-eve-is-awesome.md
172
+ ```
173
+
174
+ ```md
175
+ ---
176
+ layout: post
177
+ title: First Demo Post
178
+ date: 2020-07-10 13:32:20 +0300
179
+ description: Post description (optional)
180
+ image: /image.jpg (optional)
181
+ tags: [Holidays, Hawaii]
182
+ ---
183
+
184
+ Post content here
185
+ ```
186
+
187
+ ### Displaying an index of posts
188
+
189
+ 1. Create a page, e.g. `posts.md`, with the following content:
190
+
191
+ ```md
192
+ ---
193
+ layout: post
194
+ ---
195
+
196
+ # PAGE TITLE HERE
197
+
198
+ {% include all-posts.html %}
199
+ ```
200
+
201
+ 2. Add a link to the left pane in your `_config.yml`
202
+
203
+ ```yml
204
+ menu:
205
+ ...
206
+ - text: Blog Posts
207
+ link: /posts
208
+ icon: ""
209
+ ```
210
+
211
+ ...and you're good
212
+
213
+ More post features are coming soon. To get updates on new features, hit the `Watch` button at the top of this page to get notifications.
214
+
215
+ If you love this project, kindly hit the `Star` button at the top of this page.
216
+
217
+ Follow me on [Github](//github.com/christianezeani) to see more of my projects.
218
+
158
219
  ## Contributing
159
220
 
160
221
  Bug reports and pull requests are welcome on GitHub at https://github.com/chrisitanezeani/panthera-jekyll. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://contributor-covenant.org) code of conduct.
@@ -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 %}
@@ -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="{{ site.baseurl }}">
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="{{ site.baseurl }}">
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="{{ site.baseurl }}">
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="{{ site.baseurl }}">
29
33
  <img src="https://secure.gravatar.com/avatar/?d=mm&r=g&s=150" alt="">
30
34
  </a>
31
35
  {% endif %}
File without changes
@@ -2,4 +2,21 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {{ content }}
5
+ <section class="post-view">
6
+ {% if page.image %}
7
+ <div class="post-view__image">
8
+ <img src="{{ page.image | relative_url }}" alt="{{ page.title }}">
9
+ </div>
10
+ {% endif %}
11
+
12
+ <div class="post-view__header">
13
+ <h1>{{ page.title }}</h1>
14
+ <div class="post-view__info">
15
+ <span><strong>Date:</strong> {{ page.date | date: '%Y, %b %d' }}</span>
16
+ </div>
17
+ </div>
18
+
19
+ <div class="post-view__body">
20
+ {{ content }}
21
+ </div>
22
+ </section>
@@ -0,0 +1,102 @@
1
+ .pan-post-list {
2
+ --display: block;
3
+
4
+ --left-width: auto;
5
+ --left-height: 150px;
6
+
7
+ --right-width: auto;
8
+ --right-height: auto;
9
+ --right-padding: 0px 20px;
10
+
11
+ --border-radius: 5px;
12
+
13
+ --content-top: 0px;
14
+ --content-transform: none;
15
+ --content-height: 100px;
16
+ --content-margin: -30px auto 0px auto;
17
+ --content-shadow: -2px 4px 8px rgba(0, 0, 0, .2);
18
+
19
+ @media (min-width: pan-device(lg)) {
20
+ --display: flex;
21
+
22
+ --left-width: 300px;
23
+ --left-height: auto;
24
+
25
+ --right-width: auto;
26
+ --right-padding: 20px 0px;
27
+
28
+ --content-top: 50%;
29
+ --content-transform: translateY(-50%);
30
+ --content-margin: 0px 0px 0px -30px;
31
+ }
32
+
33
+ &__item {
34
+ display: var(--display) !important;
35
+ flex-direction: row;
36
+ margin-bottom: 20px;
37
+
38
+ &:hover {
39
+ --content-shadow: -3px 5px 12px rgba(0, 0, 0, .4);
40
+ }
41
+ }
42
+
43
+ &--left {
44
+ width: var(--left-width) !important;
45
+ height: var(--left-height) !important;
46
+ }
47
+
48
+ &--right {
49
+ flex: 1;
50
+ padding: var(--right-padding) !important;
51
+ width: var(--right-width) !important;
52
+ }
53
+
54
+ &--image {
55
+ overflow: hidden;
56
+ border: 1px solid #DDD;
57
+ border-radius: var(--border-radius) !important;
58
+ width: 100% !important;
59
+ height: 100% !important;
60
+
61
+ > a {
62
+ display: block;
63
+ min-width: 100%;
64
+ min-height: 100%;
65
+ background-image: url(../images/post.jpg);
66
+ background-position: center;
67
+ background-repeat: no-repeat;
68
+ background-size: cover;
69
+ }
70
+ }
71
+
72
+ &--content {
73
+ position: relative;
74
+ top: var(--content-top) !important;
75
+ transform: var(--content-transform) !important;
76
+ background-color: #FFF;
77
+ border-radius: var(--border-radius) !important;
78
+ box-shadow: var(--content-shadow) !important;
79
+ margin: var(--content-margin) !important;
80
+ transition: all 0.5s ease-in-out 0s;
81
+ padding: 20px;
82
+ }
83
+
84
+ &--body {
85
+ overflow: hidden;
86
+ min-height: var(--content-height) !important;
87
+ }
88
+
89
+ h2 {
90
+ margin: 0px 0px 5px 0px;
91
+ }
92
+
93
+ .info {
94
+ font-size: 12px;
95
+ margin: 0px 0px 10px 0px;
96
+ }
97
+
98
+ .desc {
99
+ font-size: 15px;
100
+ margin: 0px;
101
+ }
102
+ }
@@ -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
  }
File without changes
@@ -0,0 +1,37 @@
1
+ .post-view {
2
+
3
+ &__image {
4
+ display: block;
5
+ margin-bottom: 20px;
6
+ border-radius: 5px;
7
+ overflow: hidden;
8
+
9
+ > img {
10
+ display: block;
11
+ width: 100%;
12
+ }
13
+ }
14
+
15
+ &__header {
16
+ text-align: center;
17
+ border-bottom: 1px solid #F0F0F0;
18
+ margin-bottom: 20px;
19
+
20
+ h1 {
21
+ border-bottom: none;
22
+ padding-bottom: 0px;
23
+ margin-bottom: 5px;
24
+ }
25
+ }
26
+
27
+ &__info {
28
+ margin-bottom: 10px;
29
+ font-size: 12px;
30
+ color: #333;
31
+ }
32
+
33
+ &__body {
34
+ //
35
+ }
36
+
37
+ }
@@ -9,4 +9,7 @@
9
9
  @import './includes/right.scss';
10
10
  @import './includes/header.scss';
11
11
  @import './includes/footer.scss';
12
- @import './includes/content.scss';
12
+ @import './includes/content.scss';
13
+ @import './includes/all-posts.scss';
14
+ @import './includes/pagination.scss';
15
+ @import './includes/post-view.scss';
Binary file
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.2.1
4
+ version: 1.3.4
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-03 00:00:00.000000000 Z
11
+ date: 2020-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -75,16 +75,21 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - LICENSE.txt
77
77
  - README.md
78
+ - _includes/all-posts.html
78
79
  - _includes/footer.html
79
80
  - _includes/header.html
80
81
  - _includes/left.html
82
+ - _includes/pagination.html
81
83
  - _layouts/default.html
82
84
  - _layouts/page.html
83
85
  - _layouts/post.html
86
+ - _sass/includes/all-posts.scss
84
87
  - _sass/includes/content.scss
85
88
  - _sass/includes/footer.scss
86
89
  - _sass/includes/header.scss
87
90
  - _sass/includes/left.scss
91
+ - _sass/includes/pagination.scss
92
+ - _sass/includes/post-view.scss
88
93
  - _sass/includes/right.scss
89
94
  - _sass/main.scss
90
95
  - _sass/panthera-jekyll.scss
@@ -94,6 +99,7 @@ files:
94
99
  - _sass/root/variables.scss
95
100
  - assets/css/style.scss
96
101
  - assets/images/left-background.jpg
102
+ - assets/images/post.jpg
97
103
  - assets/js/panthera-jekyll.js
98
104
  - assets/libs/fontawesome-5.9.0/css/all.css
99
105
  - assets/libs/fontawesome-5.9.0/css/all.min.css