initial trial to custom header for sub-sites #196
initial trial to custom header for sub-sites #196
Conversation
Deploy preview for eclipsefdn-hugo-solstice-theme failed. Built with commit 68cf624 https://app.netlify.com/sites/eclipsefdn-hugo-solstice-theme/deploys/60524691bfe51000074a03da |
@@ -0,0 +1,11 @@ | |||
items: | |||
- | |||
page_url: '/subsite-1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flora8984461 to confirm, this new logo will be used on sub pages of that section right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, subsite-1, and its children, subsite-1/*/* ...
5e7262d
to
514ade5
Compare
layouts/partials/nav_toggle.html
Outdated
<img width="{{ $.Page.Params.logo_width | default $.Site.Params.logo_width | default "140"}}" class="logo-eclipse-default-mobile img-responsive" src="{{ . | absURL }}" alt="{{ $.Site.Title }}" /> | ||
{{ $currentPageLogo := . }} | ||
{{ $currentPageLogoTitle := $.Site.Title }} | ||
{{ $currentPageLogoLink := "" | absLangURL }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't double URL convert this (you call absLangURL later on as well). Might do something unexpected, remove it here and just leave it in the later line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be best to move these "fake" images in the examplesite/static folder. We don't need them on all our sites.
Signed-off-by: Yi Liu <yi.liu@eclipse-foundation.org>
Signed-off-by: Yi Liu <yi.liu@eclipse-foundation.org>
Signed-off-by: Yi Liu <yi.liu@eclipse-foundation.org>
Signed-off-by: Yi Liu <yi.liu@eclipse-foundation.org>
Signed-off-by: Yi Liu <yi.liu@eclipse-foundation.org>
Signed-off-by: Yi Liu <yi.liu@eclipse-foundation.org>
Signed-off-by: Yi Liu <yi.liu@eclipse-foundation.org>
5c85960
to
c700900
Compare
Updated. |
Fix #88
One example can be https://deploy-preview-196--eclipsefdn-hugo-solstice-theme.netlify.app/subsite-1/
You can assume it is a subsite with its independent logo and logo url.
Another example can be https://deploy-preview-196--eclipsefdn-hugo-solstice-theme.netlify.app/third-parent/
You can assume it's another subsite with another independent logo and logo url.
Signed-off-by: Yi Liu yi.liu@eclipse-foundation.org