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

Added support for secondary navigation #11409

Merged
merged 1 commit into from
Dec 4, 2019
Merged

Conversation

ErisDS
Copy link
Member

@ErisDS ErisDS commented Nov 20, 2019

Usage: {{navigation type="secondary"}}

Inside a navigation.hbs:

{{#if isSecondary}}
... do something different...
{{/if}}
  • Adding secondary navigation means most nav concepts are supported, e.g. header & footer, or left & right
  • The UI is added separately
  • This PR adds supporting concepts:
    • make sure the default value is an empty array
    • add support in the API (v3 only)
    • add handling in the navigation helper

@@ -2,6 +2,8 @@

{{#if isHeader}}isHeader is set{{/if}}

{{#if isSecondary}}Jeremy Bearimy baby!{{/if}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😂

@ErisDS
Copy link
Member Author

ErisDS commented Nov 21, 2019

FYI I know this isn’t quite done yet - wanted to open it to get feedback on the ember part 😅

@ErisDS ErisDS force-pushed the secondary-nav branch 2 times, most recently from f56a2b7 to a1f0798 Compare November 27, 2019 14:19
- Secondary navigation means most nav concepts are supported, e.g. header & footer, or left & right
- The UI is added separately, this PR adds supporting concepts:
  - make sure the default value is an empty array
  - add support in the API (v3 only)
  - add handling in the navigation helper
@naz naz merged commit 419e12d into TryGhost:master Dec 4, 2019
naz pushed a commit to TryGhost/Admin that referenced this pull request Dec 4, 2019
refs: TryGhost/Ghost#11409

- Added a new UI for a second set of navigation links
- This should support most concepts of nav, e.g. left and right, or header and footer
- This PR mostly updates the design and nav components to cope with a second set of nav
naz pushed a commit to TryGhost/Casper that referenced this pull request Dec 4, 2019
refs TryGhost/Ghost#11409

- Adds secondary navigation to the main menu
- Updated secondary nav mobile styles
- Updated cover for the scrollable main navigation
@ErisDS ErisDS deleted the secondary-nav branch March 19, 2020 19:06
guillaume-sainthillier pushed a commit to silarhi/Casper that referenced this pull request Mar 29, 2021
refs TryGhost/Ghost#11409

- Adds secondary navigation to the main menu
- Updated secondary nav mobile styles
- Updated cover for the scrollable main navigation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants