Skip to content
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

chore(release): publish@4.11.11 #1571

Merged
merged 2 commits into from
Apr 1, 2024
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
6 changes: 6 additions & 0 deletions packages/gatsby-theme-aio/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.11.11](https://github.com/adobe/aio-theme/compare/@adobe/gatsby-theme-aio@4.11.10...@adobe/gatsby-theme-aio@4.11.11) (2024-03-28)

### Fix

* **DEVSITE-1116:** Fit resources in main so it aligns correctly with hero [b01b2ab](https://github.com/adobe/aio-theme/pull/1567/commits/b01b2abbab9f969c3ee84299f9f4ff0f65a323e8)

## [4.11.10](https://github.com/adobe/aio-theme/compare/@adobe/gatsby-theme-aio@4.11.9...@adobe/gatsby-theme-aio@4.11.10) (2024-03-21)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-theme-aio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/gatsby-theme-aio",
"version": "4.11.10",
"version": "4.11.11",
"description": "The Adobe I/O theme for building markdown powered sites",
"main": "index.js",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,17 @@ export default ({ children, pageContext, query }) => {
(tableOfContentsItems.length > 1 ||
(tableOfContentsItems.length === 1 && tableOfContentsItems[0]?.items?.length > 1) ||
tableOfContentsItems[0]?.title);
const hasResources = Boolean(resourcesChild);
const isFirstSubPage = selectedPage?.pathname === selectedPageSiblings?.[0]?.pathname;

const columns = 12;
const diff = [];
if (hasOnThisPage) {
diff.push(`${layoutColumns(2)} - var(--spectrum-global-dimension-size-400)`);
}
if (hasResources) {
diff.push(`${layoutColumns(3)} - var(--spectrum-global-dimension-size-400)`);
}
if (hasSideNav) {
diff.push(SIDENAV_WIDTH);
}
Expand Down Expand Up @@ -398,7 +402,7 @@ export default ({ children, pageContext, query }) => {
)}
</div>
{hasOnThisPage && <OnThisPage tableOfContents={tableOfContents} />}
{resourcesChild && resourcesChild}
{hasResources && resourcesChild}
</div>
</div>
<Footer hasSideNav={hasSideNav} />
Expand Down
Loading