{"id":34694619,"url":"https://github.com/codebeige/locomotive-subnav","last_synced_at":"2026-05-27T05:37:37.888Z","repository":{"id":56881840,"uuid":"52429782","full_name":"codebeige/locomotive-subnav","owner":"codebeige","description":"Navigate current subtree of a LocomotiveCMS site.","archived":false,"fork":false,"pushed_at":"2016-03-11T21:38:28.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-26T10:43:27.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codebeige.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-24T09:21:20.000Z","updated_at":"2016-02-28T18:23:46.000Z","dependencies_parsed_at":"2022-08-20T13:00:15.217Z","dependency_job_id":null,"html_url":"https://github.com/codebeige/locomotive-subnav","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/codebeige/locomotive-subnav","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeige%2Flocomotive-subnav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeige%2Flocomotive-subnav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeige%2Flocomotive-subnav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeige%2Flocomotive-subnav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebeige","download_url":"https://codeload.github.com/codebeige/locomotive-subnav/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeige%2Flocomotive-subnav/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33504806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T03:12:49.672Z","status":"ssl_error","status_checked_at":"2026-05-26T03:12:47.976Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-24T22:30:51.840Z","updated_at":"2026-05-27T05:37:37.869Z","avatar_url":"https://github.com/codebeige.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# locomotive-subnav\n\nProvide your LocomotiveCMS site with a context aware set of nested navigation\nlinks that represent the currently selected branch of the page. Typical use\ncases are a subnavigation inside a sidebar or breadcrumbs.\n\n[![Gem Version](https://badge.fury.io/rb/locomotive-subnav.svg)](https://badge.fury.io/rb/locomotive-subnav)\n\n## Installation\n\nAdd a dependency to the Gemfile of *both* your Wagon site and the Locomotive\nRails application.\n\n```ruby\ngem 'locomotive-subnav'\n```\n\n## Usage\n\nPut the following Liquid tags inside any of your Wagon template files:\n\n### breadcrumbs\n\nFor a simple breadcrumb trail use the `breadcrumbs` tag.\n\n```liquid\n{% breadcrumbs (\u003coptions\u003e) %}\n```\n\n##### Options\n\n| Name    | Type      | Description                               | Default |\n| ---     | ---       | ---                                       | ---     |\n| `level` | `Integer` | Show ancestors including specified level. | `0`     |\n\n##### Example\n\n```liquid\n{% breadcrumbs level: 1 %}\n```\n\n### subnav\n\nFor a subtree navigation that will also display the siblings of ancestors use\nthe `subnav` tag.\n\n```liquid\n{% subnav (\u003coptions\u003e) %}\n```\n\n##### Options\n\n| Name       | Type                               | Description                                    | Default |\n| ---        | ---                                | ---                                            | ---     |\n| `level`    | `Integer`                          | Show ancestor trail including specified level. | `0`     |\n| `collapse` | `Integer` or `Array` of `Integer`s | Only show selected item on given level(s).     | `[]`    |\n\n##### Example\n\n```liquid\n{% subnav level: 1, collapse: 1 %}\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`rake spec` to run the tests. You can also run `bin/console` for an interactive\nprompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To\nrelease a new version, update the version number in `version.rb`, and then run\n`bundle exec rake release`, which will create a git tag for the version, push\ngit commits and tags, and push the `.gem` file to\n[rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/codebeige/locomotive-subnav. This project is intended to\nbe a safe, welcoming space for collaboration, and contributors are expected to\nadhere to the [Contributor Covenant](http://contributor-covenant.org) code of\nconduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the\n[MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebeige%2Flocomotive-subnav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebeige%2Flocomotive-subnav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebeige%2Flocomotive-subnav/lists"}