Skip to content

Commit

Permalink
Merge pull request #65 from thenewinquiry/0.7.2
Browse files Browse the repository at this point in the history
#63 Show blog titles like categories for the homepage
  • Loading branch information
misfist committed May 3, 2017
2 parents 4669fe0 + b0fcfe7 commit 58ede74
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion css/style.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/style.min.css.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Theme URI: https://github.com/misfist/tni-theme
Tags: Blog, Magazine
Requires at least: 4.5.0
Tested up to: 4.7.4
Version: 0.7.1
Version: 0.7.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -13,6 +13,9 @@ Custom theme for The New Inquiry, based on Gridbox theme.

== Changelog ==

== 0.7.2 May 1, 2017 ==
* #63 Show blog post titles on home page

== 0.7.1 April 30, 2017 ==
* #63 Include `blogs` post type in home query

Expand Down
1 change: 1 addition & 0 deletions src/sass/_posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ article.blogs {
.type-post,
.type-blogs {
.entry-meta {
font-size: 0.875rem;
margin: .25em 0 0em 0;
}
}
Expand Down
6 changes: 4 additions & 2 deletions src/sass/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@ h1.entry-title {
font-family: $font__serif;
}

.post-wrapper .type-post {
.post-wrapper .type-post,
.post-wrapper .type-blogs {
.entry-excerpt {
font-family: $font__sans-serif;
font-weight: 300;
margin-top: 0.5em;
font-size: 1rem;
}
.entry-title {
font-size: 1.5rem;
font-size: 1.25rem;
line-height: 1.4;
margin-bottom: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Description: Custom theme for The New Inquiry.
Author: Pea
Author URI: https://github.com/misfist
Template: gridbox
Version: 0.7.1
Version: 0.7.2
Text Domain: tni
*/
6 changes: 5 additions & 1 deletion template-parts/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@

<?php if( true === $theme_options['meta_category'] && !is_category() ) : ?>
<div class="entry-meta">
<?php echo gridbox_meta_category(); ?>
<?php if( 'blogs' == get_post_type() ) : ?>
<span class="meta-category"><?php echo get_the_term_list( $post->ID, 'blog-types', '', ', ' ); ?></span>
<?php else : ?>
<?php echo gridbox_meta_category(); ?>
<?php endif; ?>
</div>
<?php endif; ?>

Expand Down

0 comments on commit 58ede74

Please sign in to comment.