jekyll-sleek 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/_includes/card.html +31 -0
  4. data/_includes/critical.css +1 -0
  5. data/_includes/{ga.html → gtm.html} +2 -2
  6. data/_includes/head.html +36 -2
  7. data/_includes/header.html +12 -14
  8. data/_includes/logo.svg +5 -0
  9. data/_includes/pagination.html +3 -0
  10. data/_layouts/compress.html +10 -0
  11. data/_layouts/default.html +17 -16
  12. data/_layouts/page.html +11 -1
  13. data/_layouts/post.html +41 -8
  14. data/_sass/base/_helpers.scss +11 -0
  15. data/_sass/components/_card.scss +41 -2
  16. data/_sass/components/_pagination.scss +5 -0
  17. data/_sass/components/_zoom.scss +37 -0
  18. data/_sass/layout/_footer.scss +5 -3
  19. data/_sass/layout/_nav.scss +59 -14
  20. data/_sass/main.scss +2 -1
  21. data/_sass/pages/_page.scss +3 -2
  22. data/_sass/vendor/{_susy.scss → _breakpoint.scss} +0 -1
  23. data/assets/css/main.css +1 -1
  24. data/assets/img/favicon.jpg +0 -0
  25. data/assets/img/icons/android-chrome-192x192.png +0 -0
  26. data/assets/img/icons/android-chrome-256x256.png +0 -0
  27. data/assets/img/icons/apple-touch-icon.png +0 -0
  28. data/assets/img/icons/browserconfig.xml +9 -0
  29. data/assets/img/icons/favicon-16x16.png +0 -0
  30. data/assets/img/icons/favicon-32x32.png +0 -0
  31. data/assets/img/icons/favicon.ico +0 -0
  32. data/assets/img/icons/icon-twitter.svg +1 -1
  33. data/assets/img/icons/manifest.json +18 -0
  34. data/assets/img/icons/mstile-150x150.png +0 -0
  35. data/assets/img/icons/safari-pinned-tab.svg +19 -0
  36. data/assets/img/posts/emile-perron-190221.jpg +0 -0
  37. data/assets/img/posts/emile-perron-190221_lg.jpg +0 -0
  38. data/assets/img/posts/emile-perron-190221_md.jpg +0 -0
  39. data/assets/img/posts/emile-perron-190221_placehold.jpg +0 -0
  40. data/assets/img/posts/emile-perron-190221_sm.jpg +0 -0
  41. data/assets/img/posts/emile-perron-190221_thumb.jpg +0 -0
  42. data/assets/img/posts/emile-perron-190221_thumb@2x.jpg +0 -0
  43. data/assets/img/posts/emile-perron-190221_xs.jpg +0 -0
  44. data/assets/img/posts/ruben-santander-69158.jpg +0 -0
  45. data/assets/img/posts/ruben-santander-69158_lg.jpg +0 -0
  46. data/assets/img/posts/ruben-santander-69158_md.jpg +0 -0
  47. data/assets/img/posts/ruben-santander-69158_placehold.jpg +0 -0
  48. data/assets/img/posts/ruben-santander-69158_sm.jpg +0 -0
  49. data/assets/img/posts/ruben-santander-69158_thumb.jpg +0 -0
  50. data/assets/img/posts/ruben-santander-69158_thumb@2x.jpg +0 -0
  51. data/assets/img/posts/ruben-santander-69158_xs.jpg +0 -0
  52. data/assets/img/posts/shane-rounce-205187.jpg +0 -0
  53. data/assets/img/posts/shane-rounce-205187_lg.jpg +0 -0
  54. data/assets/img/posts/shane-rounce-205187_md.jpg +0 -0
  55. data/assets/img/posts/shane-rounce-205187_placehold.jpg +0 -0
  56. data/assets/img/posts/shane-rounce-205187_sm.jpg +0 -0
  57. data/assets/img/posts/shane-rounce-205187_thumb.jpg +0 -0
  58. data/assets/img/posts/shane-rounce-205187_thumb@2x.jpg +0 -0
  59. data/assets/img/posts/shane-rounce-205187_xs.jpg +0 -0
  60. data/assets/img/posts/sleek.jpg +0 -0
  61. data/assets/img/posts/sleek_lg.jpg +0 -0
  62. data/assets/img/posts/sleek_md.jpg +0 -0
  63. data/assets/img/posts/sleek_placehold.jpg +0 -0
  64. data/assets/img/posts/sleek_sm.jpg +0 -0
  65. data/assets/img/posts/sleek_thumb.jpg +0 -0
  66. data/assets/img/posts/sleek_thumb@2x.jpg +0 -0
  67. data/assets/img/posts/sleek_xs.jpg +0 -0
  68. data/assets/js/bundle.js +1 -1
  69. metadata +53 -6
  70. data/assets/img/bigg.jpg +0 -0
  71. data/assets/img/shane-rounce-205187.jpg +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23b26180c2b0cb43bf7d227eef12b1bc3a121a62
4
- data.tar.gz: 976c326361d172d55000d4f22ea636def38ad3f7
3
+ metadata.gz: 736561d9c683029d473e0ae48376414310980cdf
4
+ data.tar.gz: 37ad5f94fe22b771712cd3c37cdf81c679a69942
5
5
  SHA512:
6
- metadata.gz: ee3c367f52514584997ee94234a29cf789e64fc438e806536461f703b65bb29680c490eafbab626653a6789f4f3a87048a3bbfb9df2842e3f6e2c9b45fe85d37
7
- data.tar.gz: 0f85fa9aea33efde171fef2d77c1430be94bac923c8e3467b6797b309ab5f2b29e63a0c128e1f995d57622863169a0253adbc3ebc5592cc27d17bb655c10e5eb
6
+ metadata.gz: 95e7562f4caa8aeb47e34725a31c48312db72e010f1c1aadaa7da4d234f0eaf6d0374fcfe56af8fe0d3b1303b39b08fc8587a15248cc8b29357a742ba0b77aee
7
+ data.tar.gz: d3631f5d14b2bdda41a3ba8f4bf1a0723befbda7a0c4e6d72d82763c01f083c7d73975321495dfaa6539c2ee16136c2f7349d295853270ef7251302c2b2be575
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Gem Version](https://badge.fury.io/rb/jekyll-sleek.svg)](https://badge.fury.io/rb/jekyll-sleek)
2
+
1
3
  # Sleek
2
4
 
3
5
  Sleek is a modern Jekyll theme focused on speed performance & SEO best practices. 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`.
@@ -12,13 +14,13 @@ TODO: Delete this and the text above, and describe your gem
12
14
  Add this line to your Jekyll site's `Gemfile`:
13
15
 
14
16
  ```ruby
15
- gem "sleek"
17
+ gem "jekyll-sleek"
16
18
  ```
17
19
 
18
20
  And add this line to your Jekyll site's `_config.yml`:
19
21
 
20
22
  ```yaml
21
- theme: sleek
23
+ theme: jekyll-sleek
22
24
  ```
23
25
 
24
26
  And then execute:
@@ -27,7 +29,7 @@ And then execute:
27
29
 
28
30
  Or install it yourself as:
29
31
 
30
- $ gem install sleek
32
+ $ gem install jekyll-sleek
31
33
 
32
34
  ## Usage
33
35
 
@@ -44,7 +46,7 @@ To set up your environment to develop this theme, run `bundle install`.
44
46
  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
47
 
46
48
  When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
47
- To add a custom directory to your theme-gem, please edit the regexp in `sleek.gemspec` accordingly.
49
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-sleek.gemspec` accordingly.
48
50
 
49
51
  ## License
50
52
 
@@ -0,0 +1,31 @@
1
+ <a class="post-card" href="{{ post.url | relative_url }}" itemprop="blogPosts" itemscope="" itemtype="http://schema.org/BlogPosting">
2
+ {% if post.featured-img %}
3
+ <figure class="post-card__thumb">
4
+ <img
5
+ src="{{site.url}}/assets/img/posts/{{post.featured-img}}_placehold.jpg",
6
+ data-srcset="{{site.url}}/assets/img/posts/{{post.featured-img}}_thumb.jpg, {{site.url}}/assets/img/posts/{{post.featured-img}}_thumb@2x.jpg 2x"
7
+ class="lazyload blur-up"
8
+ alt="{{post.title}}"
9
+ />
10
+ <noscript><img src="{{site.url}}/assets/img/posts/{{post.featured-img}}_thumb.jpg" alt="{{ post.title }}"></noscript>
11
+ </figure>
12
+ {% else %}
13
+ <figure class="post-card__thumb">
14
+ <!-- <img src="./assets/img/shane-rounce-205187.jpg" alt="{{post.title}}"/> -->
15
+ </figure>
16
+ {% endif %}
17
+ <div class="post-card__inner">
18
+ <div class="post-card__header">
19
+ <h2>{{ post.title | strip_html | truncate: 50 }}</h2>
20
+ {% assign date_format = site.sleek.date_format | default: "%b %-d, %Y" %}
21
+ <span class="post-card__meta">
22
+ <time>{{ post.date | date: date_format }}</time>
23
+ </span>
24
+ </div>
25
+ {% if post.summary %}
26
+ <p>{{ post.summary | strip_html | truncatewords:20 }}</p>
27
+ {% else %}
28
+ <p>{{ post.content | strip_html | truncatewords: 20 }}</p>
29
+ {% endif %}
30
+ </div>
31
+ </a>
@@ -0,0 +1 @@
1
+ h1{color:#313237;margin-top:0;margin-bottom:.5rem}figure,main{display:block}figure{margin:1em 40px}figure{margin:0}@media (min-width:48em){.post-card{width:48.4375%;margin-right:3.125%}.post-card:last-of-type,.post-card:nth-child(2n+2){margin-right:0}}html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}main{display:block}a{background-color:transparent;-webkit-text-decoration-skip:objects}img{border-style:none}svg:not(:root){overflow:hidden}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}html{-webkit-box-sizing:border-box;box-sizing:border-box}body{-webkit-overflow-scrolling:touch}*,::after,::before{-webkit-box-sizing:inherit;box-sizing:inherit}.site{display:-webkit-box;display:-ms-flexbox;display:flex;min-height:100vh;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.site__content{-webkit-box-flex:1;-ms-flex:1;flex:1}img{max-width:100%;height:auto;width:auto;vertical-align:middle}body{background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1rem;line-height:1.5;color:#343851;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}p{margin-top:0;margin-bottom:1.25rem}h1,h2{color:#313237;margin-top:0;margin-bottom:.5rem}a{color:#277cea;text-decoration:none}.blur-up{-webkit-filter:blur(5px);filter:blur(5px)}.container{padding:0 20px}@media (min-width:0){.container{max-width:auto;margin:0 auto}}@media (min-width:36em){.container{max-width:540px;margin:0 auto}}@media (min-width:48em){.container{max-width:720px;margin:0 auto}}@media (min-width:62em){.container{max-width:960px;margin:0 auto}}@media (min-width:75em){.container{max-width:1170px;margin:0 auto}}.header{background-color:#fff;color:#343851;position:absolute;z-index:4;width:100%;top:0;left:0;will-change:transform;-webkit-transform:translateY(0);transform:translateY(0)}.header a{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.header__logo{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;overflow:hidden;padding:19px 0;margin-right:1.25rem;outline:0;color:#313237}.header__logo .header__logo--container{width:58px}.header__logo .header__logo--container .logo{fill:currentColor}.header__inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:3.75em;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.header__links{display:none;visibility:hidden}.header__links a{color:#343851;padding:0 1em}.header__toggle{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:24px;height:100%;background-color:transparent;padding:0}.header__toggle span{display:block;position:relative;margin-top:4px;background-color:#343851;width:100%;height:2px}.header__toggle span:first-child{margin-top:0}@media (min-width:62em){.header__toggle{display:none;visibility:hidden}.header__links{display:-webkit-box;display:-ms-flexbox;display:flex;visibility:visible;height:100%}}.post-card{display:block;width:100%;min-height:250px;border-radius:4px;overflow:hidden;background-color:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.08);box-shadow:0 1px 3px rgba(0,0,0,.08);margin-bottom:5.26316%}@media (min-width:48em){.post-card{width:48.4375%;margin-right:3.125%}.post-card:nth-child(2n+2){margin-right:0}}@media (min-width:75em){.post-card{width:31.25%;margin-right:3.125%}.post-card:nth-child(2n+2){margin-right:3.125%}}.post-card__thumb{margin:0;background:#313237;position:relative}.post-card__thumb::after{content:"";display:block;height:0;width:100%;padding-bottom:56.25%}.post-card__thumb>*{position:absolute;top:0;left:0;width:100%;height:100%;display:block}.post-card__inner{padding:1.875rem 1.25rem .625rem;color:#838c8d}.post-card__header{margin-bottom:.75rem}.post-card__header .post-card__meta{font-size:.875rem}.hero{margin:3.75rem auto 0;min-height:16.25rem;width:100%;position:relative;background:url(../assets/img/posts/sleek.jpg) 50%/cover no-repeat #dde5ea}@media (min-width:62em){.hero{margin:0 auto;height:36em}}.hero::before{position:absolute;display:block;content:"";top:0;left:0;width:100%;height:100%;background:rgba(52,56,81,.8)}.hero__wrap{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);text-align:center;color:rgba(255,255,255,.8);max-width:40em;z-index:1}.hero__wrap .hero__title{color:#fff}.blog{background-color:#f9f9f9}.post-list{padding-top:2.5em;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}@media (min-width:48em){.hero__wrap .hero__title{font-size:2.625em;line-height:3.125rem}.post-list{padding-top:5em}}
@@ -1,9 +1,9 @@
1
1
  <!-- Global site tag (gtag.js) - Google Analytics -->
2
- <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
2
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_tag_manager }}"></script>
3
3
  <script>
4
4
  window.dataLayer = window.dataLayer || [];
5
5
  function gtag(){dataLayer.push(arguments);}
6
6
  gtag('js', new Date());
7
7
 
8
- gtag('config', '{{ site.google_analytics }}');
8
+ gtag('config', '{{ site.google_tag_manager }}');
9
9
  </script>
data/_includes/head.html CHANGED
@@ -5,6 +5,40 @@
5
5
 
6
6
  {% seo %}
7
7
 
8
- <style class="inlineCSS">{% include critical.css %}</style>
9
- <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
8
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ '/assets/img/icons/apple-touch-icon.png?v=qA3OXqyw77' | relative_url }}">
9
+ <link rel="icon" type="image/png" sizes="32x32" href="{{'/assets/img/icons/favicon-32x32.png?v=qA3OXqyw77' | relative_url }}">
10
+ <link rel="icon" type="image/png" sizes="16x16" href="{{'/assets/img/icons/favicon-16x16.png?v=qA3OXqyw77' | relative_url }}">
11
+ <link rel="manifest" href="{{ '/assets/img/icons/manifest.json?v=qA3OXqyw77' | relative_url }}">
12
+ <link rel="mask-icon" href="{{ '/assets/img/icons/safari-pinned-tab.svg?v=qA3OXqyw77' | relative_url }}" color="#5bbad5">
13
+ <!--[if IE]><link rel="shortcut icon" href="/assets/img/icons/favicon.ico?v=qA3OXqyw77"><![endif]-->
14
+ <link rel="shortcut icon" href="{{ '/assets/img/icons/favicon.ico?v=qA3OXqyw77' | relative_url }}">
15
+ <meta name="apple-mobile-web-app-title" content="Sleek">
16
+ <meta name="application-name" content="Sleek">
17
+ <meta name="msapplication-config" content="{{ '/assets/img/icons/browserconfig.xml?v=qA3OXqyw77' | relative_url }}">
18
+ <meta name="theme-color" content="#ffffff">
19
+
20
+ {% if site.google_tag_manager %}
21
+
22
+ {% include gtm.html %}
23
+
24
+ {% endif %}
25
+
26
+ <style class="inlineCSS">
27
+
28
+ {% include critical.css %}
29
+
30
+ </style>
31
+ <link rel="preload" href="{{ '/assets/css/main.css' | relative_url }}" as="style" onload="this.rel='stylesheet'">
32
+ <noscript><link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}"></noscript>
33
+ <script type="text/javascript">
34
+ /*! loadCSS. [c]2017 Filament Group, Inc. MIT License */
35
+ (function(w){"use strict";if(!w.loadCSS){w.loadCSS=function(){}}
36
+ var rp=loadCSS.relpreload={};rp.support=(function(){var ret;try{ret=w.document.createElement("link").relList.supports("preload")}catch(e){ret=!1}
37
+ return function(){return ret}})();rp.bindMediaToggle=function(link){var finalMedia=link.media||"all";function enableStylesheet(){link.media=finalMedia}
38
+ if(link.addEventListener){link.addEventListener("load",enableStylesheet)}else if(link.attachEvent){link.attachEvent("onload",enableStylesheet)}
39
+ setTimeout(function(){link.rel="stylesheet";link.media="only x"});setTimeout(enableStylesheet,3000)};rp.poly=function(){if(rp.support()){return}
40
+ var links=w.document.getElementsByTagName("link");for(var i=0;i<links.length;i++){var link=links[i];if(link.rel==="preload"&&link.getAttribute("as")==="style"&&!link.getAttribute("data-loadcss")){link.setAttribute("data-loadcss",!0);rp.bindMediaToggle(link)}}};if(!rp.support()){rp.poly();var run=w.setInterval(rp.poly,500);if(w.addEventListener){w.addEventListener("load",function(){rp.poly();w.clearInterval(run)})}else if(w.attachEvent){w.attachEvent("onload",function(){rp.poly();w.clearInterval(run)})}}
41
+ if(typeof exports!=="undefined"){exports.loadCSS=loadCSS}
42
+ else{w.loadCSS=loadCSS}}(typeof global!=="undefined"?global:this))
43
+ </script>
10
44
  </head>
@@ -1,22 +1,20 @@
1
1
  <header class="header" itemscope itemtype="http://schema.org/SiteNavigationElement" aria-label="Main navigation">
2
2
  <div class="container">
3
3
  <div class="header__inner">
4
- <a class="header__logo" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
4
+ <a class="header__logo" href="{{ '/' | relative_url }}">
5
+ <div class="header__logo--container">
6
+ {% include logo.svg %}
7
+ </div>
8
+ </a>
5
9
  <nav class="header__links">
6
- <a href="/about" itemprop="url"><span itemprop="name">About</span></a>
7
- <a href="/contact" itemprop="url"><span itemprop="name">Contact</span></a>
8
- {% if page_paths %}
9
- {% for path in page_paths %}
10
- {% assign my_page = site.pages | where: "path", path | first %}
11
- {% if my_page.title %}
12
- {% if my_page.title contains "404" %}
13
- {% else %}
14
- <a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
15
- {% endif %}
16
- {% endif %}
17
- {% endfor %}
18
- {% endif %}
10
+ <a href="{{ '/about' | relative_url }}" itemprop="url"><span itemprop="name">About</span></a>
11
+ <a href="{{ '/contact' | relative_url }}" itemprop="url"><span itemprop="name">Contact</span></a>
19
12
  </nav>
