-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 site_logo block for site logo customization #952
Conversation
Blocks in partials actually don't allow for overriding, see the latest discussion on the Gitter channel and the issue on added/removed support within Jinja. We would need to inline all partials that include blocks into the |
Oh well... Thanks for the info. Also, should I close the PR, or you still think that it's good idea to have the site_logo block? |
I checked the partials: those that contain blocks and would need to be inlined are:
I will need to think about this a little, but I think it should be worth. I will leave this PR open until I decided on how to proceed with this. |
Thinking about it a little more: this would require a new major release because of the template structure changing in a backward-incompatible way with the potential for breaking a lot of projects. Partials that were there are now inlined, so they cannot be overridden on a per-file basis. |
So this PR would allow for non-square logo's like described here ? Currently there is no way of allowing non-square logo's is there? |
Removed blocks from partials in a27372e. |
@sander76 see the comments above, overriding never worked for blocks in partials. However, you can target the site logo with CSS and set the width and height accordingly. |
Thanks. I'll do the css thingy then |
Allow custom block for the logo, which will allow manual adjustments for that area.
Example use case - fixing broken logo images like this: