-
Notifications
You must be signed in to change notification settings - Fork 78
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
Article image #83
base: master
Are you sure you want to change the base?
Article image #83
Conversation
Is this addition something you would consider including? It only shows the image when the Image: header is included in the article file. I would prefer not to have to override both templates with a complete copy of my own through THEME_TEMPLATES_OVERRIDES :) |
I like the idea overall but I didn't have the time yet to review the implementation and to think about possible edge cases. Most likely this will get merged eventually :) I'll try to return to this in the following week. |
No worries, take your time! |
ones really in the content
I'm sorry, life happened and this PR fell off my radar. Why did you add the last commit (43b5acb)? Why is it beneficial for you to duplicate article image manually at the top of the article body like you do here? Do you think that may be there should be max-height or min-width set on article image? Now it looks weird if image was not specifically cropped/resized to fit in blogroll: |
Hey, no worries :) I changed the way those article images are 'included' as they would not show up in the rss/atom feed for example. The way those feeds are generated, is pretty direct from the content, so I missed those in the previous situation. It is not ideal to have them duplicated, so I might change it anyway, but that will mean creating a template for feeds, I think? Adding a max-height and/or min-width sounds like a good idea, so tall images do not take over the page :) Do you have an idea how to easily include the article image in the feeds? That would solve the issue of the duplication. |
I've just looked it up and it appears that Pelican feeds are not templated but instead are generated as XML trees. It means we can't easily modify feed output. Simplest solution I see would be to override Another noteIt seems that there is no consensus among theme authors about which attribute to use for article image. You suggest I agree that I see the following options:
What do you think? |
Yeah, those XML trees were what I was talking about, so I quickly gave up on the thought of changing those :) Article images are indeed far from standardised; today I discovered https://github.com/peterdesmet/pelican-cover-image which does something pretty similar. I like 'our' short 'image:' header. Those two options are exactly what I was contemplating; currently, I chose the first option, so the I do not mind calling it |
I think I prefer 'Image' by the way, it is a clear, concise title. 'Cover' is slightly more ambiguous. Also, I have a big-ish list of articles with 'Image:' already ;) |
Support showing the image configured in an article in both the header of the article itself as on the index page, below the summary of the article.
An example can be found on my weblog.