-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Functionality: Show next upcoming episode #309
Add Functionality: Show next upcoming episode #309
Conversation
@mattstratton - Right now, this doesn't implement any changes to the grid view. I wasn't sure how best to handle this scenario for the grid view, as there's no real concept of "latest" there... One way could be to adjust the query in the grid view to also show the next upcoming episode, but it might not be as clear as it is in the row view. So, i'm curious on your thoughts on this one? Thx! |
Yeah, I suspect this feature would only work for the row layout anyway :) |
REFERENCE.md
Outdated
@@ -44,6 +44,7 @@ These should be set under the `[params]` section: | |||
| `site_theme` | No | The color scheme for the overall site. Currently the options are `orange` (default), `grey`, and `blue`. | "blue" | | |||
| `site_layout` | No | The layout for the home page. The options are `row` (default) or `grid`. | "grid" | | |||
| `enable_jumbo` | No | When using the `row` layout, will set a jumbotron at the top instead of the sidebar. | "true" | | |||
| `enable_show_next_episode` | No | When using the `row` layout, if there are episodes with the upcoming frontmatter set to true, then it will display the next episode on homepage. This halves the screen real estate of the latest episode section, which will then be displayed side by side. | "true" | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we could give this a more descriptive name, like show_next_upcoming
which makes it more clear that it is only for upcoming?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, I'll make that change
I took a screenshot of what it looks like when enabled (for reference) I think that we would want to do some styling on the "upcoming" episode; maybe draw a box around it with some other shading/bg color just to set it off? Another option is to have less info for the "next episode" and make it a row by itself, but not include any images, etc, but just like a row across that says like "Next episode! Awesome Tech with George Bluth on 7 Dec 2020!" or something? If we did some kind of hero type row like that (narrow in my mind) it would work on grid too. |
@mattstratton - So this would work? :) (The name of the episode is a link, of course) |
yes! that looks good. And should be a way to do it in grid view now too! |
You might want to rebase this branch since I just merged a couple things, one of which touches REFERENCE.MD. It's probably a clean merge anyway but if you feel like rebasing it wouldn't hurt. |
Signed-off-by: Chris Reddington <[email protected]>
Signed-off-by: Chris Reddington <[email protected]>
Signed-off-by: Chris Reddington <[email protected]>
Signed-off-by: Chris Reddington <[email protected]>
@mattstratton - Rebased, and committed. Also signed off the commits (thanks for the tip!) Believe this is now ready for review. |
Aha! it's a little trickier than that to edit the CSS files; you have to actually edit the SCSS files and re-compile them with Long story short, yes, editing them by hand will work, but the next time they are compiled your changes will get blown away. the good news is you really only need to edit the |
If the SCSS stuff is too tricky, let me know and I think I can checkout this branch/PR and make the changes for you! |
Since the colors are the same for all the themes, I'm just going to do the Taking me longer than I thought since the version of |
Signed-off-by: Matt Stratton <[email protected]>
Signed-off-by: Matt Stratton <[email protected]>
Hadn't spotted the scss in there, my bad - but good to know for future contributions :) |
ugh. need to do some updates for node, etc... |
Signed-off-by: Matt Stratton <[email protected]>
Signed-off-by: Matt Stratton <[email protected]>
okay, I think I got the build happy now! This looks clean and I'm going to merge it and cut a release. |
There is an opportunity to "half" the screen real estate of the Most Recent episode section, and also use it as an opportunity to showcase the next episode that is due to be released.
This PR implements that with some logic to check if -
If all 3 conditions are matched, then the row partial will split the top section into two, allowing to show the next upcoming episode.
Fixes #301