-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance optimization: progressive images, inlining critical CSS, …
…async CSS, changed logo to SVG, minify HTML
- Loading branch information
Jan Czizikow
authored and
Jan Czizikow
committed
Dec 2, 2017
1 parent
186b3e7
commit 735b08e
Showing
81 changed files
with
525 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<a class="post-card" href="{{ post.url | relative_url }}" itemprop="blogPosts" itemscope="" itemtype="http://schema.org/BlogPosting"> | ||
{% if post.featured-img %} | ||
<div class="post-card__thumb"> | ||
<img | ||
src="/assets/img/posts/{{post.featured-img}}_placehold.jpg", | ||
data-srcset="/assets/img/posts/{{post.featured-img}}_thumb.jpg, /assets/img/posts/{{post.featured-img}}[email protected] 2x" | ||
class="lazyload blur-up" | ||
alt="{{post.title}}" | ||
/> | ||
<noscript><img src="/assets/img/posts/{{post.featured-img}}_thumb.jpg" alt="{{ post.title }}"></noscript> | ||
</div> | ||
{% else %} | ||
<figure class="post-card__thumb"> | ||
<!-- <img src="./assets/img/shane-rounce-205187.jpg" alt="{{post.title}}"/> --> | ||
</figure> | ||
{% endif %} | ||
<div class="post-card__inner"> | ||
<div class="post-card__header"> | ||
<h2>{{ post.title | strip_html | truncate: 50 }}</h2> | ||
{% assign date_format = site.sleek.date_format | default: "%b %-d, %Y" %} | ||
<span class="post-card__meta"> | ||
<time>{{ post.date | date: date_format }}</time> | ||
</span> | ||
</div> | ||
{% if post.summary %} | ||
<p>{{ post.summary | strip_html | truncatewords:20 }}</p> | ||
{% else %} | ||
<p>{{ post.content | strip_html | truncatewords: 20 }}</p> | ||
{% endif %} | ||
</div> | ||
</a> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_tag_manager }}"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
|
||
gtag('config', '{{ site.google_analytics }}'); | ||
gtag('config', '{{ site.google_tag_manager }}'); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
<header class="header" itemscope itemtype="http://schema.org/SiteNavigationElement" aria-label="Main navigation"> | ||
<div class="container"> | ||
<div class="header__inner"> | ||
<a class="header__logo" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a> | ||
<a class="header__logo" href="{{ '/' | relative_url }}"> | ||
<div class="header__logo--container"> | ||
{% include logo.svg %} | ||
</div> | ||
</a> | ||
<nav class="header__links"> | ||
<a href="/about" itemprop="url"><span itemprop="name">About</span></a> | ||
<a href="/contact" itemprop="url"><span itemprop="name">Contact</span></a> | ||
{% if page_paths %} | ||
{% for path in page_paths %} | ||
{% assign my_page = site.pages | where: "path", path | first %} | ||
{% if my_page.title %} | ||
{% if my_page.title contains "404" %} | ||
{% else %} | ||
<a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a> | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
<a href="{{ '/about' | relative_url }}" itemprop="url"><span itemprop="name">About</span></a> | ||
<a href="{{ '/contact' | relative_url }}" itemprop="url"><span itemprop="name">Contact</span></a> | ||
</nav> | ||
<div class="header__toggle"> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
</div> | ||
</div> | ||
</div> | ||
</header> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<nav class="pagination"> | ||
<a href="#" class="pagination__item">1</a> | ||
</nav> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.