The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

linksite

Self-hosted Linktree clone

A very simple thing that I originally threw together in an hour or so. I have since spent many hours turning it into something that other people can also use.

The manual way

The Github way

You can use GitHub, GitHub Actions and GitHub Pages together to automate a lot of this work.

Note: If you take this approach (and I recommend it), you don't need to install the CPAN module. All the work is done on a Docker container that already has all of the required software installed.

Now you've set this up, any changes to your links.json file will trigger a rebuild and redeployment of your link site.

links.json syntax

The links.json file defines what appears on your link site. It has three sections:

Frontmatter

Socials

A list of social networks that you use. This is a list of items. Each item can contain some of these.

In many cases, you can just give a list of social media network names.

"social" : [{
  "service" : "facebook"
}, {
  "service" : "x-twitter"
}, {
  "service" : "linkedin"
}]

This is a list of links that will be displayed below the social media icons.

Demo

My links - https://links.davecross.co.uk/