-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Tidy <head> for pages #48350
Tidy <head> for pages #48350
Conversation
@@ -52,27 +49,44 @@ | |||
{{ end }} | |||
} | |||
</script> | |||
<meta name="theme-color" content="#326ce5"> |
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.
Moved to layouts/partials/hooks/head-end.html
layouts/partials/head.html
Outdated
{{- template "_internal/opengraph.html" . -}} | ||
{{- template "_internal/schema.html" . -}} | ||
{{- template "_internal/twitter_cards.html" . -}} |
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.
Removing these internal template calls as we are customizing them later in the same layout file.
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
e776fce
to
6ad472b
Compare
6ad472b
to
3b062b7
Compare
3b062b7
to
1b00c5a
Compare
1b00c5a
to
328cc60
Compare
328cc60
to
82e20bd
Compare
{{ partial "hooks/head-end.html" . }} | ||
{{/* To comply with GDPR, cookie consent scripts places in head-end must execute before Google Analytics is enabled */ -}} | ||
{{ if hugo.IsProduction -}} | ||
{{ template "_internal/google_analytics.html" . }} |
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.
This is what's changed from upstream Docsy
82e20bd
to
7d99045
Compare
- Align closely to Docsy theme - Remove duplicated Twitter and Open Graph metadata - Render the Open Graph image through Hugo Pipes - Move the theme color to the head-end hook
7d99045
to
ee50a91
Compare
I did notice that the Open Graph image link was missing, so I added that back in. |
thanks @sftim 👍 |
LGTM label has been added. Git tree hash: 5d6ae2d9bd88e9a7466e25ed40eefc8022121373
|
@salaxander @katcosgrove @tengqm happy to see this merge? |
Yeah, no issue here. Thanks! /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: katcosgrove The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@sftim Hi, Could you please check it? Deploy preview of your PR: https://deploy-preview-48350--kubernetes-io-main-staging.netlify.app/docs/home/ |
Hi @Shubham82 Is there a page you'd like me to look at? |
@Shubham82 thanks so much for commenting again, it certainly does look like an issue on the live site now, but that wasn't the case for the first preview of Tim's changes. @sftim its looks like now every page seems to load the left navigation bar and leave the rest of the space to the right of navigation blank, causing users to scroll down to see content. i didn't see this in the first preview of your changes, but perhaps the second set of changes you pushed has caused this? please check https://kubernetes.io/docs/setup/, or https://kubernetes.io/docs/tutorials/ as examples |
@sftim, not a specific page(attached it for reference), when we click on documentation in k8s docs (website), it shows like in the above screenshot. |
@natalisucks, Anytime |
head-end
theme hookHere's a preview
Helps with issue #41171
/area web-development