13
+ <div class="header__toggle">
14
+ <span></span>
15
+ <span></span>
16
+ <span></span>
17
+ </div>
20
18
  </div>
21
19
  </div>
22
20
  </header>
@@ -0,0 +1,5 @@
1
+ <svg class="logo" viewBox="0 0 47 15" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <g id="logo" transform="translate(-113.000000, -89.000000)">
3
+ <path d="M114.657,93.712 C114.657,93.1479972 114.767999,92.6530021 114.99,92.227 C115.212001,91.8009979 115.505998,91.4470014 115.872,91.165 C116.238002,90.8829986 116.663998,90.6700007 117.15,90.526 C117.636002,90.3819993 118.136997,90.31 118.653,90.31 C119.457004,90.31 120.218996,90.4629985 120.939,90.769 C121.659004,91.0750015 122.258998,91.5219971 122.739,92.11 L121.371,93.406 C121.094999,92.9859979 120.708002,92.6560012 120.21,92.416 C119.711998,92.1759988 119.193003,92.056 118.653,92.056 C118.004997,92.056 117.519002,92.1909986 117.195,92.461 C116.870998,92.7310013 116.709,93.1059976 116.709,93.586 C116.709,93.8740014 116.771999,94.1259989 116.898,94.342 C117.024001,94.5580011 117.194999,94.7469992 117.411,94.909 C117.627001,95.0710008 117.878999,95.2149994 118.167,95.341 C118.455001,95.4670006 118.754998,95.5959993 119.067,95.728 C119.475002,95.8960008 119.888998,96.075999 120.309,96.268 C120.729002,96.460001 121.106998,96.6999986 121.443,96.988 C121.779002,97.2760014 122.054999,97.6299979 122.271,98.05 C122.487001,98.4700021 122.595,98.9919969 122.595,99.616 C122.595,100.276003 122.481001,100.836998 122.253,101.299 C122.024999,101.761002 121.716002,102.138999 121.326,102.433 C120.935998,102.727001 120.483003,102.939999 119.967,103.072 C119.450997,103.204001 118.911003,103.27 118.347,103.27 C117.386995,103.27 116.526004,103.084002 115.764,102.712 C115.001996,102.339998 114.339003,101.758004 113.775,100.966 L115.197,99.778 C115.305001,99.9580009 115.460999,100.152999 115.665,100.363 C115.869001,100.573001 116.105999,100.767999 116.376,100.948 C116.646001,101.128001 116.945998,101.277999 117.276,101.398 C117.606002,101.518001 117.962998,101.578 118.347,101.578 C118.767002,101.578 119.117999,101.53 119.4,101.434 C119.682001,101.338 119.906999,101.206001 120.075,101.038 C120.243001,100.869999 120.363,100.675001 120.435,100.453 C120.507,100.230999 120.543,99.9940013 120.543,99.742 C120.543,99.4299984 120.474001,99.1570012 120.336,98.923 C120.197999,98.6889988 120.015001,98.4820009 119.787,98.302 C119.558999,98.1219991 119.295001,97.9600007 118.995,97.816 C118.694998,97.6719993 118.383002,97.5280007 118.059,97.384 C117.662998,97.2159992 117.261002,97.036001 116.853,96.844 C116.444998,96.651999 116.079002,96.4180014 115.755,96.142 C115.430998,95.8659986 115.167001,95.5330019 114.963,95.143 C114.758999,94.7529981 114.657,94.2760028 114.657,93.712 Z M127.167,89.824 L127.167,103 L125.097,103 L125.097,89.824 L127.167,89.824 Z M131.775,99.364 C131.859,100.192004 132.119998,100.794998 132.558,101.173 C132.996002,101.551002 133.598996,101.74 134.367,101.74 C134.859002,101.74 135.341998,101.662001 135.816,101.506 C136.290002,101.349999 136.700998,101.134001 137.049,100.858 L137.877,102.136 C137.336997,102.496002 136.749003,102.768999 136.113,102.955 C135.476997,103.141001 134.841003,103.234 134.205,103.234 C133.592997,103.234 133.014003,103.141001 132.468,102.955 C131.921997,102.768999 131.442002,102.490002 131.028,102.118 C130.613998,101.745998 130.284001,101.278003 130.038,100.714 C129.791999,100.149997 129.669,99.4840038 129.669,98.716 C129.669,98.0799968 129.779999,97.4920027 130.002,96.952 C130.224001,96.4119973 130.532998,95.947002 130.929,95.557 C131.325002,95.1669981 131.789997,94.8610011 132.324,94.639 C132.858003,94.4169989 133.430997,94.306 134.043,94.306 C134.631003,94.306 135.170998,94.3989991 135.663,94.585 C136.155002,94.7710009 136.580998,95.0439982 136.941,95.404 C137.301002,95.7640018 137.582999,96.2109973 137.787,96.745 C137.991001,97.2790027 138.093,97.8939965 138.093,98.59 C138.093,98.7220007 138.09,98.8419995 138.084,98.95 C138.078,99.0580005 138.069,99.1779993 138.057,99.31 L131.775,99.364 Z M134.043,95.746 C133.394997,95.746 132.861002,95.9559979 132.441,96.376 C132.020998,96.7960021 131.799,97.3479966 131.775,98.032 L136.113,98.032 C136.089,97.3479966 135.906002,96.7960021 135.564,96.376 C135.221998,95.9559979 134.715003,95.746 134.043,95.746 Z M142.179,99.364 C142.263,100.192004 142.523998,100.794998 142.962,101.173 C143.400002,101.551002 144.002996,101.74 144.771,101.74 C145.263002,101.74 145.745998,101.662001 146.22,101.506 C146.694002,101.349999 147.104998,101.134001 147.453,100.858 L148.281,102.136 C147.740997,102.496002 147.153003,102.768999 146.517,102.955 C145.880997,103.141001 145.245003,103.234 144.609,103.234 C143.996997,103.234 143.418003,103.141001 142.872,102.955 C142.325997,102.768999 141.846002,102.490002 141.432,102.118 C141.017998,101.745998 140.688001,101.278003 140.442,100.714 C140.195999,100.149997 140.073,99.4840038 140.073,98.716 C140.073,98.0799968 140.183999,97.4920027 140.406,96.952 C140.628001,96.4119973 140.936998,95.947002 141.333,95.557 C141.729002,95.1669981 142.193997,94.8610011 142.728,94.639 C143.262003,94.4169989 143.834997,94.306 144.447,94.306 C145.035003,94.306 145.574998,94.3989991 146.067,94.585 C146.559002,94.7710009 146.984998,95.0439982 147.345,95.404 C147.705002,95.7640018 147.986999,96.2109973 148.191,96.745 C148.395001,97.2790027 148.497,97.8939965 148.497,98.59 C148.497,98.7220007 148.494,98.8419995 148.488,98.95 C148.482,99.0580005 148.473,99.1779993 148.461,99.31 L142.179,99.364 Z M144.447,95.746 C143.798997,95.746 143.265002,95.9559979 142.845,96.376 C142.424998,96.7960021 142.203,97.3479966 142.179,98.032 L146.517,98.032 C146.493,97.3479966 146.310002,96.7960021 145.968,96.376 C145.625998,95.9559979 145.119003,95.746 144.447,95.746 Z M153.033,89.824 L153.033,97.798 L156.579,94.468 L159.117,94.468 L154.977,98.518 L159.333,103 L156.741,103 L153.033,99.112 L153.033,103 L150.963,103 L150.963,89.824 L153.033,89.824 Z" id="Sleek"></path>
4
+ </g>
5
+ </svg>
@@ -0,0 +1,3 @@
1
+ <nav class="pagination">
2
+ <a href="#" class="pagination__item">1</a>
3
+ </nav>
@@ -0,0 +1,10 @@
1
+ ---
2
+ # Jekyll layout that compresses HTML
3
+ # v3.0.2
4
+ # http://jch.penibelst.de/
5
+ # © 2014–2015 Anatol Broder
6
+ # MIT License
7
+ ---
8
+
9
+ {% capture _LINE_FEED %}
10
+ {% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: default
2
+ layout: compress
3
3
  ---
4
4
  <html lang="{{ page.lang | default: site.lang | default: "en_US" }}">
5
5
 
@@ -7,34 +7,35 @@ layout: default
7
7
 
8
8
  <body class="site">
9
9
 
10
+ {% if site.google_tag_manager %}
11
+
12
+ <!-- Google Tag Manager (noscript) -->
13
+ <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ site.google_tag_manager }}"
14
+ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
15
+ <!-- End Google Tag Manager (noscript) -->
16
+
17
+ {% endif %}
18
+
10
19
  {% include header.html %}
11
20
 
12
21
  <div class="hero">
13
22
  <div class="hero__wrap">
14
- <h1 class="hero__title">Sleek theme</h1>
23
+ <h1 class="hero__title">Sleek</h1>
24
+ <p class="hero__meta">Modern Jekyll theme focused on speed performance & SEO best practices</p>
15
25
  </div>
16
26
  </div>
27
+
17
28
  <main class="site__content">
18
29
  <section class="blog">
19
30
  <div class="container">
31
+ <div class="post-list" itemscope="" itemtype="http://schema.org/Blog">
20
32
 
21
- <div class="post-list">
22
33
  {% for post in site.posts %}
23
- <a class="post-card" href="{{ post.url | relative_url }}">
24
- <img src="./assets/img/shane-rounce-205187.jpg" alt="{{post.title}}"/>
25
- {% if post.featured-img %}
26
- <div></div>
27
- {% endif %}
28
- <div class="post-card--inner">
29
- <h2>{{ post.title | escape }}</h2>
30
- {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
31
- <time class="post-card--meta">{{ post.date | date: date_format }}</time>
32
- <p>{{ post.content | strip_html | truncatewords:20 }}</p>
33
- </div>
34
- </a>
34
+ {% include card.html %}
35
35
  {% endfor %}
36
- </div>
37
36
 
37
+ <!-- {% include pagination.html %} -->
38
+ </div>
38
39
  </div>
39
40
  </section>
40
41
  </main>
data/_layouts/page.html CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: page
2
+ layout: compress
3
3
  ---
4
4
  <html lang="{{ page.lang | default: site.lang | default: "en_US" }}">
5
5
 
@@ -7,7 +7,17 @@ layout: page
7
7
 
8
8
  <body class="site">
9
9
 
10
+ {% if site.google_tag_manager %}
11
+
12
+ <!-- Google Tag Manager (noscript) -->
13
+ <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ site.google_tag_manager }}"
14
+ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
15
+ <!-- End Google Tag Manager (noscript) -->
16
+
17
+ {% endif %}
18
+
10
19
  {% include header.html %}
