Remove extensions from _includes to simplify naming
This commit is contained in:
parent
0ccaef5a96
commit
3bd495f1d4
35 changed files with 148 additions and 156 deletions
|
@ -1 +0,0 @@
|
||||||
{% capture absurl %}{{ site.url }}{{ site.baseurl }}{% endcapture %}
|
|
8
_includes/archive-list-single
Normal file
8
_includes/archive-list-single
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<article itemscope itemtype="http://schema.org/CreativeWork">
|
||||||
|
{% if post.link %}
|
||||||
|
<h2 class="link-post" itemprop="headline"><a href="{{ base_path }}{{ post.url }}">{% if post.id %}{{ post.title | markdownify | remove: "<p>" | remove: "</p>" }}{% else %}{{ post.title }}{% endif %}</a> <a href="{{ post.link }}" target="_blank"><i class="fa fa-link"></i></a></h2>
|
||||||
|
{% else %}
|
||||||
|
<h2 itemprop="headline"><a href="{{ base_path }}{{ post.url }}">{% if post.id %}{{ post.title | markdownify | remove: "<p>" | remove: "</p>" }}{% else %}{{ post.title }}{% endif %}</a></h2>
|
||||||
|
{% endif %}
|
||||||
|
{% if post.excerpt %}<p itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
|
||||||
|
</article>
|
|
@ -1,8 +0,0 @@
|
||||||
<article itemscope itemtype="http://schema.org/CreativeWork">
|
|
||||||
{% if post.link %}
|
|
||||||
<h2 class="link-post" itemprop="headline"><a href="{{ absurl }}{{ post.url }}">{% if post.id %}{{ post.title | markdownify | remove: "<p>" | remove: "</p>" }}{% else %}{{ post.title }}{% endif %}</a> <a href="{{ post.link }}" target="_blank"><i class="fa fa-link"></i></a></h2>
|
|
||||||
{% else %}
|
|
||||||
<h2 itemprop="headline"><a href="{{ absurl }}{{ post.url }}">{% if post.id %}{{ post.title | markdownify | remove: "<p>" | remove: "</p>" }}{% else %}{{ post.title }}{% endif %}</a></h2>
|
|
||||||
{% endif %}
|
|
||||||
{% if post.excerpt %}<p itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
|
|
||||||
</article>
|
|
|
@ -7,7 +7,7 @@
|
||||||
{% if author.avatar contains "http" %}
|
{% if author.avatar contains "http" %}
|
||||||
<img src="{{ author.avatar }}" class="author-avatar" alt="{{ author.name }} photo">
|
<img src="{{ author.avatar }}" class="author-avatar" alt="{{ author.name }} photo">
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{{ author.avatar | prepend: "/images/" | prepend: absurl }}" class="author-avatar" alt="{{ author.name }} photo">
|
<img src="{{ author.avatar | prepend: "/images/" | prepend: base_path }}" class="author-avatar" alt="{{ author.name }} photo">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<h3 class="author-name">{{ author.name }}</h3>
|
<h3 class="author-name">{{ author.name }}</h3>
|
1
_includes/base_path
Normal file
1
_includes/base_path
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{% capture base_path %}{{ site.url }}{{ site.baseurl }}{% endcapture %}
|
|
@ -5,7 +5,7 @@
|
||||||
{% for crumb in crumbs offset: 1 %}
|
{% for crumb in crumbs offset: 1 %}
|
||||||
{% if forloop.first %}
|
{% if forloop.first %}
|
||||||
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
||||||
<a href="{{ absurl }}/" itemprop="item"><span itemprop="name">{{ site.breadcrumb_home_label }}</span></a>
|
<a href="{{ base_path }}/" itemprop="item"><span itemprop="name">{{ site.breadcrumb_home_label }}</span></a>
|
||||||
<meta itemprop="position" content="{{ i }}" />
|
<meta itemprop="position" content="{{ i }}" />
|
||||||
</li>
|
</li>
|
||||||
<span class="sep">{{ site.breadcrumb_separator }}</span>
|
<span class="sep">{{ site.breadcrumb_separator }}</span>
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{% assign i = i | plus: 1 %}
|
{% assign i = i | plus: 1 %}
|
||||||
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
||||||
<a href="{{ absurl }}{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
|
<a href="{{ base_path }}{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
|
||||||
<meta itemprop="position" content="{{ i }}" />
|
<meta itemprop="position" content="{{ i }}" />
|
||||||
</li>
|
</li>
|
||||||
<span class="sep">{{ site.breadcrumb_separator }}</span>
|
<span class="sep">{{ site.breadcrumb_separator }}</span>
|
|
@ -1,4 +0,0 @@
|
||||||
{% capture feed_footer %}
|
|
||||||
<p><a href="{{ absurl }}{{ post.url }}" rel="nofollow">{{ post.title }}</a> was originally published by {{ site.owner.name }} on <a href="{{ site.url }}" rel="nofollow">{{ site.title }}</a></p>
|
|
||||||
{% endcapture %}
|
|
||||||
{{ feed_footer | markdownify | xml_escape }}
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% include absolute-url.liquid %}
|
{% include base_path %}
|
||||||
|
|
||||||
{% if include.id %}
|
{% if include.id %}
|
||||||
{% assign gallery = page.[include.id] %}
|
{% assign gallery = page.[include.id] %}
|
||||||
|
@ -23,14 +23,14 @@
|
||||||
{% if img.url contains "http" %}
|
{% if img.url contains "http" %}
|
||||||
"{{ img.url }}"
|
"{{ img.url }}"
|
||||||
{% else %}
|
{% else %}
|
||||||
"{{ img.url | prepend: "/images/" | prepend: absurl }}"
|
"{{ img.url | prepend: "/images/" | prepend: base_path }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
>
|
>
|
||||||
<img src=
|
<img src=
|
||||||
{% if img.image_path contains "http" %}
|
{% if img.image_path contains "http" %}
|
||||||
"{{ img.image_path }}"
|
"{{ img.image_path }}"
|
||||||
{% else %}
|
{% else %}
|
||||||
"{{ img.image_path | prepend: "/images/" | prepend: absurl }}"
|
"{{ img.image_path | prepend: "/images/" | prepend: base_path }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
|
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
|
||||||
</a>
|
</a>
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
{% if img.image_path contains "http" %}
|
{% if img.image_path contains "http" %}
|
||||||
"{{ img.image_path }}"
|
"{{ img.image_path }}"
|
||||||
{% else %}
|
{% else %}
|
||||||
"{{ img.image_path | prepend: "/images/" | prepend: absurl }}"
|
"{{ img.image_path | prepend: "/images/" | prepend: base_path }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
|
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
30
_includes/head
Normal file
30
_includes/head
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
|
{% include seo %}
|
||||||
|
|
||||||
|
<link href="{{ base_path }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
|
||||||
|
|
||||||
|
<!-- http://t.co/dKP3o1e -->
|
||||||
|
<meta name="HandheldFriendly" content="True">
|
||||||
|
<meta name="MobileOptimized" content="320">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
|
<!-- For all browsers -->
|
||||||
|
<link rel="stylesheet" href="{{ base_path }}/assets/css/main.css">
|
||||||
|
|
||||||
|
<meta http-equiv="cleartype" content="on">
|
||||||
|
|
||||||
|
<!-- HTML5 Shiv and Media Query Support -->
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="{{ base_path }}/assets/js/vendor/html5shiv.min.js"></script>
|
||||||
|
<script src="{{ base_path }}/assets/js/vendor/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Modernizr -->
|
||||||
|
<script src="{{ base_path }}/assets/js/vendor/modernizr-2.7.1.custom.min.js"></script>
|
||||||
|
|
||||||
|
<link href="//fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700%7CPT+Serif:400,700,400italic" rel="stylesheet" type="text/css">
|
||||||
|
|
||||||
|
<!-- Icons -->
|
||||||
|
<link rel="shortcut icon" href="{{ base_path }}/favicon.ico">
|
||||||
|
<link rel="shortcut icon" href="{{ base_path }}/favicon.png">
|
|
@ -1,30 +0,0 @@
|
||||||
<meta charset="utf-8">
|
|
||||||
|
|
||||||
{% include seo.html %}
|
|
||||||
|
|
||||||
<link href="{{ absurl }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
|
|
||||||
|
|
||||||
<!-- http://t.co/dKP3o1e -->
|
|
||||||
<meta name="HandheldFriendly" content="True">
|
|
||||||
<meta name="MobileOptimized" content="320">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
|
|
||||||
<!-- For all browsers -->
|
|
||||||
<link rel="stylesheet" href="{{ absurl }}/assets/css/main.css">
|
|
||||||
|
|
||||||
<meta http-equiv="cleartype" content="on">
|
|
||||||
|
|
||||||
<!-- HTML5 Shiv and Media Query Support -->
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="{{ absurl }}/assets/js/vendor/html5shiv.min.js"></script>
|
|
||||||
<script src="{{ absurl }}/assets/js/vendor/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
|
|
||||||
<!-- Modernizr -->
|
|
||||||
<script src="{{ absurl }}/assets/js/vendor/modernizr-2.7.1.custom.min.js"></script>
|
|
||||||
|
|
||||||
<link href="//fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700%7CPT+Serif:400,700,400italic" rel="stylesheet" type="text/css">
|
|
||||||
|
|
||||||
<!-- Icons -->
|
|
||||||
<link rel="shortcut icon" href="{{ absurl }}/favicon.ico">
|
|
||||||
<link rel="shortcut icon" href="{{ absurl }}/favicon.png">
|
|
19
_includes/navigation
Normal file
19
_includes/navigation
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<div class="navigation-wrapper">
|
||||||
|
<div class="site-name">
|
||||||
|
<a href="{{ base_path }}/">{{ site.title }}</a>
|
||||||
|
</div><!-- /.site-name -->
|
||||||
|
<div class="top-navigation">
|
||||||
|
<nav id="site-nav" class="nav">
|
||||||
|
<ul>
|
||||||
|
{% for link in site.data.navigation %}
|
||||||
|
{% if link.url contains 'http' %}
|
||||||
|
{% assign domain = '' %}
|
||||||
|
{% else %}
|
||||||
|
{% assign domain = base_path %}
|
||||||
|
{% endif %}
|
||||||
|
<li><a href="{{ domain }}{{ link.url }}" {% if link.url contains 'http' %}target="_blank"{% endif %}>{{ link.title }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</div><!-- /.top-navigation -->
|
||||||
|
</div><!-- /.navigation-wrapper -->
|
|
@ -1,19 +0,0 @@
|
||||||
<div class="navigation-wrapper">
|
|
||||||
<div class="site-name">
|
|
||||||
<a href="{{ absurl }}/">{{ site.title }}</a>
|
|
||||||
</div><!-- /.site-name -->
|
|
||||||
<div class="top-navigation">
|
|
||||||
<nav id="site-nav" class="nav">
|
|
||||||
<ul>
|
|
||||||
{% for link in site.data.navigation %}
|
|
||||||
{% if link.url contains 'http' %}
|
|
||||||
{% assign domain = '' %}
|
|
||||||
{% else %}
|
|
||||||
{% assign domain = absurl %}
|
|
||||||
{% endif %}
|
|
||||||
<li><a href="{{ domain }}{{ link.url }}" {% if link.url contains 'http' %}target="_blank"{% endif %}>{{ link.title }}</a></li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div><!-- /.top-navigation -->
|
|
||||||
</div><!-- /.navigation-wrapper -->
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||||
<script>window.jQuery || document.write('<script src="{{ absurl }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
|
<script>window.jQuery || document.write('<script src="{{ base_path }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
|
||||||
<script src="{{ absurl }}/assets/js/scripts.min.js"></script>
|
<script src="{{ base_path }}/assets/js/scripts.min.js"></script>
|
||||||
|
|
||||||
{% if site.google_analytics %}
|
{% if site.google_analytics %}
|
||||||
<script>
|
<script>
|
||||||
|
@ -16,5 +16,5 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.comments %}
|
{% if page.comments %}
|
||||||
{% include disqus-comments.html %}
|
{% include disqus-comments %}
|
||||||
{% endif %}
|
{% endif %}
|
|
@ -58,11 +58,11 @@
|
||||||
|
|
||||||
{% if page.header.image %}
|
{% if page.header.image %}
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<meta name="twitter:image" content="{% if page.header.image contains "http" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: absurl }}{% endif %}">
|
<meta name="twitter:image" content="{% if page.header.image contains "http" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta name="twitter:card" content="summary">
|
<meta name="twitter:card" content="summary">
|
||||||
{% if site.logo %}
|
{% if site.logo %}
|
||||||
<meta name="twitter:image" content="{{ site.logo | prepend: "/images/" | prepend: absurl }}">
|
<meta name="twitter:image" content="{{ site.logo | prepend: "/images/" | prepend: base_path }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.header.image %}
|
{% if page.header.image %}
|
||||||
<meta property="og:image" content="{% if page.header.image contains "http" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: absurl }}{% endif %}">
|
<meta property="og:image" content="{% if page.header.image contains "http" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.date %}
|
{% if page.date %}
|
14
_includes/social-share
Normal file
14
_includes/social-share
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<div class="social-share">
|
||||||
|
<h4>Share on</h4>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="https://twitter.com/intent/tweet?text={{ base_path }}{{ page.url }}" class="twitter" title="Share on Twitter"><i class="fa fa-twitter"></i><span> Twitter</span></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="https://www.facebook.com/sharer/sharer.php?u={{ base_path }}{{ page.url }}" class="facebook" title="Share on Facebook"><i class="fa fa-facebook"></i><span> Facebook</span></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="https://plus.google.com/share?url={{ base_path }}{{ page.url }}" class="google-plus" title="Share on Google Plus"><i class="fa fa-google-plus"></i><span> Google+</span></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /.social-share -->
|
|
@ -1,14 +0,0 @@
|
||||||
<div class="social-share">
|
|
||||||
<h4>Share on</h4>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<a href="https://twitter.com/intent/tweet?text={{ absurl }}{{ page.url }}" class="twitter" title="Share on Twitter"><i class="fa fa-twitter"></i><span> Twitter</span></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="https://www.facebook.com/sharer/sharer.php?u={{ absurl }}{{ page.url }}" class="facebook" title="Share on Facebook"><i class="fa fa-facebook"></i><span> Facebook</span></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="https://plus.google.com/share?url={{ absurl }}{{ page.url }}" class="google-plus" title="Share on Google Plus"><i class="fa fa-google-plus"></i><span> Google+</span></a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div><!-- /.social-share -->
|
|
7
_includes/toc
Normal file
7
_includes/toc
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<section id="table-of-contents" class="toc">
|
||||||
|
<header><h3><i class="fa fa-{{ include.icon | default: 'book' }}"></i> {{ include.title | default: "Overview" }}</h3></header>
|
||||||
|
<div id="drawer" markdown="1">
|
||||||
|
* Auto generated table of contents
|
||||||
|
{:toc}
|
||||||
|
</div>
|
||||||
|
</section>
|
|
@ -1,9 +0,0 @@
|
||||||
<section id="table-of-contents" class="toc">
|
|
||||||
<header>
|
|
||||||
<h3><i class="fa fa-book"></i> Overview</h3>
|
|
||||||
</header>
|
|
||||||
<div id="drawer" markdown="1">
|
|
||||||
* Auto generated table of contents
|
|
||||||
{:toc}
|
|
||||||
</div>
|
|
||||||
</section><!-- /#table-of-contents -->
|
|
|
@ -2,18 +2,18 @@
|
||||||
layout: compress
|
layout: compress
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include absolute-url.liquid %}
|
{% include base_path %}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ site.locale | slice: 0,2 }}">
|
<html lang="{{ site.locale | slice: 0,2 }}">
|
||||||
<head>
|
<head>
|
||||||
{% include head.html %}
|
{% include head %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
{% include browser-upgrade.html %}
|
{% include browser-upgrade %}
|
||||||
{% include navigation.html %}
|
{% include navigation %}
|
||||||
|
|
||||||
{% if page.header.image %}
|
{% if page.header.image %}
|
||||||
<div class="image-wrap">
|
<div class="image-wrap">
|
||||||
|
@ -21,7 +21,7 @@ layout: compress
|
||||||
{% if page.header.image contains "http" %}
|
{% if page.header.image contains "http" %}
|
||||||
"{{ page.header.image }}"
|
"{{ page.header.image }}"
|
||||||
{% else %}
|
{% else %}
|
||||||
"{{ page.header.image | prepend: "/images/" | prepend: absurl }}"
|
"{{ page.header.image | prepend: "/images/" | prepend: base_path }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
alt="{{ page.title }}">
|
alt="{{ page.title }}">
|
||||||
{% if page.header.caption %}
|
{% if page.header.caption %}
|
||||||
|
@ -31,12 +31,12 @@ layout: compress
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.breadcrumbs %}
|
{% if site.breadcrumbs %}
|
||||||
{% include breadcrumbs.html %}
|
{% include breadcrumbs %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div id="main" role="main">
|
<div id="main" role="main">
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
{% if page.author_profile %}{% include author-profile.html %}{% endif %}
|
{% if page.author_profile %}{% include author-profile %}{% endif %}
|
||||||
{% if page.sidebar %}
|
{% if page.sidebar %}
|
||||||
{% for s in page.sidebar %}
|
{% for s in page.sidebar %}
|
||||||
{% if s.image %}
|
{% if s.image %}
|
||||||
|
@ -44,7 +44,7 @@ layout: compress
|
||||||
{% if s.image contains "http" %}
|
{% if s.image contains "http" %}
|
||||||
"{{ s.image }}"
|
"{{ s.image }}"
|
||||||
{% else %}
|
{% else %}
|
||||||
"{{ s.image | prepend: "/images/" | prepend: absurl }}"
|
"{{ s.image | prepend: "/images/" | prepend: base_path }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
alt="{% if s.image_alt %}{{ s.image_alt }}{% endif %}">
|
alt="{% if s.image_alt %}{{ s.image_alt }}{% endif %}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -59,11 +59,11 @@ layout: compress
|
||||||
|
|
||||||
<div class="footer-wrap">
|
<div class="footer-wrap">
|
||||||
<footer>
|
<footer>
|
||||||
{% include footer.html %}
|
{% include footer %}
|
||||||
</footer>
|
</footer>
|
||||||
</div><!-- /.footer-wrap -->
|
</div><!-- /.footer-wrap -->
|
||||||
|
|
||||||
{% include scripts.html %}
|
{% include scripts %}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include absolute-url.liquid %}
|
{% include base_path %}
|
||||||
|
|
||||||
<article class="post" itemscope itemtype="http://schema.org/CreativeWork">
|
<article class="post" itemscope itemtype="http://schema.org/CreativeWork">
|
||||||
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
|
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
|
||||||
|
@ -14,7 +14,7 @@ layout: default
|
||||||
{% if page.link %}
|
{% if page.link %}
|
||||||
<h1 itemprop="headline"><a href="{{ page.link }}">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</a></h1>
|
<h1 itemprop="headline"><a href="{{ page.link }}">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</a></h1>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1 itemprop="headline"><a href="{{ absurl }}{{ page.url }}" rel="bookmark">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</a></h1>
|
<h1 itemprop="headline"><a href="{{ base_path }}{{ page.url }}" rel="bookmark">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</a></h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ layout: default
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<footer role="contentinfo">
|
<footer role="contentinfo">
|
||||||
{% if page.share %}{% include social-share.html %}{% endif %}
|
{% if page.share %}{% include social-share %}{% endif %}
|
||||||
{% if page.date %}
|
{% if page.date %}
|
||||||
<p class="byline"><strong>{{ page.title }}</strong> was published on <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time>{% if page.modified %} and last modified on <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time>{% endif %}.</p>
|
<p class="byline"><strong>{{ page.title }}</strong> was published on <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time>{% if page.modified %} and last modified on <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time>{% endif %}.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -40,10 +40,10 @@ layout: default
|
||||||
{% comment %}<!-- only show related on a post page when not disabled -->{% endcomment %}
|
{% comment %}<!-- only show related on a post page when not disabled -->{% endcomment %}
|
||||||
{% if page.id and page.related and site.related_posts.size > 0 %}
|
{% if page.id and page.related and site.related_posts.size > 0 %}
|
||||||
<div class="related-articles">
|
<div class="related-articles">
|
||||||
<h4>You might also enjoy <small class="pull-right">(<a href="{{ absurl }}/posts/">View all posts</a>)</small></h4>
|
<h4>You might also enjoy <small class="pull-right">(<a href="{{ base_path }}/posts/">View all posts</a>)</small></h4>
|
||||||
<ul>
|
<ul>
|
||||||
{% for post in site.related_posts limit:3 %}
|
{% for post in site.related_posts limit:3 %}
|
||||||
<li><a href="{{ absurl }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
|
<li><a href="{{ base_path }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
|
@ -5,13 +5,13 @@ title: "Posts by Category"
|
||||||
author_profile: false
|
author_profile: false
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include absolute-url.liquid %}
|
{% include base_path %}
|
||||||
{% include group-by-array.html collection=site.posts field='categories' %}
|
{% include group-by-array collection=site.posts field='categories' %}
|
||||||
|
|
||||||
{% for category in group_names %}
|
{% for category in group_names %}
|
||||||
{% assign posts = group_items[forloop.index0] %}
|
{% assign posts = group_items[forloop.index0] %}
|
||||||
<h3>{{ category }}</h3>
|
<h3>{{ category }}</h3>
|
||||||
{% for post in posts %}
|
{% for post in posts %}
|
||||||
{% include archive-list-single.html %}
|
{% include archive-list-single %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -5,7 +5,7 @@ permalink: /collection-archive/
|
||||||
author_profile: false
|
author_profile: false
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include absolute-url.liquid %}
|
{% include base_path %}
|
||||||
{% capture written_label %}'None'{% endcapture %}
|
{% capture written_label %}'None'{% endcapture %}
|
||||||
|
|
||||||
{% for collection in site.collections %}
|
{% for collection in site.collections %}
|
||||||
|
@ -18,7 +18,7 @@ author_profile: false
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% for post in collection.docs %}
|
{% for post in collection.docs %}
|
||||||
{% unless collection.output == false or collection.label == 'posts' %}
|
{% unless collection.output == false or collection.label == 'posts' %}
|
||||||
{% include archive-list-single.html %}
|
{% include archive-list-single %}
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -7,10 +7,10 @@ header:
|
||||||
caption: "Photo credit: [**Unsplash**](https://unsplash.com)"
|
caption: "Photo credit: [**Unsplash**](https://unsplash.com)"
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include absolute-url.liquid %}
|
{% include base_path %}
|
||||||
|
|
||||||
### Recent Posts
|
### Recent Posts
|
||||||
|
|
||||||
{% for post in site.posts limit:5 %}
|
{% for post in site.posts limit:5 %}
|
||||||
{% include archive-list-single.html %}
|
{% include archive-list-single %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -5,7 +5,7 @@ permalink: /page-archive/
|
||||||
author_profile: false
|
author_profile: false
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include absolute-url.liquid %}
|
{% include base_path %}
|
||||||
{% for post in site.pages %}
|
{% for post in site.pages %}
|
||||||
{% include archive-list-single.html %}
|
{% include archive-list-single %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -4,13 +4,13 @@ title: "Portfolio"
|
||||||
permalink: /portfolio/
|
permalink: /portfolio/
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include absolute-url.liquid %}
|
{% include base_path %}
|
||||||
{% include group-by-array.html collection=site.portfolio field='categories' %}
|
{% include group-by-array collection=site.portfolio field='categories' %}
|
||||||
|
|
||||||
{% for category in group_names %}
|
{% for category in group_names %}
|
||||||
{% assign posts = group_items[forloop.index0] %}
|
{% assign posts = group_items[forloop.index0] %}
|
||||||
<h3>{{ category }}</h3>
|
<h3>{{ category }}</h3>
|
||||||
{% for post in posts %}
|
{% for post in posts %}
|
||||||
{% include archive-list-single.html %}
|
{% include archive-list-single %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -5,13 +5,13 @@ permalink: /recipes/
|
||||||
author_profile: false
|
author_profile: false
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include absolute-url.liquid %}
|
{% include base_path %}
|
||||||
{% include group-by-array.html collection=site.recipes field='categories' %}
|
{% include group-by-array collection=site.recipes field='categories' %}
|
||||||
|
|
||||||
{% for category in group_names %}
|
{% for category in group_names %}
|
||||||
{% assign posts = group_items[forloop.index0] %}
|
{% assign posts = group_items[forloop.index0] %}
|
||||||
<h3>{{ category }}</h3>
|
<h3>{{ category }}</h3>
|
||||||
{% for post in posts %}
|
{% for post in posts %}
|
||||||
{% include archive-list-single.html %}
|
{% include archive-list-single %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -5,18 +5,18 @@ permalink: /sitemap/
|
||||||
author_profile: false
|
author_profile: false
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include absolute-url.liquid %}
|
{% include base_path %}
|
||||||
|
|
||||||
A list of all the posts and pages found on the site. For you robots out there is an [XML version]({{ absurl }}/sitemap.xml) available for digesting as well.
|
A list of all the posts and pages found on the site. For you robots out there is an [XML version]({{ base_path }}/sitemap.xml) available for digesting as well.
|
||||||
|
|
||||||
<h3>Pages</h3>
|
<h3>Pages</h3>
|
||||||
{% for post in site.pages %}
|
{% for post in site.pages %}
|
||||||
{% include archive-list-single.html %}
|
{% include archive-list-single %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<h3>Posts</h3>
|
<h3>Posts</h3>
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
{% include archive-list-single.html %}
|
{% include archive-list-single %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% capture written_label %}'None'{% endcapture %}
|
{% capture written_label %}'None'{% endcapture %}
|
||||||
|
@ -31,7 +31,7 @@ A list of all the posts and pages found on the site. For you robots out there is
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% for post in collection.docs %}
|
{% for post in collection.docs %}
|
||||||
{% unless collection.output == false or collection.label == 'posts' %}
|
{% unless collection.output == false or collection.label == 'posts' %}
|
||||||
{% include archive-list-single.html %}
|
{% include archive-list-single %}
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -4,13 +4,13 @@ permalink: /tag-archive/
|
||||||
title: "Posts by Tags"
|
title: "Posts by Tags"
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include absolute-url.liquid %}
|
{% include base_path %}
|
||||||
{% include group-by-array.html collection=site.posts field='tags' %}
|
{% include group-by-array collection=site.posts field='tags' %}
|
||||||
|
|
||||||
{% for tag in group_names %}
|
{% for tag in group_names %}
|
||||||
{% assign posts = group_items[forloop.index0] %}
|
{% assign posts = group_items[forloop.index0] %}
|
||||||
<h3>{{ tag }}</h3>
|
<h3>{{ tag }}</h3>
|
||||||
{% for post in posts %}
|
{% for post in posts %}
|
||||||
{% include archive-list-single.html %}
|
{% include archive-list-single %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -7,7 +7,7 @@ share: true
|
||||||
comments: true
|
comments: true
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include toc.html %}
|
{% include toc %}
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
@ -58,13 +58,13 @@ How Minimal Mistakes is organized and what the various files are. All posts, lay
|
||||||
minimal-mistakes/
|
minimal-mistakes/
|
||||||
├── _includes/
|
├── _includes/
|
||||||
| ├── author-bio.html # bio stuff layout. pulls optional owner data from _config.yml
|
| ├── author-bio.html # bio stuff layout. pulls optional owner data from _config.yml
|
||||||
| ├── browser-upgrade.html # prompt to install a modern browser for < IE9
|
| ├── browser-upgrade # prompt to install a modern browser for < IE9
|
||||||
| ├── disqus-comments.html # Disqus comments script
|
| ├── disqus-comments # Disqus comments script
|
||||||
| ├── footer.html # site footer
|
| ├── footer # site footer
|
||||||
| ├── head.html # site head
|
| ├── head # site head
|
||||||
| ├── navigation.html # site top navigation
|
| ├── navigation # site top navigation
|
||||||
| ├── open-graph.html # Twitter Cards and Open Graph meta data
|
| ├── open-graph.html # Twitter Cards and Open Graph meta data
|
||||||
| └── scripts.html # site scripts
|
| └── scripts # site scripts
|
||||||
├── _layouts/
|
├── _layouts/
|
||||||
| ├── home.html # homepage layout
|
| ├── home.html # homepage layout
|
||||||
| ├── page.html # page layout
|
| ├── page.html # page layout
|
||||||
|
@ -296,7 +296,7 @@ Not sure if this only effects Kramdown or if it's an issue with Markdown in gene
|
||||||
|
|
||||||
### Social Sharing Links
|
### Social Sharing Links
|
||||||
|
|
||||||
Social sharing links for Twitter, Facebook, and Google+ are included on posts/pages by default. To hide them on specific posts or pages add `share: false` to the YAML Front Matter. If you'd like to use different social networks modify `_includes/social-share.html` to your liking. Icons are set using [Font Awesome](http://fontawesome.io).
|
Social sharing links for Twitter, Facebook, and Google+ are included on posts/pages by default. To hide them on specific posts or pages add `share: false` to the YAML Front Matter. If you'd like to use different social networks modify `_includes/social-share` to your liking. Icons are set using [Font Awesome](http://fontawesome.io).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ title: "Posts by Year"
|
||||||
author_profile: false
|
author_profile: false
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include absolute-url.liquid %}
|
{% include base_path %}
|
||||||
{% capture written_year %}'None'{% endcapture %}
|
{% capture written_year %}'None'{% endcapture %}
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
|
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
|
||||||
|
@ -13,5 +13,5 @@ author_profile: false
|
||||||
<h3>{{ year }}</h3>
|
<h3>{{ year }}</h3>
|
||||||
{% capture written_year %}{{ year }}{% endcapture %}
|
{% capture written_year %}{{ year }}{% endcapture %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include archive-list-single.html %}
|
{% include archive-list-single %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -4,15 +4,13 @@ tags:
|
||||||
- table of contents
|
- table of contents
|
||||||
---
|
---
|
||||||
|
|
||||||
<section id="table-of-contents" class="toc">
|
{% include toc title="Unique Title" icon="file-text" %}
|
||||||
<header>
|
|
||||||
<h3>Overview</h3>
|
Testing Kramdown auto-generated table of contents with unique title and icon assigned in the include like so:
|
||||||
</header>
|
|
||||||
<div id="drawer" markdown="1">
|
```liquid
|
||||||
* Auto generated table of contents
|
{% raw %}{% include toc title="Unique Title" icon="file-text" %}{% endraw %}
|
||||||
{:toc}
|
```
|
||||||
</div>
|
|
||||||
</section><!-- /#table-of-contents -->
|
|
||||||
|
|
||||||
## HTML Elements
|
## HTML Elements
|
||||||
|
|
||||||
|
@ -34,7 +32,7 @@ Below is just about everything you'll need to style in the theme. Check the sour
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, test link adipiscing elit. **This is strong**. Nullam dignissim convallis est. Quisque aliquam.
|
Lorem ipsum dolor sit amet, test link adipiscing elit. **This is strong**. Nullam dignissim convallis est. Quisque aliquam.
|
||||||
|
|
||||||
![Smithsonian Image]({{ site.url }}/images/3953273590_704e3899d5_m.jpg)
|
![Smithsonian Image]({{ site.url }}{{ site.baseurl }}/images/3953273590_704e3899d5_m.jpg)
|
||||||
{: .image-pull-right}
|
{: .image-pull-right}
|
||||||
|
|
||||||
*This is emphasized*. Donec faucibus. Nunc iaculis suscipit dui. 53 = 125. Water is H2O. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. The New York Times (That’s a citation). Underline.Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.
|
*This is emphasized*. Donec faucibus. Nunc iaculis suscipit dui. 53 = 125. Water is H2O. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. The New York Times (That’s a citation). Underline.Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.
|
||||||
|
|
Loading…
Reference in a new issue