diff --git a/_includes/back_to_home.html b/_includes/back_to_home.html
new file mode 100644
index 0000000..cd2168f
--- /dev/null
+++ b/_includes/back_to_home.html
@@ -0,0 +1 @@
+
+ {% include back_to_home.html %}
+
Posts by Tag
+
+
+
+ {% include find_tags.html %}
+
+ {% for tag in tags %}
+ {{ tag }}
+
+ {% for post in site.posts %}
+ {% if post.tags contains tag %}
+ -
+
+
+ {% endif %}
+ {% endfor %}
+
+ {% endfor %}
+
+
+
diff --git a/_sass/_base.scss b/_sass/_base.scss
index 914775c..3fdc287 100644
--- a/_sass/_base.scss
+++ b/_sass/_base.scss
@@ -183,8 +183,8 @@ pre {
* Wrapper
*/
.wrapper {
- max-width: -webkit-calc(980px - (#{$spacing-unit}*8));
- max-width: calc(980px - (#{$spacing-unit}*8));
+ max-width: -webkit-calc(#{$page-width} - (#{$spacing-unit}*8));
+ max-width: calc(#{$page-width} - (#{$spacing-unit}*8));
margin-right: auto;
margin-left: auto;
padding-right: $spacing-unit*4;
@@ -192,8 +192,8 @@ pre {
@extend %clearfix;
@include media-query($on-laptop) {
- max-width: -webkit-calc(980px - (#{$spacing-unit*4}));
- max-width: calc(980px - (#{$spacing-unit*4}));
+ max-width: -webkit-calc(#{$page-width} - (#{$spacing-unit*4}));
+ max-width: calc(#{$page-width} - (#{$spacing-unit*4}));
padding-right: $spacing-unit*2;
padding-left: $spacing-unit*2;
}
diff --git a/_sass/_related.scss b/_sass/_related.scss
new file mode 100644
index 0000000..a7b24da
--- /dev/null
+++ b/_sass/_related.scss
@@ -0,0 +1,70 @@
+.related {
+ max-width: -webkit-calc(980px - (#{$spacing-unit}*7));
+ max-width: calc(980px - (#{$spacing-unit}*7));
+ h3 {
+ margin: #{$spacing-unit} 0 #{$spacing-unit} calc(#{$spacing-unit}*4);
+ }
+}
+
+.related-flex {
+ margin: 0 calc(-#{$spacing-unit} / 2) 0 calc(-#{$spacing-unit} / 2);
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+}
+.related-post {
+ background: $at-white;
+ flex-basis: -webkit-calc(((#{$page-width} - #{$spacing-unit}*9)/2) - 8*#{$spacing-unit});
+ flex-basis: calc(((#{$page-width} - #{$spacing-unit}*9)/2) - 8*#{$spacing-unit});
+ flex-grow: 1;
+ display: inline-block;
+
+ margin: -webkit-calc(#{$spacing-unit} / 2);
+ margin: calc(#{$spacing-unit} / 2);
+
+ padding: -webkit-calc(#{$spacing-unit}*4) -webkit-calc(#{$spacing-unit}*4) -webkit-calc(#{$spacing-unit}*2) -webkit-calc(#{$spacing-unit}*4);
+ padding: calc(#{$spacing-unit}*4) calc(#{$spacing-unit}*4) calc(#{$spacing-unit}*2) calc(#{$spacing-unit}*4);
+ ul {
+ margin: 0;
+ li {
+ display: inline;
+ }
+ }
+}
+.tag {
+ margin-right: #{$spacing-unit};
+}
+
+/*
+
+.related {
+ max-width: -webkit-calc(980px - (#{$spacing-unit}*7));
+ max-width: calc(980px - (#{$spacing-unit}*7));
+ margin-top: #{$spacing-unit};
+}
+
+.related-flex {
+ margin: calc(-#{$spacing-unit} / 2);
+}
+.related-post {
+ background: $at-white;
+ max-width: -webkit-calc(((#{$page-width} - #{$spacing-unit}*9)/2) - 2*#{$spacing-unit});
+ max-width: calc(((#{$page-width} - #{$spacing-unit}*9)/2) - 2*#{$spacing-unit});
+
+ margin: -webkit-calc(#{$spacing-unit} / 2);
+ margin: calc(#{$spacing-unit} / 2);
+
+ padding: #{$spacing-unit};
+ float: left;
+ ul {
+ margin: 0;
+ li {
+ display: inline;
+ }
+ }
+}
+.tag {
+ margin-right: #{$spacing-unit};
+}
+
+ */
\ No newline at end of file
diff --git a/_sass/autotrader-blog-jekyll-theme.scss b/_sass/autotrader-blog-jekyll-theme.scss
index ada8bc0..43eaafe 100755
--- a/_sass/autotrader-blog-jekyll-theme.scss
+++ b/_sass/autotrader-blog-jekyll-theme.scss
@@ -32,6 +32,7 @@ $base-font-size: 16px;
$small-font-size: $base-font-size * 0.875;
$base-line-height: 1.5;
+$page-width: 980px;
$spacing-unit: 8px;
$text-color: #666666;
@@ -74,6 +75,7 @@ $on-laptop: 800px;
"layout",
"syntax-highlighting",
"header",
+ "related",
"table",
"social_share",
"callout"
diff --git a/tags.html b/tags.html
new file mode 100644
index 0000000..5d8cfb7
--- /dev/null
+++ b/tags.html
@@ -0,0 +1,3 @@
+---
+layout: tags
+---
\ No newline at end of file