Intial Commit
This commit is contained in:
17
_includes/footer.html
Normal file
17
_includes/footer.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<footer class="center">
|
||||
<div class="measure">
|
||||
<div class="left">
|
||||
<small>
|
||||
© {{ site.time | date:"%Y" }} {{ site.title }}
|
||||
</small>
|
||||
</div>
|
||||
{% if site.show_social_icons %}
|
||||
{% include social_links.html %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</footer>
|
||||
<script type="text/javascript">
|
||||
if ("serviceWorker" in navigator) {
|
||||
navigator.serviceWorker.register("{{ '/sw.js' | relative_url }}")
|
||||
}
|
||||
</script>
|
66
_includes/head.html
Normal file
66
_includes/head.html
Normal file
@@ -0,0 +1,66 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{% if page.title %}{{ page.title | strip_html }} – {% endif %}{{ site.title | strip_html }}</title>
|
||||
<link rel="dns-prefetch" href="//fonts.googleapis.com">
|
||||
<link rel="dns-prefetch" href="//fonts.gstatic.com">
|
||||
<link rel="dns-prefetch" href="//maxcdn.bootstrapcdn.com">
|
||||
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="{% if page.meta_description %}{{ page.meta_description | xml_escape }}{% elsif page.summary %}{{ page.summary | xml_escape }}{% else %}{{ site.description | xml_escape }}{% endif %}">
|
||||
{% if page.meta_robots %}<meta name="robots" content="{{ page.meta_robots }}">
|
||||
{% else %}<meta name="robots" content="all">{% endif %}
|
||||
<meta name="author" content="{{ site.author }}">
|
||||
{% if page.categories %}<meta name="keywords" content="{{ page.categories | join: ', ' }}">{% endif %}
|
||||
<link rel="canonical" href="{{ page.url | absolute_url }}">
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS Feed for {{ site.title }}" href="{{ "/feed.xml" | relative_url }}" />
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="{{ "/css/style.css" | relative_url }}?{{ site.time | date: "%Y%m%d%H%M" }}" type="text/css">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href='//fonts.googleapis.com/css?family=Merriweather:900,900italic,300,300italic' rel='stylesheet' type='text/css'>
|
||||
<link href='//fonts.googleapis.com/css?family=Lato:900,300' rel='stylesheet' type='text/css'>
|
||||
{% if site.show_social_icons or site.show_sharing_icons %}
|
||||
<link href="//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
|
||||
{% endif %}
|
||||
|
||||
<!-- Open Graph -->
|
||||
<!-- From: https://github.com/mmistakes/hpstr-jekyll-theme/blob/master/_includes/head.html -->
|
||||
<meta property="og:locale" content="{{ site.text.og_locale | default: "en_US" }}">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:title" content="{% if page.title %}{{ page.title | xml_escape }}{% else %}{{ site.title | xml_escape }}{% endif %}">
|
||||
<meta property="og:description" content="{% if page.description %}{{ page.description | xml_escape }}{% else %}{{ site.description | xml_escape }}{% endif %}">
|
||||
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
|
||||
<meta property="og:site_name" content="{{ site.title | xml_escape }}">
|
||||
{% if site.post_preview_image %}
|
||||
<meta property="og:image" content="{{ site.url }}/images/me.jpeg">
|
||||
{% endif %}
|
||||
|
||||
<!-- Twitter Card -->
|
||||
<meta name="twitter:card" content="summary" />
|
||||
{% if site.twitter_username %}
|
||||
<meta name="twitter:site" content="@{{ site.twitter_username }}" />
|
||||
<meta name="twitter:creator" content="@{{ site.twitter_username }}" />
|
||||
{% endif %}
|
||||
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />
|
||||
<meta name="twitter:description" content="{% if page.summary %}{{ page.summary }}{% else %}{{ site.description }}{% endif %}" />
|
||||
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}" />
|
||||
{% if site.post_preview_image %}
|
||||
<meta name="twitter:image" content="{{ site.url }}/images/me.jpeg" />
|
||||
{% endif %}
|
||||
|
||||
<!-- Icons -->
|
||||
<link rel="shortcut icon" href="{{ "/favicon.ico" | relative_url }}">
|
||||
|
||||
{% if site.google_analytics %}
|
||||
<script type="text/javascript">
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', '{{ site.google_analytics }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
{% endif %}
|
||||
</head>
|
11
_includes/header.html
Normal file
11
_includes/header.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<header class="site-header px2 px-responsive">
|
||||
<div class="mt2 wrap">
|
||||
<div class="measure">
|
||||
<a href="{{ "/" | relative_url }}" class="site-title">{{ site.title }}</a>
|
||||
<nav class="site-nav">
|
||||
{% include navigation.html %}
|
||||
</nav>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
15
_includes/navigation.html
Normal file
15
_includes/navigation.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% assign default_paths = site.pages | map: "path" %}
|
||||
{% assign page_paths = site.header_pages | default: default_paths %}
|
||||
|
||||
{% for path in page_paths %}
|
||||
|
||||
{% assign item = site.pages | where: "path", path | first %}
|
||||
|
||||
{% if item.title and page.title == item.title %}
|
||||
<a class="nav-active" href="{{ item.url | relative_url }}">{{ item.title }}</a>
|
||||
{% elsif item.title %}
|
||||
<a class="nav-link" href="{{ item.url | relative_url }}">{{ item.title }}</a>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endfor %}
|
23
_includes/pagination.html
Normal file
23
_includes/pagination.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% if paginator.total_pages != 1 %}
|
||||
<div class="pagination clearfix mb1 mt4">
|
||||
<div class="left">
|
||||
{% if paginator.previous_page %}
|
||||
{% if paginator.page == 2 %}
|
||||
<a class="pagination-item" href="{{ "/" | relative_url }}">« {{ site.text.pagination.newer | default: "Newer" }}</a>
|
||||
{% else %}
|
||||
<a class="pagination-item" href="{{ paginator.previous_page_path | relative_url }}">« {{ site.text.pagination.newer | default: "Newer" }}</a>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<span class="pagination-item disabled">« {{ site.text.pagination.newer | default: "Newer" }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="right">
|
||||
{% if paginator.next_page %}
|
||||
<a class="pagination-item" href="{{ paginator.next_page_path | relative_url }}">{{ site.text.pagination.older | default: "Older" }} »</a>
|
||||
{% else %}
|
||||
<span class="pagination-item disabled">{{ site.text.pagination.older | default: "Older" }} »</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="pagination-meta">Page {{ paginator.page }} of {{ paginator.total_pages }}</div>
|
||||
</div>
|
||||
{% endif %}
|
5
_includes/post_footer.html
Normal file
5
_includes/post_footer.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="py2 post-footer">
|
||||
<p>
|
||||
{{ site.text.share_buttons.text }}
|
||||
</p>
|
||||
</div>
|
41
_includes/share_buttons.html
Normal file
41
_includes/share_buttons.html
Normal file
@@ -0,0 +1,41 @@
|
||||
<div class="share-page">
|
||||
<div class="share-links">
|
||||
{{ site.text.share_buttons.text | default: "Share this post!" }}
|
||||
|
||||
{% if site.share_facebook %}
|
||||
<a class="fa fa-facebook" href="https://facebook.com/sharer.php?u={{ site.url | cgi_escape }}{{ page.url | cgi_escape }}" rel="nofollow" target="_blank" title="{{ site.text.share_buttons.facebook | default: "Share on Facebook" }}"></a>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share_twitter %}
|
||||
<a class="fa fa-twitter" href="https://twitter.com/intent/tweet?text={{ page.title | cgi_escape }}&url={{ site.url | cgi_escape }}{{ page.url | cgi_escape }}" rel="nofollow" target="_blank" title="{{ site.text.share_buttons.twitter | default: "Share on Twitter" }}"></a>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share_googleplus %}
|
||||
<a class="fa fa-google-plus" href="https://plus.google.com/share?url={{ site.url | cgi_escape }}{{ page.url | cgi_escape }}" rel="nofollow" target="_blank" title="{{ site.text.share_buttons.googleplus | default: "Share on Google+" }}"></a>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share_linkedin %}
|
||||
<a class="fa fa-linkedin" href="http://www.linkedin.com/shareArticle?url={{ site.url | cgi_escape }}{{ page.url | cgi_escape }}&title={{ page.title | cgi_escape }}" rel="nofollow" target="_blank" title="{{ site.text.share_buttons.linkedin | default: "Share on LinkedIn" }}"></a>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share_digg %}
|
||||
<a class="fa fa-digg" href="http://digg.com/submit?url={{ site.url | cgi_escape }}{{ page.url | cgi_escape }}&title={{ page.title | cgi_escape }}" rel="nofollow" target="_blank" title="{{ site.text.share_buttons.digg | default: "Share on Digg" }}"></a>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share_tumblr %}
|
||||
<a class="fa fa-tumblr" href="http://www.tumblr.com/share/link?url={{ site.url | cgi_escape }}{{ page.url | cgi_escape }}&name={{ page.title | cgi_escape }}" rel="nofollow" target="_blank" title="{{ site.text.share_buttons.tumblr | default: "Share on Tumblr" }}"></a>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share_reddit %}
|
||||
<a class="fa fa-reddit" href="http://reddit.com/submit?url={{ site.url | cgi_escape }}{{ page.url | cgi_escape }}&title={{ page.title | cgi_escape }}" rel="nofollow" target="_blank" title="{{ site.text.share_buttons.reddit | default: "Share on Reddit" }}"></a>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share_stumbleupon %}
|
||||
<a class="fa fa-stumbleupon" href="http://www.stumbleupon.com/submit?url={{ site.url | cgi_escape }}{{ page.url | cgi_escape }}&title={{ page.title | cgi_escape }}" rel="nofollow" target="_blank" title="{{ site.text.share_buttons.stumbleupon | default: "Share on StumbleUpon" }}"></a>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share_hackernews %}
|
||||
<a class="fa fa-hacker-news" onclick="parent.postMessage('submit','*')" href="https://news.ycombinator.com/submitlink?u={{ site.url | cgi_escape }}{{ page.url | cgi_escape }}&t={{ page.title | cgi_escape }}" rel="nofollow" target="_blank" title="{{ site.text.share_buttons.hackernews | default: "Share on Hacker News" }}"></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
16
_includes/social_links.html
Normal file
16
_includes/social_links.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<div class="social-icons right">
|
||||
{% if site.linkedin_username %}
|
||||
<a class="fa fa-linkedin" href="https://www.linkedin.com/in/{{ site.linkedin_username }}" target="_blank"></a>
|
||||
{% endif %}
|
||||
{% if site.github_username %}
|
||||
<a class="fa fa-github" href="https://github.com/{{ site.github_username }}" target="_blank"></a>
|
||||
{% endif %}
|
||||
{% if site.twitter_username %}
|
||||
<a class="fa fa-twitter" href="https://twitter.com/{{ site.twitter_username }}" target="_blank"></a>
|
||||
{% endif %}
|
||||
{% if site.email %}
|
||||
<a class="fa fa-envelope" href="mailto:{{ site.email }}"></a>
|
||||
{% endif %}
|
||||
<a class="fa fa-rss" href="{{ "/feed.xml" | relative_url }}" target="_blank"></a>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
Reference in New Issue
Block a user