https://github.com/jaygooby/jekyll-extract-links
Gets all the links from each post and adds them to the page.data for that post
https://github.com/jaygooby/jekyll-extract-links
hrefs jekyll links plugin
Last synced: about 1 month ago
JSON representation
Gets all the links from each post and adds them to the page.data for that post
- Host: GitHub
- URL: https://github.com/jaygooby/jekyll-extract-links
- Owner: jaygooby
- License: mit
- Created: 2021-01-16T14:13:56.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-16T14:29:53.000Z (over 5 years ago)
- Last Synced: 2025-07-11T09:49:37.012Z (12 months ago)
- Topics: hrefs, jekyll, links, plugin
- Language: Ruby
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jekyll-extract-links
Gets all the links from your posts and adds them to the `page.data` for that post.
You can then use them in your liquid markup:
```liquid
- {{ link.title }} {{ link.cleaner_href }} {{ link.href }}
{% for link in page.links %}
{% endfor %}
```
The `title` is the text that appears inside the anchor tag and the `cleaner_href` is the `href` with [campaign utm](https://support.google.com/analytics/answer/1033863) and [Chrome text fragment](https://web.dev/text-fragments/) cruft removed, which can make a url human-unreadable.