-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
docs: example to show separate logo file on subpages #969
Comments
Apologies if this should have gone in discussions, I just noticed that. |
Hi, the documentation lacks an example for this. Try this
|
Perfect, makes sense and works. Thank you! |
I'll add documentation for this. |
Unfortunately, while that fix worked locally, on push to GitHub the rendered site there shows logos as broken now, even on the home page. |
Looks like in GitHub pages it renders like this, with the repo prepended to path:
Locally I get this:
I don't understand why the path difference, and maybe that's beyond the scope of the theme. Or is there a way to code this in the theme so that it works right on GitHub? |
Both is correct behavior for the code I've provided under the assumption that the image belongs to your Hugo project and resides in your |
I overrode the partial as documented here. I just copied the existing partial in the Relearn doc site to my
layouts/partials/
and substituted an image tag for the svg:It shows up nicely on the home page, but is a broken link on all of the others. How do I get it to show up on all of the other pages?
The text was updated successfully, but these errors were encountered: