Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ body.status-404 main > .content {
min-width: 0; /* min-width: 0 required for flexbox to constrain overflowing elements */
}

main:not(.labs) {
main:not(.labs):not(.home-content) {
width: calc(100% - var(--nav-width));
}

Expand Down
2 changes: 2 additions & 0 deletions src/partials/article.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<h1 class="page">{{{this}}}</h1>
{{/with}}
{{/if}}
{{#unless (eq page.attributes.role 'component-home-v2')}}
<div class="metadata metadata--main">
{{#if page.attributes.beta}}
<div class="beta-label">
Expand All @@ -32,6 +33,7 @@
{{/if}}
{{> markdown-dropdown}}
</div>
{{/unless}}
{{#if (or page.attributes.beta page.attributes.limited-availability page.attributes.context-switcher)}}
<script>
document.addEventListener("DOMContentLoaded", () => {
Expand Down
10 changes: 5 additions & 5 deletions src/partials/component-home-v2.hbs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<main class="home-content">
<section id="preamble" aria-labelledby="home-overview">
{{#with page.attributes.home-overview-title}}
<h2 id="home-overview" class="visually-hidden">{{{this}}}</h2>
{{else}}
<h2 id="home-overview" class="visually-hidden">Overview</h2>
{{/with}}
<div class="sectionbody">
<div class="paragraph home-intro">
{{#with page.attributes.home-overview-title}}
<h2 id="home-overview">{{{this}}}</h2>
{{else}}
<h2 id="home-overview">Overview</h2>
{{/with}}
<p>{{{page.attributes.home-intro}}} {{#with page.attributes.home-intro-learn-more}}<a href="{{{relativize (resolve-resource this)}}}">Learn more</a>{{/with}}
</p>
{{#if page.attributes.home-ai-summary}}
Expand Down
Loading