oscailte 3.0.0 → 3.0.1

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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/_includes/comments.html +20 -20
  4. data/_includes/footer.html +10 -10
  5. data/_includes/google-analytics.html +10 -10
  6. data/_includes/head.html +11 -11
  7. data/_includes/header.html +17 -17
  8. data/_includes/hero.html +16 -16
  9. data/_includes/icon.html +1 -1
  10. data/_includes/navigation.html +17 -17
  11. data/_includes/social.html +16 -16
  12. data/_includes/strings.html +8 -8
  13. data/_layouts/default.html +6 -6
  14. data/_layouts/home.html +43 -43
  15. data/_layouts/page.html +4 -4
  16. data/_layouts/post.html +37 -37
  17. data/_sass/_oscailte.scss +146 -146
  18. data/_sass/oscailte/components/_button.scss +10 -10
  19. data/_sass/oscailte/components/_card.scss +18 -18
  20. data/_sass/oscailte/components/_footer.scss +21 -21
  21. data/_sass/oscailte/components/_header.scss +50 -50
  22. data/_sass/oscailte/components/_hero.scss +84 -84
  23. data/_sass/oscailte/components/_icon.scss +6 -6
  24. data/_sass/oscailte/components/_navigation.scss +31 -31
  25. data/_sass/oscailte/components/_recentposts.scss +58 -58
  26. data/_sass/oscailte/components/_skipnav.scss +10 -10
  27. data/_sass/oscailte/components/_social.scss +54 -54
  28. data/_sass/oscailte/components/_syntax.scss +72 -72
  29. data/_sass/oscailte/elements/_blockquote.scss +5 -5
  30. data/_sass/oscailte/elements/_body.scss +6 -6
  31. data/_sass/oscailte/elements/_code.scss +18 -18
  32. data/_sass/oscailte/elements/_headings.scss +14 -14
  33. data/_sass/oscailte/elements/_hr.scss +3 -3
  34. data/_sass/oscailte/elements/_html.scss +9 -9
  35. data/_sass/oscailte/elements/_img.scss +2 -2
  36. data/_sass/oscailte/elements/_links.scss +3 -3
  37. data/_sass/oscailte/generic/_font-face.scss +62 -62
  38. data/_sass/oscailte/generic/_lobotomised-owl.scss +2 -2
  39. data/_sass/oscailte/generic/_modern-normalize.scss +273 -273
  40. data/_sass/oscailte/layout/_container.scss +4 -4
  41. data/_sass/oscailte/layout/_post.scss +13 -13
  42. data/_sass/oscailte/layout/_stickyfooter.scss +10 -10
  43. data/_sass/oscailte/objects/_circuited.scss +5 -5
  44. data/_sass/oscailte/objects/_lists.scss +10 -10
  45. data/_sass/oscailte/objects/_muted.scss +2 -2
  46. data/_sass/oscailte/objects/_no-owl.scss +3 -3
  47. data/_sass/oscailte/tools/_functions.scss +26 -26
  48. data/_sass/oscailte/tools/_mixins.scss +28 -28
  49. data/assets/css/main.scss +4 -4
  50. data/assets/oscailte/fonts/lato-v16-latin-regular.svg +435 -435
  51. data/assets/oscailte/fonts/merriweather-v21-latin-700.svg +375 -375
  52. data/assets/oscailte/fonts/merriweather-v21-latin-italic.svg +390 -390
  53. data/assets/oscailte/fonts/merriweather-v21-latin-regular.svg +374 -374
  54. data/assets/oscailte/img/icons.svg +62 -62
  55. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8a5800d066a43306565d3e703c482bf80579ce3
4
- data.tar.gz: 838bdaa17bebdd96c21bb7dc49c2c5fe9c9ed6ec
3
+ metadata.gz: 705e3361f1bef731eab4e4d6bdffcd9ca6415ad0
4
+ data.tar.gz: 12c4086156055fce1e2a1aa8a7a04c4f14585e4d
5
5
  SHA512:
6
- metadata.gz: f960a65a0aa550f4f11fd822b7c6bb9a8d3bb72c3627bb0552d1a9aa2c42d3aa9c8e962aa82e4c88963695c84436b1b1b820151bf22c21933a98e80c1112e1d7
7
- data.tar.gz: c4e677eac2a2d105d94f98de70b4b54e3845fa64040b743fc73370fd192ef331eb7dd99501194e308f59f25e9ecce4a0ca9cfff82a1cc5518cd4b50662b776a9
6
+ metadata.gz: 30cf38612a5d9def4087bbf1e6ec22c34c88e77c6cc856018f94483264833e9c6a49520fe392e07d32907711d77529a35a1a244307f6d4fa9f545d09d3ba651d
7
+ data.tar.gz: 8bd5be26dd39e5ab21df3f55454601048bb0f6a5a91fb214523d56aa00f789e27f502fbd1f3e9ce37a78c43a869be88dd35ffbf9d1d8ebe82432d17cd2f331a1
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Oscailte — A Jekyll theme
2
2
 
3
3
  ---
4
- ## ![Attention](http://i.imgur.com/iBbFfJH.png) Latest version: 3.0</sup>
4
+ ## ![Attention](http://i.imgur.com/iBbFfJH.png) Latest version: 3.0.1</sup>
5
5
 
6
6
  ---
7
7
 
@@ -1,21 +1,21 @@
1
- {%- if page.comments != false and site.disqus.shortname and jekyll.environment == "production" -%}
2
- <section class="container">
3
- <h1 class="SectionTitle">Comments</h1>
4
- <div id="disqus_thread" class="Comments"></div>
5
- <script>
6
- var disqus_config = function () {
7
- this.page.url = '{{ page.url | absolute_url }}';
8
- this.page.identifier = '{{ page.url | absolute_url }}';
9
- };
10
- (function() {
11
- var d = document, s = d.createElement('script');
12
- s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
13
- s.setAttribute('data-timestamp', +new Date());
14
- (d.head || d.body).appendChild(s);
15
- })();
16
- </script>
17
- <noscript>
18
- {{ disqus_enable_javascript }}
19
- </noscript>
20
- </section>
1
+ {%- if page.comments != false and site.disqus.shortname and jekyll.environment == "production" -%}
2
+ <section class="container">
3
+ <h1 class="SectionTitle">Comments</h1>
4
+ <div id="disqus_thread" class="Comments"></div>
5
+ <script>
6
+ var disqus_config = function () {
7
+ this.page.url = '{{ page.url | absolute_url }}';
8
+ this.page.identifier = '{{ page.url | absolute_url }}';
9
+ };
10
+ (function() {
11
+ var d = document, s = d.createElement('script');
12
+ s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
13
+ s.setAttribute('data-timestamp', +new Date());
14
+ (d.head || d.body).appendChild(s);
15
+ })();
16
+ </script>
17
+ <noscript>
18
+ {{ disqus_enable_javascript }}
19
+ </noscript>
20
+ </section>
21
21
  {%- endif -%}
@@ -1,10 +1,10 @@
1
- <footer class="Site__footer o-circuited">
2
- <div class="Container">
3
- <p>
4
- All content copyright {{ site.author }}<br>
5
- <small class="o-muted">Powered by <a href="https://jekyllrb.com/">Jekyll</a>, themed with <a href="https://github.com/coogie/oscailte">Oscailte</a></small>.
6
- </p>
7
-
8
- {%- include social.html -%}
9
- </div>
10
- </footer>
1
+ <footer class="Site__footer o-circuited">
2
+ <div class="Container">
3
+ <p>
4
+ All content copyright {{ site.author }}<br>
5
+ <small class="o-muted">Powered by <a href="https://jekyllrb.com/">Jekyll</a>, themed with <a href="https://github.com/coogie/oscailte">Oscailte</a></small>.
6
+ </p>
7
+
8
+ {%- include social.html -%}
9
+ </div>
10
+ </footer>
@@ -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,12 @@
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>
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
12
  </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="{{ site.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,2 @@
1
- {%- capture path -%}/assets/oscailte/img/icons.svg#{{ include.icon }}{%- endcapture -%}
1
+ {%- capture path -%}/assets/oscailte/img/icons.svg#{{ include.icon }}{%- endcapture -%}
2
2
  <svg class="Icon Icon--{{ include.icon }}"><use xlink:href="{{ path | relative_url }}"></use></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}}">{{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>.' -%}
@@ -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>