Skip to content

Commit

Permalink
Merge branch '0.5-dev' into megabulk-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
benlk authored May 22, 2019
2 parents c9c93f5 + 1f4cecf commit d8a52fe
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 10 deletions.
12 changes: 10 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@ though this project doesn't succeed in adhering to [Semantic Versioning](https:/

## [Largo 0.6.4](https://github.com/INN/largo/compare/v0.6.3...v0.6.4)

### Feature Updates
- Added `largo_category_after_primary_featured_post` hook between primary and secondary featured posts on the `category.php` template, `largo_series_before_stories` hook before stories on the `series-landing.php` template, and the `largo_archive_before_stories` hook before stories on the `archive.php` template. These new hooks allow you to add content to these templates in specific spots if needed. [Pull request #1703](https://github.com/INN/largo/pull/1703).
### Developer-facing improvements

- Adds `largo_category_after_primary_featured_post` hook between primary and secondary featured posts on the `category.php` template. [Pull request #1703](https://github.com/INN/largo/pull/1703) by [@megabulk](https://github.com/megabulk).
- Adds `largo_series_before_stories` hook before stories on the `series-landing.php` template. [Pull request #1703](https://github.com/INN/largo/pull/1703) by [@megabulk](https://github.com/megabulk).
- Adds `largo_archive_before_stories` hook before stories on the `archive.php` template. [Pull request #1703](https://github.com/INN/largo/pull/1703) by [@megabulk](https://github.com/megabulk).

### Fixes and minor improvements

- Updates `largo_home_single_top` function to get `homepage_feature_term` and `top_story_term` values from slug instead of by name. If these prominence names were updated to anything else, `homepage_feature_term` and `top_story_term` would be false and fallback to `__('Homepage Featured', 'largo')`. [Pull request #1709](https://github.com/INN/largo/pull/1709) for [issue #1445](https://github.com/INN/largo/issues/1445).
- Removes separator `<span>` on search results page; puts the search result url on a new line instead of next to the date. Also adds a `overflow-wrap: breakword;` style to the search-result URL to make sure it doesn't overflow the result container. [Pull request #1710](https://github.com/INN/largo/pull/1710) for [issue #1509](https://github.com/INN/largo/issues/1509).

## [Largo 0.6.3](https://github.com/INN/largo/compare/v0.6.2...v0.6.3)

Expand Down
4 changes: 3 additions & 1 deletion css/editor-style.css

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion css/style.css

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion homepages/assets/css/single.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions homepages/homepage.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ function largo_home_single_top() {
$big_story = null;

// Cache the terms
$homepage_feature_term = get_term_by( 'name', __('Homepage Featured', 'largo'), 'prominence' );
$top_story_term = get_term_by( 'name', __('Homepage Top Story', 'largo'), 'prominence' );
$homepage_feature_term = get_term_by( 'slug', 'homepage-featured', 'prominence' );
$top_story_term = get_term_by( 'slug', 'top-story', 'prominence' );

// Get the posts that are both in 'Homepage Featured' and 'Homepage Top Story'
$top_story_posts = get_posts(array(
Expand Down
2 changes: 2 additions & 0 deletions less/inc/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
.date-link a,
.date-link {
color: @gray;
display: block;
overflow-wrap: break-word;
}
}
.search-results #content .form-search {
Expand Down
1 change: 0 additions & 1 deletion partials/content-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

<small class="date-link">
<span class="date"><?php largo_time(); ?></span>
<span class="sep">|</span>
<a href="<?php the_permalink(); ?>" title="<?php the_permalink(); ?>" rel=""><?php the_permalink(); ?></a>
</small>

Expand Down

0 comments on commit d8a52fe

Please sign in to comment.