jekyll-theme-harveynick-lagrange 3.0.3

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.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +21 -0
  3. data/README.md +289 -0
  4. data/_includes/category-list-entry.html +6 -0
  5. data/_includes/custom-foot.html +1 -0
  6. data/_includes/custom-head.html +1 -0
  7. data/_includes/disqus.html +14 -0
  8. data/_includes/excerpt.html +1 -0
  9. data/_includes/footer.html +4 -0
  10. data/_includes/google-analytics.html +9 -0
  11. data/_includes/head.html +39 -0
  12. data/_includes/header.html +7 -0
  13. data/_includes/menu.html +10 -0
  14. data/_includes/post-list-entry.html +6 -0
  15. data/_includes/post-metadata.html +68 -0
  16. data/_includes/post-navigation.html +31 -0
  17. data/_includes/post-summary-metadata.html +1 -0
  18. data/_includes/post-summary.html +14 -0
  19. data/_includes/post-tags.html +45 -0
  20. data/_includes/read-time.html +21 -0
  21. data/_includes/related-posts.html +15 -0
  22. data/_includes/social-icons.html +3 -0
  23. data/_includes/social-sharing.html +8 -0
  24. data/_includes/stylesheet.html +1 -0
  25. data/_layouts/categories.html +43 -0
  26. data/_layouts/category.html +27 -0
  27. data/_layouts/default.html +21 -0
  28. data/_layouts/index.html +23 -0
  29. data/_layouts/page.html +13 -0
  30. data/_layouts/post.html +54 -0
  31. data/_layouts/tags.html +45 -0
  32. data/_sass/lagrange.scss +6 -0
  33. data/_sass/lagrange/_code.scss +64 -0
  34. data/_sass/lagrange/_main.scss +384 -0
  35. data/_sass/lagrange/_social.scss +150 -0
  36. data/_sass/lagrange/_syntax.scss +65 -0
  37. data/_sass/lagrange/_tags.scss +51 -0
  38. data/_sass/lagrange/_variables.scss +74 -0
  39. data/assets/css/main.scss +6 -0
  40. data/assets/img/cards.jpg +0 -0
  41. data/assets/img/cutting.jpg +0 -0
  42. data/assets/img/forest.jpg +0 -0
  43. data/assets/img/mountains.jpg +0 -0
  44. data/assets/img/spools.jpg +0 -0
  45. metadata +130 -0
@@ -0,0 +1,31 @@
1
+ {% comment %}
2
+ Variables used are generated in post-metadata.html, included via
3
+ _layous/post.html.
4
+ {% endcomment %}
5
+
6
+ {% if previous_post or next_post %}
7
+ <nav class="category-navigation">
8
+ {% if previous_post %}
9
+ {% assign title = site.data.settings.post_navigation.previous_title %}
10
+ {% assign title = title | replace: "{title}", previous_post.title %}
11
+ {% assign title = title | replace: "{category}", navigation_category %}
12
+
13
+ <div class="category-navigation-prev">
14
+ <a href="{{ previous_post.url }}">
15
+ {{ title }}
16
+ </a>
17
+ </div>
18
+ {% endif %}
19
+ {% if next_post %}
20
+ {% assign title = site.data.settings.post_navigation.next_title %}
21
+ {% assign title = title | replace: "{title}", next_post.title %}
22
+ {% assign title = title | replace: "{category}", navigation_category %}
23
+
24
+ <div class="category-navigation-next">
25
+ <a href="{{ next_post.url }}">
26
+ {{ title }}
27
+ </a>
28
+ </div>
29
+ {% endif %}
30
+ </nav>
31
+ {% endif %}
@@ -0,0 +1 @@
1
+ <span class="post-date"><i class="fa fa-calendar" aria-hidden="true"></i> {{ include.post.date | date_to_string }} / <i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html post=include.post %} {% include post-tags.html short=true page=include.post %}</span>
@@ -0,0 +1,14 @@
1
+ <article class="posts">
2
+ <h1>
3
+ <a href="{{ include.post.url }}">{{ include.post.title }}</a>
4
+ </h1>
5
+ {% if include.post.image %}
6
+ <div class="thumbnail-container">
7
+ <a href="{{ include.post.url }}"><img src="{{ include.post.image }}"></a>
8
+ </div>
9
+ {% endif %}
10
+ <p>
11
+ {% include excerpt.html post=post %} <a href="{{ include.post.url }}">Read more</a>
12
+ {% include post-summary-metadata.html post=post %}
13
+ </p>
14
+ </article>
@@ -0,0 +1,45 @@
1
+ {% assign tags_page = '' %}
2
+
3
+ {% for static_page in site.pages %}
4
+ {% if static_page.layout == 'tags' %}
5
+ {% assign tags_page = static_page.url %}
6
+ {% break %}
7
+ {% endif %}
8
+ {% endfor %}
9
+
10
+ {% assign the_page = include.page | default: page %}
11
+
12
+ {% if the_page.tags.size > 0 and tags_page.size > 0 %}
13
+
14
+ {% assign full_tags = '' | split: ',' %}
15
+ {% for tag in the_page.tags %}
16
+ {% capture full_tag %}<a href="{{ tags_page }}#{{ tag | slugify }}">{{ tag }}</a>{% endcapture %}
17
+ {% assign full_tags = full_tags | push: full_tag %}
18
+ {% endfor %}
19
+
20
+ {% if include.short %}
21
+
22
+ {% if full_tags.size > 1 %}
23
+ / <i class="fa fa-tags" aria-hidden="true"></i>
24
+ {% else %}
25
+ / <i class="fa fa-tag" aria-hidden="true"></i>
26
+ {% endif %}
27
+
28
+ {% if full_tags.size > 2 %}
29
+ {% capture suffix %}{{ full_tags.size | minus: 1 }} more</a>{% endcapture %}
30
+ {% assign updated_full_tags = '' | split: ',' %}
31
+ {% for full_tag in full_tags limit: 1 %}
32
+ {% assign updated_full_tags = updated_full_tags | push: full_tag %}
33
+ {% endfor %}
34
+ {% assign full_tags = updated_full_tags %}
35
+ {% assign full_tags = full_tags | push: suffix %}
36
+ {% endif %}
37
+
38
+ {{ full_tags | join: ", " }}
39
+
40
+ {% else %}
41
+ {{ site.data.settings.post_tags }}
42
+ {{ full_tags | array_to_sentence_string: "and" }}.
43
+ {% endif %}
44
+
45
+ {% endif %}
@@ -0,0 +1,21 @@
1
+ {% if include.post.layout != post %}
2
+ {% assign words = include.post.content | strip_html | number_of_words %}
3
+ {% if words < 180 %}
4
+ less than 1 minute read
5
+ {% elsif words < 360 %}
6
+ 1 minute read
7
+ {% else %}
8
+ {{ words | divided_by:180 }} minute read
9
+ {% endif %}
10
+ {% endif %}
11
+
12
+ {% if include.post.layout == post %}
13
+ {% assign words = content | number_of_words %}
14
+ {% if words < 180 %}
15
+ less than 1 minute read
16
+ {% elsif words < 360 %}
17
+ 1 minute read
18
+ {% else %}
19
+ {{ words | divided_by:180 }} minute read
20
+ {% endif %}
21
+ {% endif %}
@@ -0,0 +1,15 @@
1
+ {% comment %}
2
+ Variables used are generated in post-metadata.html, included via
3
+ _layous/post.html.
4
+ {% endcomment %}
5
+
6
+ {% if related_posts.size > 0 %}
7
+ <div class="related">
8
+ <h2 class="posts-list-header">{{ site.data.settings.related_posts.heading }}</h2>
9
+ <div class="posts-list">
10
+ {% for related_post in related_posts %}
11
+ {% include post-list-entry.html post=related_post %}
12
+ {% endfor %}
13
+ </div>
14
+ </div>
15
+ {% endif %}
@@ -0,0 +1,3 @@
1
+ {% for item in site.data.settings.social %}
2
+ <a href="{{ item.link }}" target="_blank"><i class="fa fa-{{ item.icon }}" aria-hidden="true"></i></a>
3
+ {% endfor %}
@@ -0,0 +1,8 @@
1
+ <div class="social-sharing">
2
+ <div class="post-date">{{ site.data.settings.sharing_button_prompt }}</div>
3
+ <div class="sharing-icons">
4
+ <a href="https://twitter.com/intent/tweet?text={{ page.title }}&amp;url={{ site.url }}{{ page.url }}" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a>
5
+ <a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}&amp;title={{ page.title }}" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a>
6
+ <a href="https://plus.google.com/share?url={{ site.url }}{{ page.url }}" target="_blank"><i class="fa fa-google-plus" aria-hidden="true"></i></a>
7
+ </div>
8
+ </div>
@@ -0,0 +1 @@
1
+ <link rel="stylesheet" href="/assets/css/main.css">
@@ -0,0 +1,43 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ <hr/>
8
+
9
+ {% if page.categories %}
10
+ {% assign categories = page.categories %}
11
+ {% else %}
12
+ {% capture site_cats %}{% for cat in site.categories %}{{ cat | first | downcase }}|{{ cat | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
13
+ {% assign words = site_cats | split:',' | sort %}
14
+ {% capture sorted %}{% for pair in words %}{{pair | split:'|' | last }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
15
+ {% assign categories = sorted | split:',' %}
16
+ {% endif %}
17
+
18
+ <div class="posts-list">
19
+ {% for category in categories %}
20
+ {% assign category_page = nil %}
21
+ {% for page in site.pages %}
22
+ {% unless page.layout == 'category' %}
23
+ {% continue %}
24
+ {% endunless %}
25
+ {% if page.category %}
26
+ {% if page.category == category %}
27
+ {% assign category_page = page %}
28
+ {% break %}
29
+ {% else %}
30
+ {% continue %}
31
+ {% endif %}
32
+ {% endif %}
33
+ {% if page.title == category %}
34
+ {% assign category_page = page %}
35
+ {% break %}
36
+ {% endif %}
37
+ {% endfor %}
38
+ {% unless category_page %}
39
+ {% continue %}
40
+ {% endunless %}
41
+ {% include category-list-entry.html category_page=category_page category=category %}
42
+ {% endfor %}
43
+ </div>
@@ -0,0 +1,27 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {% unless page.content == '' %}
6
+ {{ content }}
7
+ <h2>Posts:</h2>
8
+ {% endunless %}
9
+
10
+ <div class="posts-list">
11
+ {% assign category = page.category | default: page.title %}
12
+ {% for post in site.categories[category] %}
13
+ {% if page.tags %}
14
+ {% assign matched = false %}
15
+ {% for tag in post.tags %}
16
+ {% if page.tags contains tag %}
17
+ {% assign matched = true %}
18
+ {% break %}
19
+ {% endif %}
20
+ {% endfor %}
21
+ {% unless matched %}
22
+ {% continue %}
23
+ {% endunless %}
24
+ {% endif %}
25
+ {% include post-list-entry.html post=post %}
26
+ {% endfor %}
27
+ </div>
@@ -0,0 +1,21 @@
1
+ <!doctype html>
2
+ <html>
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ <div class="container">
9
+ {% include header.html %}
10
+
11
+ <article class="post-container">
12
+ {{ content }}
13
+ </article>
14
+
15
+ {% include footer.html %}
16
+
17
+ </div>
18
+
19
+ {% include custom-foot.html %}
20
+ </body>
21
+ </html>
@@ -0,0 +1,23 @@
1
+ ---
2
+ layout: default
3
+ title: Home
4
+ ---
5
+
6
+ {% for post in paginator.posts %}
7
+ {% include post-summary.html post=post %}
8
+ {% endfor %}
9
+
10
+ <!-- Pagination links -->
11
+ <div class="pagination">
12
+ {% if paginator.next_page %}
13
+ <a class="pagination-button pagination-active" href="{{ paginator.next_page_path }}" class="next">{{ site.data.settings.pagination.previous_page }}</a>
14
+ {% else %}
15
+ <span class="pagination-button">{{ site.data.settings.pagination.previous_page }}</span>
16
+ {% endif %}
17
+
18
+ {% if paginator.previous_page %}
19
+ <a class="pagination-button pagination-active" href="{{ paginator.previous_page_path }}">{{ site.data.settings.pagination.next_page }}</a>
20
+ {% else %}
21
+ <span class="pagination-button">{{ site.data.settings.pagination.next_page }}</span>
22
+ {% endif %}
23
+ </div>
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h1>
6
+ {{ page.title }}
7
+ </h1>
8
+
9
+ {% if page.image %}
10
+ <img src="{{ page.image }}" />
11
+ {% endif %}
12
+
13
+ {{ content }}
@@ -0,0 +1,54 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h1>
6
+ {{ page.title }}
7
+ </h1>
8
+
9
+ {% if page.image %}
10
+ <img src="{{ page.image }}">
11
+ {% endif %}
12
+
13
+ {% include post-metadata.html %}
14
+
15
+ {% if site.data.settings.post_navigation.postion contains 'top' %}
16
+ {% include post-navigation.html %}
17
+ {% endif %}
18
+
19
+ {{ content }}
20
+
21
+ <footer>
22
+ <span class="post-date">
23
+ {{ site.data.settings.post_date_prefix }}
24
+ {% assign d = page.date | date: "%-d" %}
25
+ {{ page.date | date: "%B" }}
26
+ {% case d %}
27
+ {% when '1' or '21' or '31' %}{{ d }}st,
28
+ {% when '2' or '22' %}{{ d }}nd,
29
+ {% when '3' or '23' %}{{ d }}rd,
30
+ {% else %}{{ d }}th,{% endcase %}
31
+ {{ page.date | date: "%Y" }}
32
+ by
33
+ {% if page.author %}
34
+ {{ page.author }}.
35
+ {% else %}
36
+ {{ site.author }}.
37
+ {% endif %}
38
+
39
+ {% include post-tags.html %}
40
+
41
+ </span>
42
+
43
+ {% include social-sharing.html %}
44
+
45
+ {% if site.data.settings.post_navigation.postion contains 'bottom' %}
46
+ {% include post-navigation.html %}
47
+ {% endif %}
48
+
49
+ {% include related-posts.html %}
50
+
51
+ {% if site.data.settings.disqus.comments %}
52
+ {% include disqus.html %}
53
+ {% endif %}
54
+ </footer>
@@ -0,0 +1,45 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ <!-- See https://blog.lanyonm.org/articles/2013/11/21/alphabetize-jekyll-page-tags-pure-liquid.html -->
8
+ <!-- With added pipe to handle lack of sort_natural -->
9
+ {% capture site_tags %}{% for tag in site.tags %}{{ tag | first | downcase }}|{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
10
+ <!-- site_tags: {{ site_tags }} -->
11
+ {% assign tag_words = site_tags | split:',' | sort %}
12
+ <!-- tag_words: {{ tag_words }} -->
13
+
14
+ <div id="tags-page">
15
+ <div class="tags-list">
16
+ {% for tag_pair in tag_words %}
17
+ {% assign tag = tag_pair | split:'|' | last %}
18
+ {% if page.tags %}
19
+ {% unless page.tags contains tag %}
20
+ {% continue %}
21
+ {% endunless %}
22
+ {% endif %}
23
+ <a href="#{{ tag | slugify }}" class="tag-link">
24
+ <span class="tag-name">{{ tag }}</span>
25
+ <span class="tag-count">{{ site.tags[tag] | size }}</span>
26
+ </a>
27
+ {% endfor %}
28
+ </div>
29
+
30
+ <hr/>
31
+
32
+ <div class="posts-by-tag">
33
+ {% for tag_pair in tag_words %}
34
+ {% assign tag = tag_pair | split:'|' | last %}
35
+ <div id="{{ tag | slugify }}" class="posts-for-tag">
36
+ <h1>{{ tag }}</h1>
37
+ <div class="posts-list">
38
+ {% for post in site.tags[tag] %}
39
+ {% include post-list-entry.html post=post %}
40
+ {% endfor %}
41
+ </div>
42
+ </div>
43
+ {% endfor %}
44
+ </div>
45
+ </div>
@@ -0,0 +1,6 @@
1
+ @import "lagrange/variables";
2
+ @import "lagrange/code";
3
+ @import "lagrange/main";
4
+ @import "lagrange/social";
5
+ @import "lagrange/syntax";
6
+ @import "lagrange/tags";
@@ -0,0 +1,64 @@
1
+ /*
2
+ Code
3
+ */
4
+
5
+ code,
6
+ pre {
7
+ font-family: $code-font-family;
8
+ }
9
+ code {
10
+ padding: .25em .5em;
11
+ font-size: .8rem;
12
+ background-color: $code-background-color;
13
+ border-radius: 3px;
14
+ }
15
+ pre {
16
+ display: block;
17
+ margin-top: 0;
18
+ margin-bottom: 1rem;
19
+ padding: 1rem;
20
+ font-size: .8rem;
21
+ line-height: 1.4;
22
+ white-space: pre;
23
+ white-space: pre-wrap;
24
+ word-break: break-all;
25
+ word-wrap: break-word;
26
+ background-color: $code-background-color;
27
+ }
28
+ pre code {
29
+ padding: 0;
30
+ font-size: 100%;
31
+ color: inherit;
32
+ background-color: transparent;
33
+ }
34
+
35
+ /* Pygments via Jekyll */
36
+ .highlight {
37
+ margin-bottom: 1rem;
38
+ border-radius: 4px;
39
+ }
40
+ .highlight pre {
41
+ margin-bottom: 0;
42
+ }
43
+
44
+ /* Gist via GitHub Pages */
45
+ .gist .gist-file {
46
+ font-family: $code-font-family !important;
47
+ }
48
+ .gist .markdown-body {
49
+ padding: 15px;
50
+ }
51
+ .gist pre {
52
+ padding: 0;
53
+ background-color: transparent;
54
+ }
55
+ .gist .gist-file .gist-data {
56
+ font-size: .8rem !important;
57
+ line-height: 1.4;
58
+ }
59
+ .gist code {
60
+ padding: 0;
61
+ color: inherit;
62
+ background-color: transparent;
63
+ border-radius: 0;
64
+ }