20
+
11
21
  <div class="hero--small">
12
22
  <div class="hero__wrap">
13
23
  <h1 class="hero__title">{{ page.title }}</h1>
data/_layouts/post.html CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: post
2
+ layout: compress
3
3
  ---
4
4
  <html lang="{{ page.lang | default: site.lang | default: "en_US" }}">
5
5
 
@@ -7,11 +7,40 @@ layout: post
7
7
 
8
8
  <body class="site">
9
9
 
10
+ {% if site.google_tag_manager %}
11
+
12
+ <!-- Google Tag Manager (noscript) -->
13
+ <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ site.google_tag_manager }}"
14
+ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
15
+ <!-- End Google Tag Manager (noscript) -->
16
+
17
+ {% endif %}
18
+
10
19
  {% include header.html %}
11
20
 
21
+ <div class="hero">
22
+ <div class="hero__wrap">
23
+ <h1 class="hero__title">{{ page.title }}</h1>
24
+ <p class="hero__meta">
25
+ <span>
26
+ <time>{{ page.date | date_to_string }}</time>&nbsp;
27
+ </span>
28
+ <span>
29
+ {% assign words = content | number_of_words %}
30
+ {% if words < 360 %}
31
+ 1 min
32
+ {% else %}
33
+ {{ words | divided_by:180 }} mins
34
+ {% endif %} read
35
+ &nbsp;
36
+ </span>
37
+ </p>
38
+ </div>
39
+ </div>
40
+
12
41
  <main class="site__content">
