Skip to content
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 featured event #663

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

add featured event #663

wants to merge 3 commits into from

Conversation

carlosmalt
Copy link
Member

@carlosmalt carlosmalt commented Sep 19, 2024

Some blog entries can be "featured" under the intro part of the home page by setting featured: true in the blog entry. Events can also have that setting but are a different page type and I found myself unable to get them mixed with featured blog entries. I was only able to come up with a separate section for "Featured Events". This section is now between the intro section and the "Featured" section and lists at most one event. Hopefully this will make the current event more visible from the home page. Please review.

Copy link

netlify bot commented Sep 19, 2024

👷 Deploy Preview for ucsc-ospo processing.

Name Link
🔨 Latest commit 515abe6
🔍 Latest deploy log https://app.netlify.com/sites/ucsc-ospo/deploys/66ecd372cfcdb0000843eac5

@emmet0r
Copy link
Member

emmet0r commented Sep 19, 2024

Looks good to me - thanks for experimenting with this! My only q is whether it's possible to have the preview of the image be centered? (It seems like it's happening for all the featured blog posts so should be possible? But I can't immediately see from your edits nor the original featured.md file where this would be toggled/specified 🤔)

@carlosmalt
Copy link
Member Author

possible to have the preview of the image be centered?

The focal_point of the event was set to Right while the blog posts were set to "". Resetting it in the event did the trick. Here are the other possible values:

Focal point options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight

From what I can tell, Smart and Center have the same effect as "".

@carlosmalt
Copy link
Member Author

The Featured section is now called Featured Posts. It displays up to three of the most recent posts that contain featured: true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants