oscailte 3.0.1 → 3.0.2

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 (57) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.txt +21 -21
  3. data/README.md +170 -175
  4. data/_includes/comments.html +20 -20
  5. data/_includes/footer.html +10 -10
  6. data/_includes/google-analytics.html +10 -10
  7. data/_includes/head.html +16 -12
  8. data/_includes/header.html +17 -17
  9. data/_includes/hero.html +16 -16
  10. data/_includes/icon.html +4 -2
  11. data/_includes/navigation.html +17 -17
  12. data/_includes/social.html +16 -16
  13. data/_includes/strings.html +8 -8
  14. data/_layouts/core.html +27 -27
  15. data/_layouts/default.html +6 -6
  16. data/_layouts/home.html +43 -43
  17. data/_layouts/page.html +4 -4
  18. data/_layouts/post.html +37 -37
  19. data/_sass/_oscailte.scss +146 -146
  20. data/_sass/oscailte/components/_button.scss +10 -10
  21. data/_sass/oscailte/components/_card.scss +18 -18
  22. data/_sass/oscailte/components/_footer.scss +21 -21
  23. data/_sass/oscailte/components/_header.scss +50 -50
  24. data/_sass/oscailte/components/_hero.scss +84 -84
  25. data/_sass/oscailte/components/_icon.scss +6 -6
  26. data/_sass/oscailte/components/_navigation.scss +31 -31
  27. data/_sass/oscailte/components/_recentposts.scss +58 -58
  28. data/_sass/oscailte/components/_skipnav.scss +10 -10
  29. data/_sass/oscailte/components/_social.scss +54 -54
  30. data/_sass/oscailte/components/_syntax.scss +72 -72
  31. data/_sass/oscailte/elements/_blockquote.scss +5 -5
  32. data/_sass/oscailte/elements/_body.scss +6 -6
  33. data/_sass/oscailte/elements/_code.scss +18 -18
  34. data/_sass/oscailte/elements/_headings.scss +14 -14
  35. data/_sass/oscailte/elements/_hr.scss +3 -3
  36. data/_sass/oscailte/elements/_html.scss +9 -9
  37. data/_sass/oscailte/elements/_img.scss +2 -2
  38. data/_sass/oscailte/elements/_links.scss +3 -3
  39. data/_sass/oscailte/generic/_font-face.scss +62 -62
  40. data/_sass/oscailte/generic/_lobotomised-owl.scss +2 -2
  41. data/_sass/oscailte/generic/_modern-normalize.scss +273 -273
  42. data/_sass/oscailte/layout/_container.scss +4 -4
  43. data/_sass/oscailte/layout/_post.scss +13 -13
  44. data/_sass/oscailte/layout/_stickyfooter.scss +10 -10
  45. data/_sass/oscailte/objects/_circuited.scss +5 -5
  46. data/_sass/oscailte/objects/_lists.scss +10 -10
  47. data/_sass/oscailte/objects/_muted.scss +2 -2
  48. data/_sass/oscailte/objects/_no-owl.scss +3 -3
  49. data/_sass/oscailte/tools/_functions.scss +26 -26
  50. data/_sass/oscailte/tools/_mixins.scss +28 -28
  51. data/assets/css/main.scss +4 -4
  52. data/assets/oscailte/fonts/lato-v16-latin-regular.svg +435 -435
  53. data/assets/oscailte/fonts/merriweather-v21-latin-700.svg +375 -375
  54. data/assets/oscailte/fonts/merriweather-v21-latin-italic.svg +390 -390
  55. data/assets/oscailte/fonts/merriweather-v21-latin-regular.svg +374 -374
  56. data/assets/oscailte/img/icons.svg +62 -62
  57. metadata +24 -19
@@ -1,11 +1,11 @@
1
- {%- assign analyics_id = site.oscailte.google_analytics -%}
2
- {%- if analyics_id and jekyll.environment == 'production' -%}
3
- <script async src="https://www.googletagmanager.com/gtag/js?id={{ analyics_id }}"></script>
4
- <script>
5
- window['ga-disable-{{ analyics_id }}'] = window.OSCAILTE_DNT;
6
- window.dataLayer = window.dataLayer || [];
7
- function gtag(){dataLayer.push(arguments);}
8
- gtag('js', new Date());
9
- gtag('config', '{{ analyics_id }}');
10
- </script>
1
+ {%- assign analyics_id = site.oscailte.google_analytics -%}
2
+ {%- if analyics_id and jekyll.environment == 'production' -%}
3
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ analyics_id }}"></script>
4
+ <script>
5
+ window['ga-disable-{{ analyics_id }}'] = window.OSCAILTE_DNT;
6
+ window.dataLayer = window.dataLayer || [];
7
+ function gtag(){dataLayer.push(arguments);}
8
+ gtag('js', new Date());
9
+ gtag('config', '{{ analyics_id }}');
10
+ </script>
11
11
  {%- endif -%}
data/_includes/head.html CHANGED
@@ -1,12 +1,16 @@
1
- <head>
2
- <meta charset="UTF-8">
3
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
5
- {% seo %}
6
- {% feed_meta %}
7
- <link rel="icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}">
8
- <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
9
- <script>
10
- window.OSCAILTE_DNT = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
11
- </script>
12
- </head>
1
+ <head>
2
+ <meta charset="UTF-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
5
+ {% seo %}
6
+ {% feed_meta %}
7
+ <link rel="icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}">
8
+ <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
9
+ <script>
10
+ window.OSCAILTE_DNT =
11
+ window.doNotTrack === "1" ||
12
+ navigator.doNotTrack === "1" ||
13
+ navigator.doNotTrack === "yes" ||
14
+ navigator.msDoNotTrack === "1";
15
+ </script>
16
+ </head>
@@ -1,17 +1,17 @@
1
- <header class="Header">
2
- <div class="Container">
3
- {% if site.title %}
4
- <h1 class="Header__title">
5
- <a href="{{ '/' | relative_url }}">
6
- {{ site.title }}
7
- {% if site.subtitle %}
8
- <br>
9
- <small class="Header__subtitle">{{ site.subtitle }}</small>
10
- {% endif %}
11
- </a>
12
- </h1>
13
- {% endif %}
14
-
15
- {% include navigation.html %}
16
- </div>
17
- </header>
1
+ <header class="Header">
2
+ <div class="Container">
3
+ {% if site.title %}
4
+ <h1 class="Header__title">
5
+ <a href="{{ '/' | relative_url }}">
6
+ {{ site.title }}
7
+ {% if site.subtitle %}
8
+ <br>
9
+ <small class="Header__subtitle">{{ site.subtitle }}</small>
10
+ {% endif %}
11
+ </a>
12
+ </h1>
13
+ {% endif %}
14
+
15
+ {% include navigation.html %}
16
+ </div>
17
+ </header>
data/_includes/hero.html CHANGED
@@ -1,17 +1,17 @@
1
- <section class="Hero o-circuited">
2
- <div class="Hero__content Container">
3
- {%- unless page.layout == 'post' or site.oscailte.social.github == nil -%}
4
- {% avatar {{site.oscailte.social.github}} size=350 %}
5
- {%- endunless -%}
6
-
7
- <h1 class="Hero__title">
8
- {{ include.title }}
9
- </h1>
10
-
11
- {% if include.meta %}
12
- <div class="Hero__meta">
13
- {{ include.meta }}
14
- </div>
15
- {% endif %}
16
- </div>
1
+ <section class="Hero o-circuited">
2
+ <div class="Hero__content Container">
3
+ {%- unless page.layout == 'post' or site.oscailte.social.github == nil -%}
4
+ {% avatar {{site.oscailte.social.github}} size=350 %}
5
+ {%- endunless -%}
6
+
7
+ <h1 class="Hero__title">
8
+ {{ include.title }}
9
+ </h1>
10
+
11
+ {% if include.meta %}
12
+ <div class="Hero__meta">
13
+ {{ include.meta }}
14
+ </div>
15
+ {% endif %}
16
+ </div>
17
17
  </section>
