Skip to content

Instantly share code, notes, and snippets.

@ahmadajmi
Last active April 7, 2018 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadajmi/dbb4f713317721668bcbc39420562afc to your computer and use it in GitHub Desktop.
Save ahmadajmi/dbb4f713317721668bcbc39420562afc to your computer and use it in GitHub Desktop.
  1. Create _data directory in theme root.

  2. Create navigation.yml file inside the _data directory and add the following as per the website:

- title: Home
  url: /
- title: Contact Cycling Today
  url: /contact
- name: Live Cycling Races
  link: /live-cycling
- name: Privacy Policy
  link: /privacy_policy
  1. In navigation.html replace all the current content with the following lines:
{% for link in site.data.navigation %}
  <li class='c-nav__item'><a class='c-nav__link' href='{{ link.url }}'>{{ link.title }}</a></li>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment