plainwhite 0.6 → 0.8

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
  SHA1:
3
- metadata.gz: 415ae0d29ed33469ef13a934cc3170368c1c0a03
4
- data.tar.gz: 264415d30a381f3dcd59e0bcf3f4623518282bf6
3
+ metadata.gz: 7f7cd6d45864dc691c485e201d0d2169b9533cb4
4
+ data.tar.gz: 180603f55effe0fdc1cb294ce08a1019aa4c0e7d
5
5
  SHA512:
6
- metadata.gz: 0fd2ad253990e76fb3e6161e0121b1c5df0faf8052810f5c9e63ff6ab28a6338316133568c7ca207edbe5f7eb1bdc450acb88d4eb6fa259ec08ec56935c4c67c
7
- data.tar.gz: 99158ae7ed4cddf35413e73ac96639f0461df0d7d976146177e57f42c595529aaeb736501d493f7782983b0853a4aa8533a75956dd3acb4e685c2532db04b68b
6
+ metadata.gz: c9a3ad6d8f4cdcea202e48bf976212c110ca67b037f711063b6cd240aac1806a78d8d247b2e63a7309e6ec37fe32141af8aad3e8e1cff8ba98ece7078a2ee678
7
+ data.tar.gz: 02e56d415986a7805139a71ffbf85f17ffb7934939f7107d81df7e47d3181e4b4025e7b67c0f27eed2b8ba4647568b5d7d57d4956e81f32ae0edb69c5f795b69
data/404.html ADDED
@@ -0,0 +1,34 @@
1
+ ---
2
+ title: Page Not Found
3
+ ---
4
+ <!DOCTYPE html>
5
+ <html lang="en">
6
+ <head>
7
+ {%- include head.html -%}
8
+ <style>
9
+ h2 {
10
+ font-feature-settings: "lnum";
11
+ background-color: #ddd;
12
+ width: 140px;
13
+ height: 140px;
14
+ border-radius: 100%;
15
+ display: flex;
16
+ justify-content: center;
17
+ align-items: center
18
+ }
19
+ body {
20
+ display: flex;
21
+ justify-content: center;
22
+ align-items: center;
23
+ flex-direction: column;
24
+ font-size: 20px;
25
+ height: 80vh;
26
+ }
27
+ p {text-align: center; line-height: 2em;}
28
+ </style>
29
+ </head>
30
+ <body>
31
+ <h2>404</h2>
32
+ <p>Page not found.</p>
33
+ </body>
34
+ </html>
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Simplistic jekyll portfolio-style theme for writers.
4
4
 
5
+ **Demo**: [thelehhman.com](https://thelehhman.com)
6
+
5
7
  ![plainwhite theme preview](/screenshot.png)
6
8
 
7
9
 
@@ -68,6 +70,15 @@ plainwhite:
68
70
  analytics_id: '< YOUR ID >'
69
71
  ```
70
72
 
73
+ **Sitemap**
74
+
75
+ It can be toggled by the following line to under plainwhite in `_config.yml`
76
+
77
+ ```yaml
78
+ plainwhite:
79
+ sitemap: true
80
+ ```
81
+
71
82
  **Excerpts**
72
83
 
73
84
  Excerpts can be enabled by adding the following line to your `_config.yml`
@@ -97,3 +108,6 @@ To add a custom directory to your theme-gem, please edit the regexp in `plainwhi
97
108
 
98
109
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
99
110
 
111
+ ## More themes
112
+
113
+ - [Texture](https://github.com/thelehhman/texture)
@@ -10,9 +10,15 @@
10
10
  <h2>{{ site.plainwhite.name }}</h2>
11
11
  <p class="tagline">{{ site.plainwhite.tagline }}</p>
12
12
  <ul class="social">
13
+ {%- if site.plainwhite.social_links.github -%}
13
14
  <a href="https://github.com/{{ site.plainwhite.social_links.github }}"><li><i class="icon-github-circled"></i></li></a>
14
- <a href="https://linkedin.com/{{ site.plainwhite.social_links.linkedIn }}"><li><i class="icon-linkedin-squared"></i></li></a>
15
- <a href="https://twitter.com/{{ site.plainwhite.social_links.twitter }}"><li><i class="icon-twitter-squared"></i></li></a>
15
+ {%- endif -%}
16
+ {%- if site.plainwhite.social_links.linkedIn -%}
17
+ <a href="https://www.linkedin.com/{{ site.plainwhite.social_links.linkedIn }}"><li><i class="icon-linkedin-squared"></i></li></a>
18
+ {%- endif -%}
19
+ {%- if site.plainwhite.social_links.twitter -%}
20
+ <a href="https://twitter.com/{{ site.plainwhite.social_links.twitter }}"><li><i class="icon-twitter-squared"></i></li></a>
21
+ {%- endif -%}
16
22
  </ul>
17
23
  <p>&copy; 2019</p>
18
24
  </section>
@@ -31,4 +37,4 @@
31
37
  </script>
32
38
  {%- endif -%}
33
39
  </body>
34
- </html>
40
+ </html>
data/_layouts/home.html CHANGED
@@ -10,34 +10,34 @@ layout: default
10
10
 
11
11
  {%- if site.posts.size > 0 -%}
12
12
  <ul class="posts">
13
- {%- for post in site.posts -%}
14
- <li>
15
- <h1 id="posts-label">posts</h1>
16
- </li>
17
- <li>
18
- {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
19
- <a class="post-link" href="{{ post.url | relative_url }}">
20
- <h2 class="post-title">{{ post.title | escape }}</h2>
21
- </a>
22
- <div class="post-meta">
23
- <ul class="post-categories">
24
- {%- for tag in post.categories -%}
25
- <li>{{ tag }}</li>
26
- {%- endfor -%}
27
- </ul>
28
- <div class="post-date"><i class="icon-calendar"></i>{{ post.date | date: date_format }}</div>
29
- </div>
30
- <div class="post">
31
- {%- if site.show_excerpts -%}
32
- {{ post.excerpt }}
33
- {%- endif -%}
34
- </div>
35
- </li>
36
- {%- endfor -%}
13
+ <li>
14
+ <h1 id="posts-label">posts</h1>
15
+ </li>
16
+
17
+ {%- for post in site.posts -%}
18
+ <li>
19
+ {%- assign date_format = site.plainwhite.date_format | default: "%b %-d, %Y" -%}
20
+ <a class="post-link" href="{{ post.url | relative_url }}">
21
+ <h2 class="post-title">{{ post.title | escape }}</h2>
22
+ </a>
23
+ <div class="post-meta">
24
+ <ul class="post-categories">
25
+ {%- for tag in post.categories -%}
26
+ <li>{{ tag }}</li>
27
+ {%- endfor -%}
28
+ </ul>
29
+ <div class="post-date"><i class="icon-calendar"></i>{{ post.date | date: date_format }}</div>
30
+ </div>
31
+ <div class="post">
32
+ {%- if site.show_excerpts -%}
33
+ {{ post.excerpt }}
34
+ {%- endif -%}
35
+ </div>
36
+ </li>
37
+ {%- endfor -%}
37
38
  </ul>
38
39
 
39
- <!-- <p class="feed-subscribe"><svg class="svg-icon orange">
40
+ <!-- <p class="feed-subscribe"><svg class="svg-icon orange">
40
41
  <use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use>
41
42
  </svg><a href="{{ "/feed.xml" | relative_url }}">Subscribe</a></p> -->
42
- {%- endif -%}
43
-
43
+ {%- endif -%}
data/_layouts/post.html CHANGED
@@ -1,36 +1,37 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
4
+ {%- assign date_format = site.plainwhite.date_format | default: "%b %-d, %Y" -%}
5
5
  <div class="post-container">
6
- <a class="post-link" href="{{ page.url | relative_url }}">
7
- <h2 class="post-title">{{ page.title | escape }}</h2>
8
- </a>
9
- <div class="post-meta">
10
- <ul class="post-categories">
11
- {%- for tag in page.categories -%}
12
- <li>{{ tag }}</li>
13
- {%- endfor -%}
14
- </ul>
15
- <div class="post-date"><i class="icon-calendar"></i>{{ page.date | date: date_format }}</div>
16
- </div>
17
- <div class="post">
18
- {{ content }}
19
- </div>
20
- {%- if site.plainwhite.disqus_shortname -%}
21
- <div id="disqus_thread" style="margin-top:25px"></div>
6
+ <a class="post-link" href="{{ page.url | relative_url }}">
7
+ <h2 class="post-title">{{ page.title | escape }}</h2>
8
+ </a>
9
+ <div class="post-meta">
10
+ <ul class="post-categories">
11
+ {%- for tag in page.categories -%}
12
+ <li>{{ tag }}</li>
13
+ {%- endfor -%}
14
+ </ul>
15
+ <div class="post-date"><i class="icon-calendar"></i>{{ page.date | date: date_format }}</div>
16
+ </div>
17
+ <div class="post">
18
+ {{ content }}
19
+ </div>
20
+ {%- if site.plainwhite.disqus_shortname -%}
21
+ <div id="disqus_thread" style="margin-top:25px"></div>
22
22
  <script>
23
23
  var disqus_config = function () {
24
24
  this.page.url = '{{ page.url | absolute_url }}';
25
25
  this.page.identifier = '{{ page.url | absolute_url }}';
26
26
  };
27
- (function() {
27
+ (function () {
28
28
  var d = document, s = d.createElement('script');
29
29
  s.src = 'https://{{ site.plainwhite.disqus_shortname }}.disqus.com/embed.js';
30
30
  s.setAttribute('data-timestamp', +new Date());
31
31
  (d.head || d.body).appendChild(s);
32
32
  })();
33
33
  </script>
34
- <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
34
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments
35
+ powered by Disqus.</a></noscript>
36
+ {%- endif -%}
35
37
  </div>
36
- {%- endif -%}
data/_sass/plain.scss CHANGED
@@ -62,8 +62,9 @@ main {
62
62
 
63
63
  .content {
64
64
  @media screen and (min-width: $mobileW + 1){
65
- max-width: calc(100% - $leftWidth);
65
+ max-width: calc(100% - #{$leftWidth});
66
66
  margin-left: $leftWidth;
67
+ width: 100%;
67
68
  }
68
69
  }
69
70
  .about {
@@ -117,23 +118,32 @@ main {
117
118
  li {
118
119
  font-size: 14px;
119
120
  float: left;
120
- background-color: #E3E3E3;
121
+ background-color: #f0f0f0;
121
122
  padding: 5px 20px;
122
123
  border-radius: 2px;
123
124
  @media screen and (max-width: $mobileW){
124
125
  margin-top: 5px;
125
126
  }
126
127
  margin-right: 10px;
128
+ margin-bottom: 10px;
127
129
  }
128
130
  }
129
131
  .post-date {
130
132
  margin-right: 10px;
131
133
  color: #555;
134
+ min-width: 150px;
132
135
  }
133
136
  .post-meta {
134
137
  display: flex;
135
138
  justify-content: space-between;
136
139
  align-items: center;
140
+ @media screen and (max-width: $mobileW){
141
+ flex-direction: column-reverse;
142
+ align-items: baseline;
143
+ .post-date {
144
+ margin-bottom: 16px;
145
+ }
146
+ }
137
147
  }
138
148
  .post-link {
139
149
  text-decoration: none;
@@ -156,7 +166,7 @@ main {
156
166
  }
157
167
  }
158
168
  .post-container {
159
- padding-left: 40px;
169
+ padding-left: 30px;
160
170
  }
161
171
  .post {
162
172
  font-family: 'Merriweather', sans-serif;
@@ -171,6 +181,9 @@ main {
171
181
  border-bottom: 0.5px solid $linkColor;
172
182
  }
173
183
  }
184
+ h1, h2, h3, h4, h5, h6 {
185
+ font-family: Raleway, sans-serif;
186
+ }
174
187
  }
175
188
 
176
189
  #posts-label {
@@ -181,4 +194,4 @@ main {
181
194
  letter-spacing: 0.5px;
182
195
  padding-bottom: 10px;
183
196
  font-weight: normal;
184
- }
197
+ }
data/sitemap.xml ADDED
@@ -0,0 +1,25 @@
1
+ ---
2
+ layout: null
3
+ ---
4
+ {%-if site.plainwhite.sitemap -%}
5
+ <?xml version="1.0" encoding="UTF-8"?>
6
+ <urlset
7
+ xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
8
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9
+ xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
10
+ http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
11
+ <url>
12
+ <loc>{{ site.url }}</loc>
13
+ <lastmod>2019-06-07T00:00:00+00:00</lastmod>
14
+ <priority>1.00</priority>
15
+ </url>
16
+ {%- for post in site.posts -%}
17
+ <url>
18
+ <loc>{{ site.url }}{{ post.url }}</loc>
19
+ <lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
20
+ <changefreq>weekly</changefreq>
21
+ <priority>0.80</priority>
22
+ </url>
23
+ {%- endfor -%}
24
+ </urlset>
25
+ {%- endif -%}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plainwhite
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.6'
4
+ version: '0.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samarjeet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-09 00:00:00.000000000 Z
11
+ date: 2019-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -73,6 +73,7 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
+ - 404.html
76
77
  - LICENSE.txt
77
78
  - README.md
78
79
  - _includes/head.html
@@ -93,6 +94,7 @@ files:
93
94
  - assets/font/fontello.woff
94
95
  - assets/font/fontello.woff2
95
96
  - assets/portfolio.png
97
+ - sitemap.xml
96
98
  homepage: https://thelehhman.com/
97
99
  licenses:
98
100
  - MIT