-
Notifications
You must be signed in to change notification settings - Fork 306
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
Refactor markup for page templates #7795
Conversation
- Refactored resources/single.html - Refactored services/single.html
- Refactored resources/single.html - Refactored services/single.html squash w before
- Refactored resources/single.html - Refactored services/single.html
- Cleaned up code in markdown for /news single.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.
Suggestion
Like the updates to these pages @ch-tyson. I'm thinking with some of the clean up, we can possibly merge with @lcummings12 #7803
Fix
I fixed the prettier formatting with 9b08f82
<p>Open to the public.</p> | ||
<section> | ||
{{- if .Params.summary -}} | ||
<div class="content usa-prose"> |
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.
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.
Is this used somewhere or just a draft file for what the markup structure should be?
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.
It's not used anywhere else and it was just for my convenience, should I remove?
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.
Todo
We can make a note to remove before merging if you need it for reference
- replace <aside> element with <div> for sidebar and simplify - wrap main content w/ section for consistency
- simplify header structure, remove unnecessary grid containers - remove redundant wrapper divs to streamline HTML structure - minor changes to news/single and docs/single
-remove nested grid containers and rows from header -remove unnecessary div wrappers -consistency across all single.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.
@ch-tyson Your changes are ready for approval, I let some comments for Toni to review on event hosting.
{{/* Google Stage */}} | ||
{{- if eq .Params.event_platform "google" -}} | ||
{{/* If is a Future Event */}} | ||
{{- if eq $future_event true -}} | ||
{{- .Render "stage-google" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
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.
@ToniBonittoGSA It looks like we don't use google
for future events anymore and we only have 20 files that use this option.
This code will only affect future events, we can remove it if we don't use google for event hosting.
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.
Lets comment this out for now no?
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, thanks
cc: @jdotyoon
@nick-mon1 @lcummings12 now that the other 2 prs are merged, we have some conflicts to solve here. |
@RileySeaburg Addressed merge conflicts |
|
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.
Lots of changes here. I'd like to see smaller PRs but this is great work. Thank you
4aa9512
to
4e6a478
Compare
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.
Previously approved thankl you @ch-tyson
Summary
Refactors markup for single.html template to be more consistent.
Removes unused classes and duplicate markup.
Note
This PR should wait before merging #7803 & #7805
single.html
Preview
Link to Preview
Solution
Refactored markup to match a consistent hierarchy for all
single.html
pages.Dev Checklist