From 89da25e54fc2efa339e947abcac89131e3e8f16c Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Tue, 25 Oct 2016 11:40:02 -0400 Subject: [PATCH] updating blog code I updated the blog code with the changes that were made for the Mackinac Bridge blog. --- archive.php | 19 +++++++++---------- home.php | 50 ++++++++++++++++++++++++------------------------- scss/_blog.scss | 38 ++++++++++++++++++++++++++++--------- single.php | 17 ++++------------- 4 files changed, 66 insertions(+), 58 deletions(-) diff --git a/archive.php b/archive.php index b002abd..f0d80dd 100644 --- a/archive.php +++ b/archive.php @@ -11,26 +11,25 @@ ID); ?>
-
-

-
- ID), "full"); - echo ''; - echo '
'; + $thumbnail = get_the_post_thumbnail($post->ID, 'blog-feed-front'); ?> +
+ +
+ '; } else { echo '
'; } ?>
> +

Posted on
- -
- +
+
diff --git a/home.php b/home.php index baf1444..d25faa5 100644 --- a/home.php +++ b/home.php @@ -3,52 +3,50 @@ - -
-
+
ID); ?>
- -
-

-
ID), "full"); - echo ''; - echo '
'; + $thumbnail = get_the_post_thumbnail($post->ID, 'blog-feed-front'); ?> +
+ +
+ '; } else { echo '
'; } ?>
> +

Posted on
- -
- + +
- - - -
-

-
- + + + + +
+

- + +
- + +
+ diff --git a/scss/_blog.scss b/scss/_blog.scss index e6e8bce..a961e29 100644 --- a/scss/_blog.scss +++ b/scss/_blog.scss @@ -23,9 +23,14 @@ input[type="submit"].blogbutton { color: white; } } +#blog-posts-over{ + .search_result_context{ + margin-bottom: 5px; + } +} #blog-posts-over article { - padding-top: 10px; - margin-bottom: 15px; +// padding-top: 10px; +// margin-bottom: 15px; display: inline-block; width: 100%; z-index: 0; @@ -37,7 +42,7 @@ input[type="submit"].blogbutton { margin-top: 3px; } p { - padding-bottom: 15px; +// padding-bottom: 15px; } a.read-more { border: 2px solid $white; @@ -48,27 +53,41 @@ input[type="submit"].blogbutton { text-transform: uppercase; &:hover { background: $white; - border: 2px solid $teal; + border: 2px solid $blue; color: $dark-tan; } } .entry-header { - margin-bottom: 10px; + margin-bottom: 15px; .entry-title { margin-bottom: 0; } .meta.date { - font-size: 13px; font-weight: bold; + font-size: 13px; +// font-weight: bold; } } - h2.entry-title{ - font-size: rem-calc(32); + h1.entry-title{ + line-height: 1.2; + font-size: rem-calc(38); } .single-title{ + & a{ + text-decoration: none; + } padding-bottom: 15px; } } +article .entry-header .featured-image-wrap{ + margin-bottom: 25px; +} +.blog-excerpt-date{ + font-size: 12px; + margin-bottom: 10px; + color: grey; + +} /*#searchform div input &[type="text"] { width: 95%; }*/ @@ -78,7 +97,7 @@ input[type="submit"].blogbutton { font-size: 12px; } #blog-posts-over > div { - margin: 25px 0; + margin: 25px 0 50px 0; } #blog-side-info { #searchform { @@ -128,3 +147,4 @@ input[type="submit"].blogbutton { #addthis_wrapper{ float: right; } + diff --git a/single.php b/single.php index b2ff43d..ef8d645 100644 --- a/single.php +++ b/single.php @@ -16,7 +16,7 @@

- + Posted on @@ -29,20 +29,11 @@ -
+
-
- -
- -
- - - - -
+
- + \ No newline at end of file -- 2.17.1