jasper-theme 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +52 -0
  4. data/_includes/author-profile.html +68 -0
  5. data/_includes/author.html +61 -0
  6. data/_includes/card.html +26 -0
  7. data/_includes/category.html +27 -0
  8. data/_includes/floating-header.hbs +28 -0
  9. data/_includes/footer.html +30 -0
  10. data/_includes/header.html +17 -0
  11. data/_includes/icons/avatar.svg +1 -0
  12. data/_includes/icons/facebook.svg +1 -0
  13. data/_includes/icons/infinity.svg +1 -0
  14. data/_includes/icons/rss.svg +1 -0
  15. data/_includes/icons/twitter.svg +1 -0
  16. data/_includes/icons/web.svg +1 -0
  17. data/_includes/meta.html +7 -0
  18. data/_includes/multiple-author.html +0 -0
  19. data/_includes/navbar.html +36 -0
  20. data/_includes/navigation.html +14 -0
  21. data/_includes/other-post.html +38 -0
  22. data/_includes/posts.html +3 -0
  23. data/_includes/reading-time.html +10 -0
  24. data/_includes/single-author.html +24 -0
  25. data/_includes/subscribe-form.html +8 -0
  26. data/_includes/subscribe-overlay.html +15 -0
  27. data/_layouts/author.html +12 -0
  28. data/_layouts/category.html +13 -0
  29. data/_layouts/default.html +12 -0
  30. data/_layouts/home.html +9 -0
  31. data/_layouts/page.html +5 -0
  32. data/_layouts/post.html +103 -0
  33. data/_sass/1-helpers/_functions.sass +0 -0
  34. data/_sass/1-helpers/_helpers.sass +2 -0
  35. data/_sass/1-helpers/_mixins.sass +43 -0
  36. data/_sass/1-helpers/_variables.sass +10 -0
  37. data/_sass/2-base/_base.sass +2 -0
  38. data/_sass/2-base/_global.sass +62 -0
  39. data/_sass/2-base/_normalize.scss +190 -0
  40. data/_sass/2-base/_typography.sass +0 -0
  41. data/_sass/3-layout/_footer.sass +54 -0
  42. data/_sass/3-layout/_header.sass +174 -0
  43. data/_sass/3-layout/_layout.sass +2 -0
  44. data/_sass/4-modules/_card.sass +229 -0
  45. data/_sass/4-modules/_modules.sass +4 -0
  46. data/_sass/4-modules/_previous-next-post.sass +116 -0
  47. data/_sass/4-modules/_subscribe-form.sass +66 -0
  48. data/_sass/4-modules/_subscribe-overlay.sass +78 -0
  49. data/_sass/5-pages/_author-profile.sass +66 -0
  50. data/_sass/5-pages/_pages.sass +2 -0
  51. data/_sass/5-pages/_post.sass +361 -0
  52. data/assets/css/style.sass +8 -0
  53. data/assets/js/script.js +9 -0
  54. metadata +138 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b20cc133aa514bd7e69b3cc973c2b660b4a6a6e753010b4fa3ca0e380e2d2e22
