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

homepage-blog picture/name of author #29

Closed
mikemccamon opened this issue Jul 13, 2019 · 5 comments
Closed

homepage-blog picture/name of author #29

mikemccamon opened this issue Jul 13, 2019 · 5 comments

Comments

@mikemccamon
Copy link

mikemccamon commented Jul 13, 2019

So for the article page we would have additional front matter

author: Harold Blankenship
author_title:
picture: /assets/harold.jpg
abstract: New blog post example content. Talk about using GitHub for the new website. More text to follow in a second here. Describe the functionality and the awesome CSS.

That way the article page has that data. Is there a way that the homepage-blog section could just pull that from "the most recent" _post and render it here? The abstract field would be the copy for home page. If author object is empty then we ignore the author-title and picture.

Crude layout design will be in Slack channel

image_from_ios

@scorchingoyster
Copy link
Owner

I thought it would be a pretty straightforward implementation, but after trying some things out and reading a lot of online community discussions—it seems that there isn't actually a good way to implement this without drawback.

surprisingly, "floating" the image to the bottom right while allowing the text to wrap around it isn't achievable without some hacky fix through javascript, and it's also limited by that the element won't be fluid and exact number of text lines will have to known so that the CSS/JS can account for it.

in short, CSS doesn't seem to have a good way to support this layout behavior at the moment.

I suggests moving the photo and the author information to top right or left instead. if you do prefer to keep it bottom left, we may be able to use one of the workarounds, but it will mean that there will be some significant limitations that come with it.

(details here: https://stackoverflow.com/a/499883)

@mikemccamon
Copy link
Author

mikemccamon commented Jul 16, 2019 via email

@scorchingoyster
Copy link
Owner

scorchingoyster commented Jul 16, 2019

I actually do agree that the bottom right option looks better, it's what I often do with print layout as well. but CSS is another beast.

will do the top right option then.

@scorchingoyster
Copy link
Owner

your sketch seemed like you wanted to make use of the blue border that the news list, so I just replicated the effect for this:

image

without the photo and/or the author row, the text paragraph would just display as-is.

@mikemccamon
Copy link
Author

Looks great!

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

No branches or pull requests

2 participants