DRY up layouts by creating a default
This commit is contained in:
+17
-57
@@ -1,61 +1,21 @@
|
||||
{% capture absurl %}{{ site.url }}{{ site.baseurl }}{% endcapture %}
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
|
||||
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
|
||||
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]-->
|
||||
<head>
|
||||
{% include head.html %}
|
||||
</head>
|
||||
|
||||
<body class="page">
|
||||
|
||||
{% include browser-upgrade.html %}
|
||||
|
||||
{% include navigation.html %}
|
||||
|
||||
{% if page.image.feature %}
|
||||
<div class="image-wrap">
|
||||
<img src=
|
||||
{% if page.image.feature contains 'http' %}
|
||||
"{{ page.image.feature }}"
|
||||
{% else %}
|
||||
"{{ page.image.feature | prepend: "/images/" | prepend: absurl }}"
|
||||
<article class="page">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<div class="article-wrap">
|
||||
{{ content }}
|
||||
{% if page.share != false %}
|
||||
<hr />
|
||||
{% include social-share.html %}
|
||||
{% endif %}
|
||||
alt="{{ page.title }} feature image">
|
||||
{% if page.image.credit %}
|
||||
<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>
|
||||
</div><!-- /.article-wrap -->
|
||||
{% if site.owner.disqus-shortname and page.comments == true %}
|
||||
<section id="disqus_thread"></section><!-- /#disqus_thread -->
|
||||
{% endif %}
|
||||
</div><!-- /.image-wrap -->
|
||||
{% endif %}
|
||||
</article>
|
||||
|
||||
<div id="main" role="main">
|
||||
<div class="article-author-side">
|
||||
{% include author-bio.html %}
|
||||
</div>
|
||||
<article class="page">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<div class="article-wrap">
|
||||
{{ content }}
|
||||
{% if page.share != false %}
|
||||
<hr />
|
||||
{% include social-share.html %}
|
||||
{% endif %}
|
||||
</div><!-- /.article-wrap -->
|
||||
{% if site.owner.disqus-shortname and page.comments == true %}
|
||||
<section id="disqus_thread"></section><!-- /#disqus_thread -->
|
||||
{% endif %}
|
||||
</article>
|
||||
</div><!-- /#index -->
|
||||
|
||||
<div class="footer-wrap">
|
||||
<footer>
|
||||
{% include footer.html %}
|
||||
</footer>
|
||||
</div><!-- /.footer-wrap -->
|
||||
|
||||
{% include scripts.html %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{% if site.owner.disqus-shortname and page.comments == true %}
|
||||
<section id="disqus_thread"></section><!-- /#disqus_thread -->
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user