{"id":19050922,"url":"https://github.com/tomasbasham/ember-cli-link-tags","last_synced_at":"2025-06-14T03:05:26.009Z","repository":{"id":34708259,"uuid":"38684598","full_name":"tomasbasham/ember-cli-link-tags","owner":"tomasbasham","description":"An ember-cli addon to easily add \u003clink\u003e tags to the head of a HTML document","archived":false,"fork":false,"pushed_at":"2022-12-06T22:14:27.000Z","size":963,"stargazers_count":3,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T03:04:06.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/tomasbasham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-07T11:54:35.000Z","updated_at":"2019-02-18T12:54:32.000Z","dependencies_parsed_at":"2023-01-15T08:41:33.188Z","dependency_job_id":null,"html_url":"https://github.com/tomasbasham/ember-cli-link-tags","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/tomasbasham/ember-cli-link-tags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fember-cli-link-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fember-cli-link-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fember-cli-link-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fember-cli-link-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomasbasham","download_url":"https://codeload.github.com/tomasbasham/ember-cli-link-tags/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fember-cli-link-tags/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259752050,"owners_count":22905970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-08T23:16:40.065Z","updated_at":"2025-06-14T03:05:25.988Z","avatar_url":"https://github.com/tomasbasham.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-cli-link-tags [![Build Status](https://travis-ci.com/tomasbasham/ember-cli-link-tags.svg?branch=master)](https://travis-ci.com/tomasbasham/ember-cli-link-tags) [![Maintainability](https://api.codeclimate.com/v1/badges/6393f1d0dbe97a769895/maintainability)](https://codeclimate.com/github/tomasbasham/ember-cli-link-tags/maintainability)\n\nAn [Ember CLI](https://ember-cli.com/) addon to easily add `\u003clink\u003e` tags to the\nhead of a HTML document.\n\nThere may be many reasons to define a link between a HTML document and an\ninternal or external resource. One reason is to provide search engines and SEO\ntools the best URL when there are several choices. This can occur for example\nwhen there are multiple variants of the same resource. This addon allows you to\ndefine these links statically or dynamically when transitioning between routes.\n\nThis addon is ideal for use with SEO tools such as [MOZ](https://moz.com/) to\nsignificantly improve impressions on Google and other search engines whilst\nreducing situations where content is mistakenly conceived as duplicate.\n\n## Compatibility\n\n* Ember.js v2.18 or above\n* Ember CLI v2.13 or above\n\n## Installation\n\nFrom within your Ember CLI project directory run:\n```\nember install ember-cli-link-tags\n```\n\n## Usage\n\nTo use this addon you must include the `Linkable` mixin within the routes you\nintend to define links. The mixin allows you to define links as plain\nJavaScript Objects (POJOs) returned from a `links` method that runs within the\ncontext of the route.\n\n### Links Method\n\nLink tags are described as key/value pairs of attributes that may be formed\ndynamically using the model defined on the route or any other attributes set on\nthe controller. The `links` function returns a plain JavaScript object with the\nappropriate key/value pairs.\n\n##### Links Example\n\n```JavaScript\n// app/routes/posts.js\nimport Route from '@ember/routing/route';\nimport Linkable from 'ember-cli-link-tags/mixins/linkable';\n\nimport { get } from '@ember/object';\n\nexport default Route.extend(Linkable, {\n  links() {\n    return {\n      canonical: '/posts',\n      next: '/posts?page=' + get(this, 'controller.nextPage')\n    };\n  }\n});\n```\n\nThis will add the `canonical` and `next` link tags to the head of the document.\nThe value of `nextPage` is taken from the controller and appended to the end of\nthe `next` value. Of course the key/value pairs returned by the function can be\nwhatever you want and application specific.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasbasham%2Fember-cli-link-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasbasham%2Fember-cli-link-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasbasham%2Fember-cli-link-tags/lists"}