13
42
  <div class="container">
14
- <article class="post-content">
43
+ <article class="post-content" itemprop="articleBody">
15
44
 
16
45
  {{ content }}
17
46
 
@@ -22,6 +51,7 @@ layout: post
22
51
  <div class="post-content">
23
52
  <div class="control">
24
53
  {% if page.previous.url %}
54
+
25
55
  <a class="prev" href="{{page.previous.url}}">&laquo; {{page.previous.title}}</a>
26
56
  {% endif %}
27
57
  </div>
@@ -34,18 +64,21 @@ layout: post
34
64
  </div>
35
65
  </div>
36
66
  </div>
37
- <div class="comments">
38
- <div class="container">
39
- <div class="post-content">
40
67
 
41
- {% if site.disqus.shortname %}
68
+ {% if site.disqus.shortname %}
69
+
70
+ <div class="comments">
71
+ <div class="container">
72
+ <div class="post-content">
42
73
 
43
74
  {% include disqus.html %}
44
75
 
45
- {% endif %}
76
+ </div>
46
77
  </div>
47
78
  </div>
48
- </div>
79
+
80
+ {% endif %}
81
+
49
82
  </main>
50
83
 
51
84
  {% include footer.html %}
@@ -1,3 +1,14 @@
1
+ .blur-up {
2
+ -webkit-filter: blur(5px);
3
+ filter: blur(5px);
4
+ transition: filter 400ms, -webkit-filter 400ms;
5
+ }
6
+
7
+ .blur-up.lazyloaded {
8
+ -webkit-filter: blur(0);
9
+ filter: blur(0);
10
+ }
11
+
1
12
  .title {
2
13
  position: relative;
3
14
  margin: 0 0 85px;
@@ -7,6 +7,12 @@
7
7
  background-color: $bg-color;
8
8
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
9
9
  margin-bottom: 5.26316%;
10
+ transition: box-shadow .25s ease;
11
+
12
+ &:hover,
13
+ &:focus {
14
+ box-shadow: 0 2px 40px 0 hsla(232, 8%, 63%, .3);
15
+ }
10
16
 
11
17
  @include breakpoint($md) {
12
18
  width: 48.4375%;
@@ -33,6 +39,39 @@
33
39
  }
34
40
  }
35
41
 
36
- .post-card--inner {
37
- padding: 1.875rem 1.25rem;
42
+ .post-card__thumb {
43
+ margin: 0;
44
+ background: $dark-light;
45
+ position: relative;
46
+
47
+ &::after {
48
+ content: "";
49
+ display: block;
50
+ height: 0;
51
+ width: 100%;
52
+ // 16:9 = 56.25% = calc(9 / 16 * 100%)
53
+ padding-bottom: 56.25%;
54
+ }
55
+
56
+ > * {
57
+ position: absolute;
58
+ top: 0;
59
+ left: 0;
60
+ width: 100%;
61
+ height: 100%;
62
+ display: block;
63
+ }
64
+ }
65
+
66
+ .post-card__inner {
67
+ padding: 1.875rem 1.25rem 0.625rem;
68
+ color: $grey;
69
+ }
70
+
71
+ .post-card__header {
72
+ margin-bottom: 0.75rem;
73
+
74
+ .post-card__meta {
75
+ font-size: 0.875rem;
76
+ }
38
77
  }
@@ -0,0 +1,5 @@
1
+ .pagination {
2
+ display: flex;
3
+ justify-content: center;
4
+ margin: 1.25rem auto;
5
+ }