panthera-jekyll 1.2.1 → 1.3.0

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: 97dff38fb777f88d514d40bb480844699b89fbea648eb18138dceeccd92d6fd8
4
+ data.tar.gz: 8729ed86c622920e7805920c2d85f78c94598c1ff0197f3d37e153046ac47a09
5
5
  SHA512:
6
- metadata.gz: 8ed2709024e200c487b8190debdc8906da135bf85e86d7b6e1368d8b298754aae62e2ceec45ffdfc85ce9429450bb74360b22ff2c46655cdaad0334a7e5fa5ca
7
- data.tar.gz: a204a1d20ec23ba90452fdefef8d06494b03f9fb9aec5888d062c394c4ffeb1cb40d9519c36538af4d8910ddf1acc7390dd46fbd32b3d9468449a726a8617e94
6
+ metadata.gz: 012d47efcef47ea5205f4aceffa965e9f09d710b41d2a20868504d9d3c95d153bdf075bf9980af9ba755b88655989b27b5f0e398660afe2783e2972bbf084d7b
7
+ data.tar.gz: '06655518c4c5c050ef8b5c755286fe9fc8f4e8fab6f682026929dd2fcaf01862e3189bfea0a40fb8c80d75568ef0489ff5e68ac581927a4ac6e373ce84ecc2f2'
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,29 @@
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 %}
File without changes
@@ -2,4 +2,23 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {{ content }}
5
+ <section class="post-view">
6
+ <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 %}
12
+ </div>
13
+
14
+ <div class="post-view__header">
15
+ <h1>{{ page.title }}</h1>
16
+ <div class="post-view__info">
17
+ <span><strong>Date:</strong> {{ page.date | date: '%Y, %b %d' }}</span>
18
+ </div>
19
+ </div>
20
+
21
+ <div class="post-view__body">
22
+ {{ content }}
23
+ </div>
24
+ </section>
@@ -0,0 +1,99 @@
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: auto;
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(md)) {
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
+ --content-height: 140px;
32
+ }
33
+
34
+ &__item {
35
+ display: var(--display) !important;
36
+ flex-direction: row;
37
+ margin-bottom: 20px;
38
+
39
+ &:hover {
40
+ --content-shadow: -3px 5px 12px rgba(0, 0, 0, .4);
41
+ }
42
+ }
43
+
44
+ &--left {
45
+ width: var(--left-width) !important;
46
+ height: var(--left-height) !important;
47
+ }
48
+
49
+ &--right {
50
+ flex: 1;
51
+ padding: var(--right-padding) !important;
52
+ width: var(--right-width) !important;
53
+ }
54
+
55
+ &--image {
56
+ overflow: hidden;
57
+ border: 1px solid #DDD;
58
+ border-radius: var(--border-radius) !important;
59
+ width: 100% !important;
60
+ height: 100% !important;
61
+
62
+ > a {
63
+ display: block;
64
+ min-width: 100%;
65
+ min-height: 100%;
66
+ background-image: url(../images/post.jpg);
67
+ background-position: center;
68
+ background-repeat: no-repeat;
69
+ background-size: cover;
70
+ }
71
+ }
72
+
73
+ &--content {
74
+ position: relative;
75
+ top: var(--content-top) !important;
76
+ transform: var(--content-transform) !important;
77
+ background-color: #FFF;
78
+ border-radius: var(--border-radius) !important;
79
+ box-shadow: var(--content-shadow) !important;
80
+ margin: var(--content-margin) !important;
81
+ height: var(--content-height) !important;
82
+ transition: all 0.5s ease-in-out 0s;
83
+ padding: 20px;
84
+ }
85
+
86
+ h2 {
87
+ margin: 0px 0px 5px 0px;
88
+ }
89
+
90
+ .info {
91
+ font-size: 12px;
92
+ margin: 0px 0px 10px 0px;
93
+ }
94
+
95
+ .desc {
96
+ font-size: 15px;
97
+ margin: 0px;
98
+ }
99
+ }
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.0
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