Consolidate layouts

- Remove page.html
- Rename post-index.html ~> archive.html
This commit is contained in:
Michael Rose 2016-02-22 22:32:17 -05:00
parent 338d06673c
commit 75a913d179
8 changed files with 13 additions and 54 deletions

2
404.md
View file

@ -1,5 +1,5 @@
--- ---
layout: page layout: post
title: "Page Not Found" title: "Page Not Found"
excerpt: "Page not found. Your pixels are in another canvas." excerpt: "Page not found. Your pixels are in another canvas."
sitemap: false sitemap: false

View file

@ -1,23 +0,0 @@
---
layout: default
---
{% include absolute-url.liquid %}
<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>
{% if site.owner.disqus-shortname and page.comments == true %}
<section id="disqus_thread"></section><!-- /#disqus_thread -->
{% endif %}

View file

@ -5,19 +5,22 @@ layout: default
{% include absolute-url.liquid %} {% include absolute-url.liquid %}
<article class="post"> <article class="post">
<div class="headline-wrap"> <div class="article-wrap">
{% if page.link %} {% if page.link %}
<h1><a href="{{ page.link }}">{{ page.title }}</a></h1> <h1><a href="{{ page.link }}">{{ page.title }}</a></h1>
{% else %} {% else %}
<h1><a href="{{ absurl }}{{ page.url }}" rel="bookmark" title="{{ page.title }}">{{ page.title }}</a></h1> <h1><a href="{{ absurl }}{{ page.url }}" rel="bookmark" title="{{ page.title }}">{{ page.title }}</a></h1>
{% endif %} {% endif %}
</div><!--/ .headline-wrap -->
<div class="article-wrap">
{{ content }} {{ content }}
<hr /> <hr />
<footer role="contentinfo"> <footer role="contentinfo">
{% if page.share != false %}{% include social-share.html %}{% endif %} {% if page.share != false %}{% include social-share.html %}{% endif %}
{% 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 %}
</footer> </footer>
</div><!-- /.article-wrap --> </div><!-- /.article-wrap -->
@ -26,7 +29,8 @@ layout: default
{% endif %} {% endif %}
</article> </article>
{% if site.related_posts.size > 0 %} {% comment %}<!-- only show related on a post page -->{% endcomment %}
{% if page.id 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="{{ absurl }}/posts/">View all posts</a>)</small></h4>
<ul> <ul>

View file

@ -319,22 +319,6 @@ $button-size: 1.5rem;
height: auto; height: auto;
-ms-interpolation-mode: bicubic; -ms-interpolation-mode: bicubic;
} }
.headline-wrap {
position: absolute;
bottom: 25px;
@include prefix(12,1);
@media #{$small} {
left: 25%;
margin-left: 0;
}
@media #{$x-large} {
@include prefix(12,1);
}
h1, h2 {
color: $white;
@include text-shadow(0 1px 2px rgba(0,0,0,.25));
}
}
} }
/* Post byline */ /* Post byline */
@ -360,7 +344,6 @@ $button-size: 1.5rem;
@include prefix(12,2); @include prefix(12,2);
} }
} }
.author-name { .author-name {
margin-bottom: 0; margin-bottom: 0;
@media #{$small} { @media #{$small} {
@ -368,7 +351,6 @@ $button-size: 1.5rem;
margin-bottom: 10px; margin-bottom: 10px;
} }
} }
.author-bio { .author-bio {
font-size: 80%; font-size: 80%;
font-style: italic; font-style: italic;
@ -376,12 +358,10 @@ $button-size: 1.5rem;
margin-bottom: 20px; margin-bottom: 20px;
} }
} }
.author-avatar { .author-avatar {
max-width: 110px; max-width: 110px;
@include rounded(150px); @include rounded(150px);
} }
.author-social { .author-social {
margin-bottom: 5px; margin-bottom: 5px;
@include font-rem(14); @include font-rem(14);
@ -399,12 +379,10 @@ $button-size: 1.5rem;
margin-right: 5px; margin-right: 5px;
} }
} }
@media #{$small} { @media #{$small} {
display: block; display: block;
max-width: 125px; max-width: 125px;
} }
@media #{$large} { @media #{$large} {
.author-name, .author-name,
.author-avatar, .author-avatar,

View file

@ -1,5 +1,5 @@
--- ---
layout: page layout: post
title: About the Theme title: About the Theme
tags: [about, Jekyll, theme, responsive] tags: [about, Jekyll, theme, responsive]
modified: 2014-08-08T20:53:07.573882-04:00 modified: 2014-08-08T20:53:07.573882-04:00

View file

@ -1,5 +1,5 @@
--- ---
layout: post-index layout: archive
title: All Posts title: All Posts
excerpt: "A List of Posts" excerpt: "A List of Posts"
--- ---

View file

@ -1,5 +1,5 @@
--- ---
layout: page layout: post
title: Theme Setup title: Theme Setup
modified: 2016-01-19 modified: 2016-01-19
excerpt: "Instructions on how to install and customize the Jekyll theme Minimal Mistakes." excerpt: "Instructions on how to install and customize the Jekyll theme Minimal Mistakes."