data/_includes/icon.html CHANGED
@@ -1,2 +1,4 @@
1
- {%- capture path -%}/assets/oscailte/img/icons.svg#{{ include.icon }}{%- endcapture -%}
2
- <svg class="Icon Icon--{{ include.icon }}"><use xlink:href="{{ path | relative_url }}"></use></svg>
1
+ {%- capture path -%}/assets/oscailte/img/icons.svg#{{ include.icon }}{%- endcapture -%}
2
+ <svg class="Icon Icon--{{ include.icon }}">
3
+ <use xlink:href="{{ path | relative_url }}"></use>
4
+ </svg>
@@ -1,18 +1,18 @@
1
- {%- assign default_paths = site.pages | map: "path" -%}
2
- {%- assign page_paths = site.header_pages | default: default_paths -%}
3
- {%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
4
-
5
- {%- if titles_size > 0 -%}
6
- <nav class="Navigation">
7
- <ul class="Navigation__items o-list-bare">
8
- {%- for path in page_paths -%}
9
- {%- assign nav_page = site.pages | where: "path", path | first -%}
10
- {%- if nav_page.title -%}
11
- <li class="Navigation__item{% if page.url == nav_page.url %} is-active{%endif%}">
12
- <a class="Navigation__link" href="{{ nav_page.url | relative_url }}">{{nav_page.title | escape}}</a>
13
- </li>
14
- {%- endif -%}
15
- {%- endfor -%}
16
- </ul>
17
- </nav>
1
+ {%- assign default_paths = site.pages | map: "path" -%}
2
+ {%- assign page_paths = site.header_pages | default: default_paths -%}
3
+ {%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
4
+
5
+ {%- if titles_size > 0 -%}
6
+ <nav class="Navigation">
7
+ <ul class="Navigation__items o-list-bare">
8
+ {%- for path in page_paths -%}
9
+ {%- assign nav_page = site.pages | where: "path", path | first -%}
10
+ {%- if nav_page.title -%}
11
+ <li class="Navigation__item{% if page.url == nav_page.url %} is-active{%endif%}">
12
+ <a class="Navigation__link" href="{{ nav_page.url | relative_url }}">{{nav_page.title | escape}}</a>
13
+ </li>
14
+ {%- endif -%}
15
+ {%- endfor -%}
16
+ </ul>
17
+ </nav>
18
18
  {% endif %}
@@ -1,17 +1,17 @@
1
- {%- assign social = site.oscailte.social -%}
2
-
3
- <div class="Social">
4
- <ul class="Social__list o-list-bare">
5
- {%- if social.dribbble -%}<li class="Social__item Social__item--dribbble o-no-owl"><a class="Social__link" href="https://dribbble.com/{{ social.dribbble | cgi_escape | escape }}" title="{{ social.dribbble | escape }}"> {%- include icon.html icon="dribbble" -%} </a></li>{%- endif -%}
6
- {%- if social.facebook -%}<li class="Social__item Social__item--facebook o-no-owl"><a class="Social__link" href="https://www.facebook.com/{{ social.facebook | cgi_escape | escape }}" title="{{ social.facebook | escape }}"> {%- include icon.html icon="facebook" -%} </a></li>{%- endif -%}
7
- {%- if social.flickr -%}<li class="Social__item Social__item--flickr o-no-owl"><a class="Social__link" href="https://www.flickr.com/photos/{{ social.flickr | cgi_escape | escape }}" title="{{ social.flickr | escape }}"> {%- include icon.html icon="flickr" -%} </a></li>{%- endif -%}
8
- {%- if social.github -%}<li class="Social__item Social__item--github o-no-owl"><a class="Social__link" href="https://github.com/{{ social.github | cgi_escape | escape }}" title="{{ social.github | escape }}"> {%- include icon.html icon="github" -%} </a></li>{%- endif -%}
9
- {%- if social.instagram -%}<li class="Social__item Social__item--instagram o-no-owl"><a class="Social__link" href="https://www.instagram.com/{{ social.instagram | cgi_escape | escape }}" title="{{ social.instagram | escape }}"> {%- include icon.html icon="instagram" -%} </a></li>{%- endif -%}
10
- {%- if social.keybase -%}<li class="Social__item Social__item--keybase o-no-owl"><a class="Social__link" href="https://keybase.io/{{ social.keybase | cgi_escape | escape }}" title="{{ social.keybase | escape }}"> {%- include icon.html icon="keybase" -%} </a></li>{%- endif -%}
11
- {%- if social.linkedin -%}<li class="Social__item Social__item--linkedin o-no-owl"><a class="Social__link" href="https://www.linkedin.com/in/{{ social.linkedin | cgi_escape | escape }}" title="{{ social.linkedin | escape }}"> {%- include icon.html icon="linkedin" -%} </a></li>{%- endif -%}
12
- {%- if social.pinterest -%}<li class="Social__item Social__item--pinterest o-no-owl"><a class="Social__link" href="https://www.pinterest.com/{{ social.pinterest | cgi_escape | escape }}" title="{{ social.pinterest | escape }}"> {%- include icon.html icon="pinterest" -%} </a></li>{%- endif -%}
13
- {%- if social.telegram -%}<li class="Social__item Social__item--telegram o-no-owl"><a class="Social__link" href="https://t.me/{{ social.telegram | cgi_escape | escape }}" title="{{ social.telegram | escape }}"> {%- include icon.html icon="telegram" -%} </a></li>{%- endif -%}
14
- {%- if social.twitter -%}<li class="Social__item Social__item--twitter o-no-owl"><a class="Social__link" href="https://twitter.com/{{ social.twitter | cgi_escape | escape }}" title="{{ social.twitter | escape }}"> {%- include icon.html icon="twitter" -%} </a></li>{%- endif -%}
15
- {%- if social.rss -%}<li class="Social__item Social__item--rss o-no-owl"><a class="Social__link" href="{{ 'feed.xml' | relative_url }}" title="{{ social.rss | escape }}"> {%- include icon.html icon="rss" -%} </a></li>{%- endif -%}
16
- </ul>
1
+ {%- assign social = site.oscailte.social -%}
2
+
3
+ <div class="Social">
4
+ <ul class="Social__list o-list-bare">
5
+ {%- if social.dribbble -%}<li class="Social__item Social__item--dribbble o-no-owl"><a class="Social__link" href="https://dribbble.com/{{ social.dribbble | cgi_escape | escape }}" title="{{ social.dribbble | escape }}"> {%- include icon.html icon="dribbble" -%} </a></li>{%- endif -%}
6
+ {%- if social.facebook -%}<li class="Social__item Social__item--facebook o-no-owl"><a class="Social__link" href="https://www.facebook.com/{{ social.facebook | cgi_escape | escape }}" title="{{ social.facebook | escape }}"> {%- include icon.html icon="facebook" -%} </a></li>{%- endif -%}
7
+ {%- if social.flickr -%}<li class="Social__item Social__item--flickr o-no-owl"><a class="Social__link" href="https://www.flickr.com/photos/{{ social.flickr | cgi_escape | escape }}" title="{{ social.flickr | escape }}"> {%- include icon.html icon="flickr" -%} </a></li>{%- endif -%}
8
+ {%- if social.github -%}<li class="Social__item Social__item--github o-no-owl"><a class="Social__link" href="https://github.com/{{ social.github | cgi_escape | escape }}" title="{{ social.github | escape }}"> {%- include icon.html icon="github" -%} </a></li>{%- endif -%}
9
+ {%- if social.instagram -%}<li class="Social__item Social__item--instagram o-no-owl"><a class="Social__link" href="https://www.instagram.com/{{ social.instagram | cgi_escape | escape }}" title="{{ social.instagram | escape }}"> {%- include icon.html icon="instagram" -%} </a></li>{%- endif -%}
10
+ {%- if social.keybase -%}<li class="Social__item Social__item--keybase o-no-owl"><a class="Social__link" href="https://keybase.io/{{ social.keybase | cgi_escape | escape }}" title="{{ social.keybase | escape }}"> {%- include icon.html icon="keybase" -%} </a></li>{%- endif -%}
11
+ {%- if social.linkedin -%}<li class="Social__item Social__item--linkedin o-no-owl"><a class="Social__link" href="https://www.linkedin.com/in/{{ social.linkedin | cgi_escape | escape }}" title="{{ social.linkedin | escape }}"> {%- include icon.html icon="linkedin" -%} </a></li>{%- endif -%}
12
+ {%- if social.pinterest -%}<li class="Social__item Social__item--pinterest o-no-owl"><a class="Social__link" href="https://www.pinterest.com/{{ social.pinterest | cgi_escape | escape }}" title="{{ social.pinterest | escape }}"> {%- include icon.html icon="pinterest" -%} </a></li>{%- endif -%}
13
+ {%- if social.telegram -%}<li class="Social__item Social__item--telegram o-no-owl"><a class="Social__link" href="https://t.me/{{ social.telegram | cgi_escape | escape }}" title="{{ social.telegram | escape }}"> {%- include icon.html icon="telegram" -%} </a></li>{%- endif -%}
14
+ {%- if social.twitter -%}<li class="Social__item Social__item--twitter o-no-owl"><a class="Social__link" href="https://twitter.com/{{ social.twitter | cgi_escape | escape }}" title="{{ social.twitter | escape }}"> {%- include icon.html icon="twitter" -%} </a></li>{%- endif -%}
15
+ {%- if social.rss -%}<li class="Social__item Social__item--rss o-no-owl"><a class="Social__link" href="{{ 'feed.xml' | relative_url }}" title="{{ social.rss | escape }}"> {%- include icon.html icon="rss" -%} </a></li>{%- endif -%}
16
+ </ul>
17
17
  </div>
@@ -1,9 +1,9 @@
1
- {%- assign strings = site.oscailte.strings -%}
2
-
3
- {%- assign skip_to_main_content = strings.skip_to_main_content | default: "Skip to main content" -%}
4
- {%- assign x_minute_read = strings.x_minute_read | default: "$x$ minute read" -%}
5
- {%- assign hero_title = strings.hero_title | default: "Welcome to Oscailte!<br> A powerful, clean, and responsive Jekyll theme." -%}
6
- {%- assign recent_posts = strings.recent_posts | default: "Recent posts" -%}
7
- {%- assign view_all = strings.view_all | default: "View all" -%}
8
- {%- assign read_full = strings.read_full | default: "Read full" -%}
1
+ {%- assign strings = site.oscailte.strings -%}
2
+
3
+ {%- assign skip_to_main_content = strings.skip_to_main_content | default: "Skip to main content" -%}
4
+ {%- assign x_minute_read = strings.x_minute_read | default: "$x$ minute read" -%}
5
+ {%- assign hero_title = strings.hero_title | default: "Welcome to Oscailte!<br> A powerful, clean, and responsive Jekyll theme." -%}
6
+ {%- assign recent_posts = strings.recent_posts | default: "Recent posts" -%}
7
+ {%- assign view_all = strings.view_all | default: "View all" -%}
8
+ {%- assign read_full = strings.read_full | default: "Read full" -%}
9
9
  {%- assign disqus_enable_javascript = strings.disqus_enable_javascript | default: 'Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus</a>.' -%}
data/_layouts/core.html CHANGED
@@ -1,28 +1,28 @@
1
- <!DOCTYPE html>
2
- <html lang="{{ page.lang | default: site.lang | default: 'en' }}">
3
- {%- include strings.html -%}
4
-
5
- {%- include head.html -%}
6
-
7
- {%- capture body_modifier -%}
8
- {%- if page.body_modifier -%}
9
- {{ page.body_modifier }}
10
- {%- else -%}
11
- {{ page.layout }}
12
- {%- endif -%}
13
- {%- endcapture -%}
14
-
15
- <body class="Site {% if body_modifier != '' %}Site--{{ body_modifier }}{% endif %}">
16
- {%- include header.html -%}
17
-
18
- <a href="#main-content" class="SkipNav" tabindex="1">{{ skip_to_main_content }}</a>
19
-
20
- <main class="Site__main o-no-owl" id="main-content">
21
- {{ content }}
22
- </main>
23
-
24
- {%- include footer.html -%}
25
-
26
- {%- include google-analytics.html -%}
27
- </body>
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: 'en' }}">
3
+ {%- include strings.html -%}
4
+
5
+ {%- include head.html -%}
6
+
7
+ {%- capture body_modifier -%}
8
+ {%- if page.body_modifier -%}
9
+ {{ page.body_modifier }}
10
+ {%- else -%}
11
+ {{ page.layout }}
12
+ {%- endif -%}
13
+ {%- endcapture -%}
14
+
15
+ <body class="Site {% if body_modifier != '' %}Site--{{ body_modifier }}{% endif %}">
16
+ {%- include header.html -%}
17
+
18
+ <a href="#main-content" class="SkipNav" tabindex="1">{{ skip_to_main_content }}</a>
19
+
20
+ <main class="Site__main o-no-owl" id="main-content">
21
+ {{ content }}
22
+ </main>
23
+
24
+ {%- include footer.html -%}
25
+
26
+ {%- include google-analytics.html -%}
27
+ </body>
28
28
  </html>
@@ -1,7 +1,7 @@
1
- ---
2
- layout: core
3
- ---
4
-
5
- <section class="Container">
6
- {{ content }}
1
+ ---
2
+ layout: core
3
+ ---
4
+
5
+ <section class="Container">
6
+ {{ content }}
7
7
  </section>
data/_layouts/home.html CHANGED
@@ -1,44 +1,44 @@
1
- ---
2
- layout: core
3
- ---
4
- {%- include strings.html -%}
5
-
6
- {%- include hero.html title=hero_title -%}
7
-
8
- <section class="Container">
9
- {{ content }}
10
-
11
- {%- if site.posts.size > 0 -%}
12
- <aside class="RecentPosts">
13
- <h2 class="RecentPosts__title">{{ recent_posts }}</h2>
14
- {%- if site.oscailte.posts_url -%}
15
- <small>
16
- <a class="RecentPosts__all" href="{{ site.oscailte.posts_url | relative_url }}">
17
- {{ view_all }}
18
- </a>
19
- </small>
20
- {%- endif -%}
21
- <ul class="RecentPosts__list o-list-bare">
22
- {%- for post in site.posts limit: 6 -%}
23
- <li class="RecentPosts__item Card o-no-owl">
24
- {%- assign date_format = site.oscailte.date_format | default: "%b %-d, %Y" -%}
25
- <h3 class="Card__title">
26
- <a class="RecentPosts__link" href="{{ post.url | relative_url }}">
27
- {{ post.title | escape }}
28
- </a>
29
- </h3>
30
- <small class="Card__meta o-no-owl o-muted">
31
- {%- include icon.html icon="calendar" -%} {{ post.date | date: date_format }}
32
- </small>
33
- {%- if site.show_excerpts -%}
34
- <div class="RecentPosts__excerpt o-no-owl">
35
- {{ post.excerpt }}
36
- </div>
37
- {%- endif -%}
38
- <a class="Button" href="{{ post.url | relative_url }}">{{ read_full }}</a>
39
- </li>
40
- {%- endfor -%}
41
- </ul>
42
- </aside>
43
- {%- endif -%}
1
+ ---
2
+ layout: core
3
+ ---
4
+ {%- include strings.html -%}
5
+
6
+ {%- include hero.html title=hero_title -%}
7
+
8
+ <section class="Container">
9
+ {{ content }}
10
+
11
+ {%- if site.posts.size > 0 -%}
12
+ <aside class="RecentPosts">
13
+ <h2 class="RecentPosts__title">{{ recent_posts }}</h2>
14
+ {%- if site.oscailte.posts_url -%}
15
+ <small>
16
+ <a class="RecentPosts__all" href="{{ site.oscailte.posts_url | relative_url }}">
17
+ {{ view_all }}
18
+ </a>
19
+ </small>
20
+ {%- endif -%}
21
+ <ul class="RecentPosts__list o-list-bare">
22
+ {%- for post in site.posts limit: 6 -%}
23
+ <li class="RecentPosts__item Card o-no-owl">
24
+ {%- assign date_format = site.oscailte.date_format | default: "%b %-d, %Y" -%}
25
+ <h3 class="Card__title">
26
+ <a class="RecentPosts__link" href="{{ post.url | relative_url }}">
27
+ {{ post.title | escape }}
28
+ </a>
29
+ </h3>
30
+ <small class="Card__meta o-no-owl o-muted">
31
+ {%- include icon.html icon="calendar" -%} {{ post.date | date: date_format }}
32
+ </small>
33
+ {%- if site.show_excerpts -%}
34
+ <div class="RecentPosts__excerpt o-no-owl">
35
+ {{ post.excerpt }}
36
+ </div>
37
+ {%- endif -%}
38
+ <a class="Button" href="{{ post.url | relative_url }}">{{ read_full }}</a>
39
+ </li>
40
+ {%- endfor -%}
41
+ </ul>
42
+ </aside>
43
+ {%- endif -%}
44
44
  </section>
data/_layouts/page.html CHANGED
@@ -1,5 +1,5 @@
1
- ---
2
- layout: default
3
- ---
4
-
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
5
  {{ content }}
data/_layouts/post.html CHANGED
@@ -1,38 +1,38 @@
1
- ---
2
- layout: core
3
- ---
4
- {%- include strings.html -%}
5
-
6
- {%- assign date_iso = page.date | date: "%Y-%m-%d" -%}
7
- {%- assign date_formatted = page.date | date_to_string -%}
8
-
9
- {%- assign upper_minutes = page.content | number_of_words | divided_by: 160 -%}
10
- {%- assign lower_minutes = page.content | number_of_words | divided_by: 180 -%}
11
-
12
- {%- capture ttr -%}
13
- {%- if upper_minutes == 0 -%}
14
- {{ x_minute_read | replace: "$x$", "&lt;1" }}
15
- {%- elsif upper_minutes == lower_minutes -%}
16
- {%- capture val -%}~{{ upper_minutes }}{%- endcapture -%}
17
- {{ x_minute_read | replace: "$x$", val }}
18
- {%- else -%}
19
- {%- capture val -%}{{ lower_minutes }}-{{ upper_minutes }}{%- endcapture -%}
20
- {{ x_minute_read | replace: "$x$", val }}
21
- {%- endif -%}
22
- {%- endcapture -%}
23
-
24
- {%- capture meta -%}
25
- <time class="Date" datetime="{{ date_iso }}">{{ date_formatted }}</time> &mdash; {{ ttr }}
26
- {%- endcapture -%}
27
-
28
- <header>
29
- {% include hero.html title=page.title meta=meta %}
30
- </header>
31
-
32
- <div class="Container">
33
- <article>
34
- {{ page.content }}
35
- </article>
36
-
37
- {%- include comments.html -%}
1
+ ---
2
+ layout: core
3
+ ---
4
+ {%- include strings.html -%}
5
+
6
+ {%- assign date_iso = page.date | date: "%Y-%m-%d" -%}
7
+ {%- assign date_formatted = page.date | date_to_string -%}
8
+
9
+ {%- assign upper_minutes = page.content | number_of_words | divided_by: 160 -%}
10
+ {%- assign lower_minutes = page.content | number_of_words | divided_by: 180 -%}
11
+
12
+ {%- capture ttr -%}
13
+ {%- if upper_minutes == 0 -%}
14
+ {{ x_minute_read | replace: "$x$", "&lt;1" }}
15
+ {%- elsif upper_minutes == lower_minutes -%}
16
+ {%- capture val -%}~{{ upper_minutes }}{%- endcapture -%}
17
+ {{ x_minute_read | replace: "$x$", val }}
18
+ {%- else -%}
19
+ {%- capture val -%}{{ lower_minutes }}-{{ upper_minutes }}{%- endcapture -%}
20
+ {{ x_minute_read | replace: "$x$", val }}
21
+ {%- endif -%}
22
+ {%- endcapture -%}
23
+
24
+ {%- capture meta -%}
25
+ <time class="Date" datetime="{{ date_iso }}">{{ date_formatted }}</time> &mdash; {{ ttr }}
26
+ {%- endcapture -%}
27
+
28
+ <header>
29
+ {% include hero.html title=page.title meta=meta %}
30
+ </header>
31
+
32
+ <div class="Container">
33
+ <article>
34
+ {{ page.content }}
35
+ </article>
36
+
37
+ {%- include comments.html -%}
38
38
  </div>