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

header images? #52

Open
JohnGriffiths opened this issue Jun 5, 2014 · 1 comment
Open

header images? #52

JohnGriffiths opened this issue Jun 5, 2014 · 1 comment

Comments

@JohnGriffiths
Copy link

Hi.

Thanks very much for the excellent port.

I'd like to use this theme and include an image header.

There's a handy overview of how to do this for octopress blogs here
http://blog.bigdinosaur.org/changing-octopresss-header/

Most of which seems to work because the sass component is, as I understand it, unchanged in the pelican port.

However I'm still finding it tricky to get the various options working here.

I was wondering if anyone has implemented or seen header images in a pelican+octopress-theme blog, which I could use for reference?

Ta.

@atodorov
Copy link
Contributor

atodorov commented May 5, 2016

@JohnGriffiths I've looked at the link you provided. Although in Octopress it is straight forward to include a header image this will not work for Pelican!

As far as I understand the SASS files are not taken into account in the Pelican port, maybe they are left overs. If you modify them then you need to parse them and create a CSS file which then gets used by the browser. We could use one of the Python bindings for libsass but them it needs to have all the context from Pelican as well (settings, article metadata, etc). And I bet this will fail once you decide to have a different header image for another article (because the CSS isn't per-article, it's global).

I can easily provide a patch to configure a background-image style on the

element though.
Depending on the size of you images the layout may or may not look appropriate.

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