4
+ data.tar.gz: 3a85e437db3b731192d01dc79b0ca7d106dd3bf8f35a868a7d0a7d16cdbabb74
5
+ SHA512:
6
+ metadata.gz: b482e0bf8d5c8bb13bc0c3323c42feeae73504f6bc19db3886d5e3a4d783d5097ee7a2ad1dee21a10827d40341e579fdca9cfe702ec9b982a208a0d4d17432a3
7
+ data.tar.gz: 74dc716b66e2eadbf2e34347fe852cd123ce60d8ed80e2c0c9a791b6534c2c75170c4e676c5829caece7262cb08352ed704610032d125b5f99a07c1f3b134e7e
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Yashu Mittal
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,52 @@
1
+ # jasper-theme
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's `Gemfile`:
13
+
14
+ ```ruby
15
+ gem "jasper-theme"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: jasper-theme
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install jasper-theme
31
+
32
+ ## Usage
33
+
34
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
35
+
36
+ ## Contributing
37
+
38
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. 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.
39
+
40
+ ## Development
41
+
42
+ To set up your environment to develop this theme, run `bundle install`.
43
+
44
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
45
+
46
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
47
+
48
+ To add a custom directory to your theme-gem, please edit the regexp in `jasper-theme.gemspec` accordingly.
49
+
50
+ ## License
51
+
52
+ The theme is available as open source under the terms of the [MIT License](/licenses).
@@ -0,0 +1,68 @@
1
+ {% assign writers = site.data.authors[page.username] %}
2
+ {% assign homepage = false %}
3
+
4
+ <header class="site-header outer">
5
+ <div class="inner">
6
+ {% include navbar.html %}
7
+ <div class="site-header-content">
8
+ <img class="author-profile-image" src="{{writers.image}}" alt="{{writers.name}}">
9
+ <h1 class="site-title">{{writers.name}}</h1>
10
+ <h2 class="author-bio">
11
+ {% if writers.bio %}
12
+ {{writers.bio}}
13
+ {% else %}
14
+
15
+ {% endif %}
16
+ </h2>
17
+ <div class="author-meta">
18
+ <div class="author-location">
19
+ {% if writers.location %}
20
+ {{writers.location}}
21
+ <span class="bull">•</span>
22
+ {% endif %}
23
+ </div>
24
+ <div class="author-stats">
25
+ {% assign number_of_category_post = 0 %}
26
+ {% for post in site.posts %}
27
+ {% if post.author == writers.user_name %}
28
+ {% assign number_of_category_post=number_of_category_post | plus: 1 %}
29
+ {% endif %}
30
+ {% endfor %}
31
+ {{number_of_category_post}} posts
32
+ <span class="bull">•</span>
33
+ </div>
34
+ {% if writers.link %}
35
+ <a class="social-link" href="{{writers.link}}" target="_blank" rel="noopener">
36
+ {% include icons/web.svg %}
37
+ </a>
38
+ {% endif %}
39
+ {% if writers.twitter %}
40
+ <a class="social-link" href="{{writers.twitter}}" target="_blank" rel="noopener">
41
+ {% include icons/twitter.svg %}
42
+ </a>
43
+ {% endif %}
44
+ {% if writers.facebook %}
45
+ <a class="social-link" href="{{writers.facebook}}" target="_blank" rel="noopener">
46
+ {% include icons/facebook.svg %}
47
+ </a>
48
+ {% endif %}
49
+ <a class="social-link social-link-rss" href="/feed.xml"
50
+ target="_blank" rel="noopener">
51
+ {% include icons/rss.svg %}
52
+ </a>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </header>
57
+
58
+ <main id="site-main" class="site-main outer">
59
+ <div class="inner">
60
+ <div class="post-feed">
61
+ {% for post in site.posts reversed %}
62
+ {% if post.author == writers.user_name %}
63
+ {% include card.html url=post.url image=post.image category=post.category title=post.title description=post.description author=post.author content=post.content %}
64
+ {% endif %}
65
+ {% endfor %}
66
+ </div>
67
+ </div>
68
+ </main>
@@ -0,0 +1,61 @@
1
+ <ul class="author-list">
2
+ {% assign author_name = include.author | split: "," %}
3
+ {% assign writers = site.data.authors[include.author] %}
4
+ {% assign author_name_size = author_name | size %}
5
+
6
+ {% if author_name_size > 1 %}
7
+
8
+ <!-- {% for author in author_name %}
9
+ <li class="author-list-item">
10
+ {% for writer in writers %}
11
+ {% if author == writer.user_name %}
12
+ <div class="author-name-tooltip">
13
+ {{ writer.name }}
14
+ </div>
15
+ {% assign writer_image = writer.image | slice: 0, 5 %}
16
+ {% if writer_image == "https" %}
17
+ <a href="/author/{{ writer.user_name }}/" class="static-avatar">
18
+ <img class="author-profile-image" src="{{ writer.image }}" alt="{{ writer.name }}" />
19
+ </a>
20
+ {% else %}
21
+ <a href="/author/{{ writer.user_name }}/" class="static-avatar author-profile-image">{% include icons/avatar.svg %}</a>
22
+ {% endif %}
23
+ {% endif %}
24
+ {% endfor %}
25
+ </li>
26
+ {% endfor %} -->
27
+
28
+ {% else%}
29
+
30
+ <li class="author-list-item">
31
+ {% if site.tooltip %}
32
+ <div class="author-name-tooltip">
33
+ {{ writers.name }}
34
+ </div>
35
+ {% endif %}
36
+ {% assign writers_image = writers.image | slice: 0, 5 %}
37
+ {% if writers_image == "https" %}
38
+ <a href="/author/{{ writers.user_name }}/" class="static-avatar">
39
+ <img class="author-profile-image" src="{{ writers.image }}" alt="{{ writers.name }}" />
40
+ </a>
41
+ {% unless site.tooltip %}
42
+ <span class="author-profile-name">
43
+ <a href="/author/{{ writers.user_name }}/">{{ writers.name | truncate: 15 }}</a>
44
+ </span>
45
+ {% endunless %}
46
+ {% else %}
47
+ <a href="/author/{{ writers.user_name }}/" class="static-avatar author-profile-image">
48
+ <img src="{% include icons/avatar.svg %}" alt="{{ writers.name }}">
49
+ </a>
50
+ {% unless site.tooltip %}
51
+ <span class="author-profile-name">
52
+ <a href="/author/{{ writers.user_name }}/">{{ writers.name | truncate: 15 }}</a>
53
+ </span>
54
+ {% endunless %}
55
+ {% endif %}
56
+ </li>
57
+
58
+ {% endif %}
59
+
60
+
61
+ </ul>
@@ -0,0 +1,26 @@
1
+ <article class="post-card">
2
+ <a class="post-card-image-link" href="{{ include.url }}">
3
+ <div class="post-card-image" style="background-image: url({{include.image}})"></div>
4
+ </a>
5
+
6
+ <div class="post-card-content">
7
+ <a class="post-card-content-link" href="{{ include.url }}">
8
+ <header class="post-card-header">
9
+ <span class="post-card-category">
10
+ {% assign category = include.category | split: "-" | join: " " %} {{ category }}
11
+ </span>
12
+ <h2 class="post-card-title">{{ include.title | truncatewords: 5, "" }}</h2>
13
+ </header>
14
+ <section class="post-card-description">
15
+ <p>{{ include.description | truncatewords: 40, "" }}</p>
16
+ </section>
17
+ </a>
18
+ <footer class="post-card-meta">
19
+
20
+ {% include author.html %}
21
+
22
+ {% include reading-time.html %}
23
+
24
+ </footer>
25
+ </div>
26
+ </article>
@@ -0,0 +1,27 @@
1
+ {% assign homepage = false %}
2
+ <header class="site-header outer">
3
+ <div class="inner">
4
+ {% include navbar.html %}
5
+ <div class="site-header-content">
6
+ <h1 class="site-title">{{page.title}}</h1>
7
+ <h2 class="site-description">
8
+ {% assign number_of_category_post = 0 %}
9
+ {% for post in site.categories.[page.category] %}
10
+ {% assign number_of_category_post=number_of_category_post | plus: 1 %}
11
+ {% endfor %}
12
+ A collection of {{number_of_category_post}} posts
13
+ </h2>
14
+ </div>
15
+ </div>
16
+ </header>
17
+
18
+ <main id="site-main" class="site-main outer">
19
+ <div class="inner">
20
+ <div class="post-feed">
21
+ {% for post in site.categories.[page.category] reversed %}
22
+ {% assign number_of_category_post=number_of_category_post | plus: 1 %}
23
+ {% include card.html url=post.url image=post.image category=post.category title=post.title description=post.description author=post.author content=post.content %}
24
+ {% endfor %}
25
+ </div>
26
+ </div>
27
+ </main>
@@ -0,0 +1,28 @@
1
+ <div class="floating-header">
2
+ <div class="floating-header-logo">
3
+ <a href="{{@blog.url}}">
4
+ {{#if @blog.icon}}
5
+ <img src="{{@blog.icon}}" alt="{{@blog.title}} icon" />
6
+ {{/if}}
7
+ <span>{{@blog.title}}</span>
8
+ </a>
9
+ </div>
10
+ <span class="floating-header-divider">&mdash;</span>
11
+ <div class="floating-header-title">{{title}}</div>
12
+ <div class="floating-header-share">
13
+ <div class="floating-header-share-label">Share this {{> "icons/point"}}</div>
14
+ <a class="floating-header-share-tw" href="https://twitter.com/share?text={{encode title}}&amp;url={{url absolute="true"}}"
15
+ onclick="window.open(this.href, 'share-twitter', 'width=550,height=235');return false;">
16
+ {{> "icons/twitter"}}
17
+ </a>
18
+ <a class="floating-header-share-fb" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}"
19
+ onclick="window.open(this.href, 'share-facebook','width=580,height=296');return false;">
20
+ {{> "icons/facebook"}}
21
+ </a>
22
+ </div>
23
+ <progress class="progress" value="0">
24
+ <div class="progress-container">
25
+ <span class="progress-bar"></span>
26
+ </div>
27
+ </progress>
28
+ </div>
@@ -0,0 +1,30 @@
1
+ <footer class="site-footer outer">
2
+ <div class="site-footer-content inner">
3
+ <section class="copyright">
4
+ <a href="{{site.url}}">{{site.title}}</a> © {{ "now" | date: "%Y" }}
5
+ </section>
6
+ <nav class="site-footer-nav">
7
+ <ul>
8
+ <li>
9
+ <a href="{{site.baseurl}}/">Latest Posts</a>
10
+ </li>
11
+
12
+ {% if site.facebook_url %}
13
+ <li>
14
+ <a href="{{site.facebook_url}}" target="_blank" rel="noopener">Facebook</a>
15
+ </li>
16
+ {% endif %}
17
+
18
+ {% if site.twitter_url %}
19
+ <li>
20
+ <a href="{{site.twitter_url}}" target="_blank" rel="noopener">Twitter</a>
21
+ </li>
22
+ {% endif %}
23
+
24
+ <li>
25
+ <a href="https://jekyllrb.org" target="_blank" rel="noopener">Jekyll</a>
26
+ </li>
27
+ </ul>
28
+ </nav>
29
+ </div>
30
+ </footer>
@@ -0,0 +1,17 @@
1
+ <header class="site-header outer" {% if site.cover_image %} style="background-image: url({{site.cover_image}})" {% else %} {% endif %}>
2
+ <div class="inner">
3
+ <div class="site-header-content">
4
+ {% if site.logo != "" %}
5
+ <div class="site-title">
6
+ <img class="site-logo" src="{{site.logo}}" alt="{{site.title}}">
7
+ </div>
8
+ {% else %}
9
+ <h1 class="site-title">
10
+ {{site.title}}
11
+ </h1>
12
+ {% endif %}
13
+ <h2 class="site-description">{{site.description}}</h2>
14
+ </div>
15
+ {% include navbar.html %}
16
+ </div>
17
+ </header>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M3.513 18.998C4.749 15.504 8.082 13 12 13s7.251 2.504 8.487 5.998C18.47 21.442 15.417 23 12 23s-6.47-1.558-8.487-4.002zM12 12c2.21 0 4-2.79 4-5s-1.79-4-4-4-4 1.79-4 4 1.79 5 4 5z" fill="#FFF"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M134.941 272.691h56.123v231.051a8.256 8.256 0 0 0 8.258 8.258h95.159a8.256 8.256 0 0 0 8.258-8.258V273.78h64.519a8.26 8.26 0 0 0 8.204-7.315l9.799-85.061a8.259 8.259 0 0 0-8.202-9.203h-74.316V118.88c0-16.073 8.654-24.224 25.726-24.224h48.59a8.258 8.258 0 0 0 8.258-8.258V8.319a8.256 8.256 0 0 0-8.258-8.258h-66.965A65.863 65.863 0 0 0 307.027 0c-11.619 0-52.006 2.281-83.909 31.63-35.348 32.524-30.434 71.465-29.26 78.217v62.352H134.94a8.256 8.256 0 0 0-8.258 8.258v83.975a8.26 8.26 0 0 0 8.259 8.259z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 14.5s2 3 5 3 5.5-2.463 5.5-5.5S21 6.5 18 6.5c-5 0-7 11-12 11C2.962 17.5.5 15.037.5 12S3 6.5 6 6.5s4.5 3.5 4.5 3.5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 410.155 410.155"><path d="M403.632 74.18a162.414 162.414 0 0 1-28.28 9.537 88.177 88.177 0 0 0 23.275-37.067c1.295-4.051-3.105-7.554-6.763-5.385a163.188 163.188 0 0 1-43.235 17.862 11.02 11.02 0 0 1-2.702.336c-2.766 0-5.455-1.027-7.57-2.891-16.156-14.239-36.935-22.081-58.508-22.081-9.335 0-18.76 1.455-28.014 4.325-28.672 8.893-50.795 32.544-57.736 61.724-2.604 10.945-3.309 21.9-2.097 32.56a3.166 3.166 0 0 1-.797 2.481 3.278 3.278 0 0 1-2.753 1.091c-62.762-5.831-119.358-36.068-159.363-85.14-2.04-2.503-5.952-2.196-7.578.593-7.834 13.44-11.974 28.812-11.974 44.454 0 23.972 9.631 46.563 26.36 63.032a79.24 79.24 0 0 1-20.169-7.808c-3.06-1.7-6.825.485-6.868 3.985-.438 35.612 20.412 67.3 51.646 81.569a79.567 79.567 0 0 1-16.786-1.399c-3.446-.658-6.341 2.611-5.271 5.952 10.138 31.651 37.39 54.981 70.002 60.278-27.066 18.169-58.585 27.753-91.39 27.753l-10.227-.006c-3.151 0-5.816 2.054-6.619 5.106-.791 3.006.666 6.177 3.353 7.74 36.966 21.513 79.131 32.883 121.955 32.883 37.485 0 72.549-7.439 104.219-22.109 29.033-13.449 54.689-32.674 76.255-57.141 20.09-22.792 35.8-49.103 46.692-78.201 10.383-27.737 15.871-57.333 15.871-85.589v-1.346c-.001-4.537 2.051-8.806 5.631-11.712a174.776 174.776 0 0 0 35.16-38.591c2.573-3.849-1.485-8.673-5.719-6.795z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23.5 11.957c0 6.375-5.163 11.544-11.532 11.544C5.599 23.5.5 18.125.5 11.75.5 5.542 5.37.758 11.505.511l.5-.011C18.374.5 23.5 5.582 23.5 11.957zM11.505.511c-6 6.5-6 14.98 0 22.98m1-22.98c6 6.5 6 14.977 0 22.977M2 17.479h20.063m-19.657-12h19.062m-20.968 6h22.938" stroke="#fff" stroke-linejoin="round" stroke-miterlimit="10" fill="none"/></svg>
@@ -0,0 +1,7 @@
1
+ <meta charset="UTF-8">
2
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
3
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
4
+ <title>{{site.title}}</title>
5
+
6
+ <!-- CSS -->
7
+ <link rel="stylesheet" type="text/css" href="{{ '/assets/css/style.css' | relative_url }}">
File without changes
@@ -0,0 +1,36 @@
1
+ <nav class="site-nav">
2
+ <div class="site-nav-left">
3
+ {% if homepage == false %}
4
+ <a class="site-nav-logo" href="{{site.url}}">
5
+ {% if site.logo != "" %}
6
+ <img src="{{site.logo}}" alt="{{site.title}} Logo" />
7
+ {% else %}
8
+ <h1>
9
+ {{site.title}}
10
+ </h1>
11
+ {% endif %}
12
+ </a>
13
+ {% endif %}
14
+ {% include navigation.html %}
15
+ </div>
16
+
17
+ <div class="site-nav-right">
18
+ <div class="social-links">
19
+ {% if site.facebook_url %}
20
+ <a class="social-link social-link-fb" href="{{site.facebook_url}}" target="_blank" rel="noopener">
21
+ {% include icons/facebook.svg %}
22
+ </a>
23
+ {% endif %} {% if site.twitter_url %}
24
+ <a class="social-link social-link-tw" href="{{site.twitter_url}}" target="_blank" rel="noopener">
25
+ {% include icons/twitter.svg %}
26
+ </a>
27
+ {% endif %}
28
+ </div>
29
+ {% if site.subscribe == true %}
30
+ <a class="subscribe-button" href="#subscribe" onClick="show_subscribe_overlay()">Subscribe</a>
31
+ {% include subscribe-overlay.html %}
32
+ {% else %}
33
+ <a class="rss-button" href="{{site.url}}/feed.xml" target="_blank" rel="noopener">{% include icons/rss.svg %}</a>
34
+ {% endif %}
35
+ </div>
36
+ </nav>
@@ -0,0 +1,14 @@
1
+ <ul class="nav" role="menu">
2
+ <li class="nav-home nav-current" role="menuitem">
3
+ <a href="/">Home</a>
4
+ </li>
5
+ <li class="nav-about" role="menuitem">
6
+ <a href="/about/">About</a>
7
+ </li>
8
+ <li class="nav-getting-started" role="menuitem">
9
+ <a href="/category/getting-started/">Getting Started</a>
10
+ </li>
11
+ <li class="nav-try-ghost" role="menuitem">
12
+ <a target="_blank" href="https://jekyllrb.com/">Try Jekyll</a>
13
+ </li>
14
+ </ul>
@@ -0,0 +1,38 @@
1
+ <article class="read-next-card" style="background-image: url({{site.cover_image|relative_url}})">
2
+
3
+ <header class="read-next-card-header">
4
+
5
+ <small class="read-next-card-header-sitetitle">&mdash; {{site.title}} &mdash;</small>
6
+ <h3 class="read-next-card-header-title">
7
+ <a href="/category/{{page.category}}">{% assign category = page.category | split: "-" | join: " " %}{{ category | capitalize }}</a>
8
+ </h3>
9
+
10
+ </header>
11
+
12
+ <div class="read-next-divider">{% include icons/infinity.svg %}</div>
13
+
14
+ <div class="read-next-card-content">
15
+ <ul>
16
+ {% assign number_of_category_post = 0 %}
17
+ {% for category in site.categories.[page.category] %}
18
+ {% unless category.title == page.title %}
19
+ <li>
20
+ {% assign number_of_category_post=number_of_category_post | plus: 1 %}
21
+ <a href="{{category.url}}">{{category.title}}</a>
22
+ </li>
23
+ {% endunless %}
24
+ {% endfor %}
25
+ </ul>
26
+ </div>
27
+
28
+ <footer class="read-next-card-footer">
29
+ <a href="/category/{{page.category}}">
30
+ {% if number_of_category_post > 0 %}
31
+ See all {{number_of_category_post }} posts →
32
+ {% else %}
33
+ See all posts →
34
+ {% endif %}
35
+ </a>
36
+ </footer>
37
+
38
+ </article>