Skip to content

Gets all the links from each post and adds them to the page.data for that post

License

Notifications You must be signed in to change notification settings

jaygooby/jekyll-extract-links

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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:

<ul>
{% for link in page.links %}
  <li>{{ link.title }} {{ link.cleaner_href }} {{ link.href }}</li>
{% endfor %}
</ul>

The title is the text that appears inside the anchor tag and the cleaner_href is the href with campaign utm and Chrome text fragment cruft removed, which can make a url human-unreadable.

About

Gets all the links from each post and adds them to the page.data for that post

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages