panthera-jekyll 1.0.3 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac455459dc6d9801a6ffbff78c69b80ba2f60d21437d2b29c5a2e1fb120620a8
4
- data.tar.gz: 56bec00b4d03ba3dcf7d7b3e87755110c86565dcf4aba37521f66dc17b304c53
3
+ metadata.gz: 97dff38fb777f88d514d40bb480844699b89fbea648eb18138dceeccd92d6fd8
4
+ data.tar.gz: 8729ed86c622920e7805920c2d85f78c94598c1ff0197f3d37e153046ac47a09
5
5
  SHA512:
6
- metadata.gz: 6e02692a85736720bf6572880e657bbdf67c0e222058944bb72814d9882b1129786c11b58fb93da14e65322fd2b8780b37b596329a943804c9177fd90a6a9477
7
- data.tar.gz: be9b84d7a74051045736255a805c82700cfec22562475316bd2a541f168865238eb8d3129856f9633790bc434179f30bffa61b2b37c33f865f6581ed3c2bc07c
6
+ metadata.gz: 012d47efcef47ea5205f4aceffa965e9f09d710b41d2a20868504d9d3c95d153bdf075bf9980af9ba755b88655989b27b5f0e398660afe2783e2972bbf084d7b
7
+ data.tar.gz: '06655518c4c5c050ef8b5c755286fe9fc8f4e8fab6f682026929dd2fcaf01862e3189bfea0a40fb8c80d75568ef0489ff5e68ac581927a4ac6e373ce84ecc2f2'
data/README.md CHANGED
@@ -2,9 +2,14 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/panthera-jekyll.svg)](https://badge.fury.io/rb/panthera-jekyll)
4
4
  [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](code-of-conduct.md)
5
+ <!-- [![Jekyll Themes Shield](https://img.shields.io/badge/featured%20on-JT-red.svg)](https://jekyll-themes.com) -->
5
6
 
6
7
  *panthera-jekyll is a Jekyll theme for GitHub Pages and Jekyll sites. You can [preview the theme to see what it looks like](https://demothemes.github.io/panthera-jekyll), or even [use it today](#usage).*
7
8
 
9
+ <div style="text-align: center;">
10
+ <img src="/screenshot.png" alt="panthera-jekyll" style="width: 100%; max-width: 750px;" />
11
+ </div>
12
+
8
13
  ## Installation
9
14
 
10
15
  ### Building a Jekyll Site
@@ -49,6 +54,26 @@ subtitle: [A brief subtitle or job title]
49
54
  description: [A short description of your site's purpose]
50
55
  ```
51
56
 
57
+ To configure the left side set the following variables as shown below:
58
+
59
+ ```yml
60
+ left_side:
61
+ background_image: [Absolute or relative image url]
62
+ background_color: [CSS background color, e.g. "#F00". We strongly recommend quoting this value. Don't worry about the transparency of the background, we've taken care of that.]
63
+ close_button_color: [CSS background color, e.g. "#F00". We strongly recommend quoting this value.]
64
+ text_color: [CSS background color, e.g. "#F00". We strongly recommend quoting this value.]
65
+ ```
66
+
67
+ #### Example
68
+
69
+ ```yml
70
+ left_side:
71
+ background_image: "./assets/images/left-background.jpg"
72
+ background_color: "#F00"
73
+ close_button_color: "#F00"
74
+ text_color: "#F00"
75
+ ```
76
+
52
77
  To configure side menu, set the following variables:
53
78
 
54
79
  ```yml
@@ -93,16 +118,24 @@ social_icons:
93
118
  icon: fab fa-github-square
94
119
  ```
95
120
 
96
- panthera-jekyll currently supports the following icons:
121
+ To configure footer, set the following variables:
97
122
 
98
- * [FontAwesome](https://fontawesome.com) (version 5.9.0)
123
+ ```yml
124
+ footer:
125
+ copyright_text: [The copyright text. Value should be quoted]
126
+ ```
99
127
 
100
- Additionally, you may choose to set the following optional variables:
128
+ #### Example
101
129
 
102
130
  ```yml
103
- google_analytics: [Your Google Analytics tracking ID]
131
+ footer:
132
+ copyright_text: "&copy; Christian Ezeani"
104
133
  ```
105
134
 
135
+ panthera-jekyll currently supports the following icons:
136
+
137
+ * [FontAwesome](https://fontawesome.com) (version 5.9.0)
138
+
106
139
  ### Stylesheet
107
140
 
108
141
  If you'd like to add your own custom styles:
@@ -122,9 +155,70 @@ If you'd like to add your own custom styles:
122
155
 
123
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.*
124
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
+
125
219
  ## Contributing
126
220
 
127
- 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](http://contributor-covenant.org) code of conduct.
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.
128
222
 
129
223
  ## License
130
224
 
@@ -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 %}
@@ -1,5 +1,10 @@
1
1
  <section class="pan-layout-footer">
2
2
  <div class="pan-layout-footer-right">
3
- <div>Theme developed by <a target="_blank" href="https://github.com/christianezeani">Christian Ezeani</a>.</div>
3
+ <div>
4
+ {% if site.footer %}
5
+ <span class="pan-layout-footer__copyright">{{ site.footer.copyright_text }}</span>
6
+ {% endif %}
7
+ <span>Theme developed by <a target="_blank" href="https://github.com/christianezeani">Christian Ezeani</a>.</span>
8
+ </div>
4
9
  </div>
5
10
  </section>
@@ -1,10 +1,33 @@
1
- <section class="pan-layout-left">
1
+ <section
2
+ class="pan-layout-left"
3
+ {% if site.left_side %}
4
+ style="
5
+ {% if site.left_side.background_image %}
6
+ background-image: url({{ site.left_side.background_image }});
7
+ {% endif %}
8
+ {% if site.left_side.text_color %}
9
+ color: {{ site.left_side.text_color }};
10
+ {% endif %}
11
+ "
12
+ {% endif %}
13
+ >
14
+ <section
15
+ class="pan-layout-left__overlay"
16
+ {% if site.left_side %}
17
+ style="{% if site.left_side.background_color %}background-color: {{ site.left_side.background_color }} !important;{% endif %}"
18
+ {% endif %}
19
+ ></section>
20
+
2
21
  <div class="pan-layout-left__top">
3
22
  <div class="pan-layout-left__avatar">
4
23
  {% if site.github.owner_gravatar_url %}
5
- <img src="{{ site.avatar | default: site.github.owner_gravatar_url }}" alt="{{ site.title | default: site.github.owner_name }}">
24
+ <a href="{{ site.url }}">
25
+ <img src="{{ site.avatar | default: site.github.owner_gravatar_url }}" alt="{{ site.title | default: site.github.owner_name }}">
26
+ </a>
6
27
  {% else %}
7
- <img src="https://secure.gravatar.com/avatar/?d=mm&r=g&s=150" alt="">
28
+ <a href="{{ site.url }}">
29
+ <img src="https://secure.gravatar.com/avatar/?d=mm&r=g&s=150" alt="">
30
+ </a>
8
31
  {% endif %}
9
32
  </div>
10
33
 
@@ -38,7 +61,7 @@
38
61
  <span>GET IN TOUCH</span>
39
62
  </div>
40
63
  <div class="pan-layout-left__social">
41
- {% if site.social %}
64
+ {% if site.social_icons %}
42
65
  <ul>
43
66
  {% for social in site.social_icons %}
44
67
  {% if social.icon %}
@@ -50,7 +73,12 @@
50
73
  </div>
51
74
  </div>
52
75
 
53
- <div class="pan-layout-left__close">
76
+ <div
77
+ class="pan-layout-left__close"
78
+ {% if site.left_side %}
79
+ style="{% if site.left_side.close_button_color %}color: {{ site.left_side.close_button_color }} !important;{% endif %}"
80
+ {% endif %}
81
+ >
54
82
  <i class="fa fa-fw fa-times"></i>
55
83
  </div>
56
84
  </section>
File without changes
@@ -41,16 +41,6 @@
41
41
  <script type="text/javascript" src="{{ '/assets/libs/jquery-3.4.1.min.js' | relative_url }}"></script>
42
42
  <script type="text/javascript" src="{{ '/assets/libs/jquery-migrate-3.0.1.min.js' | relative_url }}"></script>
43
43
  <script type="text/javascript" src="{{ '/assets/js/panthera-jekyll.js?v=' | append: site.github.build_revision | relative_url }}"></script>
44
-
45
- {% if site.google_analytics %}
46
- <script>
47
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
48
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
49
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
50
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
51
- ga('create', '{{ site.google_analytics }}', 'auto');
52
- ga('send', 'pageview');
53
- </script>
54
- {% endif %}
44
+
55
45
  </body>
56
46
  </html>
@@ -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
+ }
@@ -17,4 +17,18 @@
17
17
  padding: 0px 20px;
18
18
  }
19
19
 
20
+ &__copyright {
21
+ display: inline-block;
22
+ border-right: 1px solid #CCC;
23
+ padding-right: 10px;
24
+ margin-right: 10px;
25
+ }
26
+
27
+ @media (min-width: pan-device(md)) {
28
+ &__copyright {
29
+ float: left;
30
+ border-right: none;
31
+ }
32
+ }
33
+
20
34
  }
@@ -13,23 +13,25 @@
13
13
  color: #FFF;
14
14
  z-index: 100500;
15
15
 
16
- &:before {
16
+ &__overlay {
17
17
  display: block;
18
18
  position: absolute;
19
19
  top: 0px;
20
20
  bottom: 0px;
21
21
  left: 0px;
22
22
  right: 0px;
23
- content: "";
24
23
  background-color: var(--pan-layout-left-background-color);
24
+ opacity: .7;
25
25
  }
26
26
 
27
27
  > * {
28
28
  position: absolute;
29
29
  left: 0px;
30
30
  right: 0px;
31
+ z-index: 2;
31
32
  }
32
33
 
34
+
33
35
  h1,h2,h3,h4,h5,h6 {
34
36
  margin: 0px;
35
37
  }
@@ -90,7 +92,7 @@
90
92
  margin: 0px;
91
93
 
92
94
  a {
93
- color: #FFF;
95
+ color: inherit !important;
94
96
  }
95
97
  }
96
98
  }
@@ -103,17 +105,23 @@
103
105
  right: 0px;
104
106
  height: 200px;
105
107
 
106
- img {
108
+ a {
107
109
  display: block;
108
- margin: 0px auto;
109
- width: 150px;
110
- height: 150px;
111
- border-radius: 50%;
112
-
113
110
  position: relative;
114
111
  top: 50%;
115
112
  transform: translateY(-50%);
113
+ width: 150px;
114
+ height: 150px;
115
+ margin: 0px auto;
116
+
117
+ > img {
118
+ display: block;
119
+ width: 100% !important;
120
+ height: 100% !important;
121
+ border-radius: 50%;
122
+ }
116
123
  }
124
+
117
125
  }
118
126
 
119
127
  &__info {
@@ -159,7 +167,7 @@
159
167
  > a {
160
168
  display: block;
161
169
  padding: 15px 15px 15px 30px;
162
- color: #FFF !important;
170
+ color: inherit !important;
163
171
  text-decoration: none !important;
164
172
  }
165
173
  }
@@ -168,6 +176,7 @@
168
176
  &__close {
169
177
  left: unset;
170
178
  top: 0px;
179
+ right: 10px;
171
180
  padding: 10px 15px;
172
181
  color: #FFF;
173
182
  cursor: pointer;
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';
@@ -4,7 +4,7 @@
4
4
 
5
5
  --pan-layout-left-width: 100vw;
6
6
  --pan-layout-left-left: calc(var(--pan-layout-left-width) * -1);
7
- --pan-layout-left-background-color: rgba(0, 122, 204, .7);
7
+ --pan-layout-left-background-color: rgb(0, 122, 204);
8
8
  --pan-layout-left-background-image: url(../images/left-background.jpg);
9
9
  --pan-layout-left-top-height: 300px;
10
10
  --pan-layout-left-bottom-height: 70px;
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.0.3
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: 2019-06-10 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
@@ -379,8 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
379
385
  - !ruby/object:Gem::Version
380
386
  version: '0'
381
387
  requirements: []
382
- rubyforge_project:
383
- rubygems_version: 2.7.6.2
388
+ rubygems_version: 3.0.3
384
389
  signing_key:
385
390
  specification_version: 4
386
391
  summary: A quick and simple responsive developer portfolio theme for jekyll sites