Isomer Guide (Legacy sites)
UpdatesOfficial WebsiteGithub Repository
  • Introduction
  • Accounts & Setup
    • Github Account Setup
      • Set up 2FA
    • Site Access
  • Get started
    • Your first edit
    • Create a new page
    • Create a new collection
    • Format your content
      • HTML cheatsheet
      • Markdown cheatsheet
    • Page config
  • Configurations
    • Config.yml file
      • Site color
    • Homepage
      • Basics
      • Hero Banner
      • Infobar
      • Infopic
      • Resources
      • Sample configuration
    • Pages
      • Configuration
      • Second and Third Level Navigation Pages
    • Navigation Bar
      • Configuration
    • Resources
      • Setup
      • Posts
      • Resources with v2 migration
    • Contact Us
      • Configuration
    • Footer
  • Features
    • Analytics and tracking
      • WOGAA
      • Google Analytics
      • Facebook Pixel
      • LinkedIn Insights
    • IsomerSSL
    • Content Recommender
  • Publish your changes
    • Overview
    • Creating a pull request
    • Approve a pull request
    • Merge a pull request
    • Site Launch
      • How to make records changes on ITSM?
  • Frequently Asked Questions (FAQ)
    • General
    • Security
    • Pull requests
    • Digital KPI
    • Migration v1 to v2
  • Updates
Powered by GitBook
On this page

Was this helpful?

  1. Configurations
  2. Navigation Bar

Configuration

PreviousNavigation BarNextResources

Last updated 4 years ago

Was this helpful?

The navigation bar configuration file is _data/navigation.yml and has 2 elements to configure, logo and links:

  • logo: the path to the logo that will be located at the left of the navigation bar, e.g. /images/logo.svg. The logo size is adjusted dynamically by the user's browser, but we recommend a logo resolution of 170x50 pixels.

  • links: a list of items in the navigation bar. Each item requires a title, which is the label that is visible to users on the navigation bar. The URL of each item can be specified in one of four ways:

    • For items that consists only of pages in a , you can use collection, specifying the collection name. The subitems and URLs will be automatically generated by Isomer.

    • For a , you can specify resource_room: true. The links to the resource room and categories will be automatically generated by Isomer.

    • For a single link without subitems, simply specify the url, e.g. /category/page/ or https://www.google.com. Remember to include the https:// or http:// in front of the URL if the link is to another site/microsite.

    • For an item with custom subitems, specify the url which will be the URL the user is brought to if they click on the link on the navigation bar directly. On top of that, specify sublinks, and provide a list of sublinks following the third format above.

Sample configuration of a navigation bar in _data/navigation.yml:

logo: /images/logo.svg

links:
  - title: Sample Collection
    collection: sample-collection
  - title: Resource Room
    resource_room: true
  - title: Single Page
    url: /some-page/
  - title: Custom Sublinks
    url: /some-page-a/
    sublinks:
      - title: Subitem 1
        url: /some-page-a/
      - title: Subitem 2
        url: /some-page-b/
      - title: External Subitem 3
        url: https://www.site.com/url/to/page/
collection
resource room