18F / identity-partners-site

partners.login.gov

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

partners.login.gov

Use the Makefile to run common commands.

Navigation

Configuration of the primary and side navigation menus is done via a Jekyll data filenavigation.yml. This approach is inspired by a YAML syntax defined by uswds-jekyll for its navigation.

The primary navigation links displayed across this sites' header are defined by a named list called primary:

# _data/navigation.yml
primary:
  - text: Product
    href: /product/
  - text: Why Partner
    href: /why-partner/
  - text: External link
    href: https://18f.gsa.gov
    external: true

By default, all links are assumed to be internal to the site. You can add external: true to links that are external. Links to internal pages should include a trailing slash.

For pages that have declared layout: page in their Jekyll front matter, a named side navigation menu from navigation.yml can be specified via the sidenav variable:

---
# _pages/lets-partner.md
title: Let's partner
layout: page
sidenav: why-partner
---

Below is an example of a named side navigation menu list, using the YAML syntax. Sub-menu items are specified via the links list on the parent item:

# _data/navigation.yml
why-partner:
  - text: Let's Partner
    href: /lets-partner/
    links:
      - text: Interagency Agreeements
        href: /interagency-agreement/
      - text: Use cases
        href: /use-cases/
  - text: Pricing
    href: /pricing/

Finally, side navigation menus are logically associated with primary menu items by matching the href of the primary menu item to the identifier of the side navigation menu; e.g., /why-partner/ and why-partner.

About

partners.login.gov


Languages

Language:HTML 79.4%Language:SCSS 10.7%Language:Ruby 5.0%Language:CSS 3.2%Language:Makefile 1.6%