Cool Link in Bios (with SSGs)

Cool Link in Bios (with SSGs)

January 22, 2025

Having a cool website for you linkinbio can be a good experience to get started with SSGs.

And they will provide a similar experience to linktree, linkbio,…

ℹ️
And you can use these SSGs with GHPages

HUGO as Link in Bio

HUGO with one of my fav themes - Lynx

Astro as Link in Bio

Treelink and and astro-link-in-bio-theme are really cool imo!

  1. https://github.com/nevthereal/linktree-template

  2. https://astro.build/themes/details/ltree/

  3. https://github.com/Boston343/landingpad

GPL 3.0 A free and open source template to host your links and socials. Built with Astro, Tailwind CSS, and Keystatic CMS by Cosmic Themes.

Thanks to Boston343, I got to know about keystack CMS

KeyStack CMS - https://github.com/Thinkmill/keystatic

MIT | First class CMS experience, TypeScript API, Markdown & YAML/JSON based, no DB

  1. https://github.com/trevortylerlee/treelink

MIT | Free, open source Linktree alternative built with Astro & Tailwind CSS

git clone https://github.com/trevortylerlee/treelink

npm install
npm run dev

#rm -rf .git
npm run build

It worked and I Forked it! https://github.com/JAlcocerT/treelink

What I lived about this one?

It allow you to have a exposed static built site and also provides the capability to edit also online and export the /src/siteConfig.json

  1. https://github.com/SofiDevO/allmylinks

  2. https://github.com/MarcosKlender/AstroLinkHub

MIT | Open source links page, customizable via JSON. Made with Astro 4.

  1. https://github.com/ctrimm/astro-link-in-bio-theme

Link In Bio Theme for Astro

ℹ️
Thanks to Ctrimm’s theme, I got to know about the https://www.avatartion.com/ project to generate avatars in notion style. Also MIT Licensed!
git clone https://github.com/ctrimm/astro-link-in-bio-theme

npm install
npm run dev #

#rm -rf .git
npm run build

LayoutSwitcher can be commented from layout.astro and in config.js you have everything you need to tweak the theme!

ℹ️
It uses fontawsome icons, great reference for icons!
  1. https://github.com/flamrdevs/astrolinkt

MIT | Link in Bio Template using Astro, React & TailwindCSS

  1. https://github.com/apvarun/linkverse

  2. https://github.com/saminnet/astro-simple-portfolio

It has a very cool moving background

MIT | Very simple portfolio built using Astro

  1. https://github.com/vito8916/simple-portfolio

Really cool ig like portfolio, had to fork this one!

It looks amazing in phones

MIT | A simple but beautiful portfolio created with Astro

  1. https://github.com/alamguardin/Astrolink

This is how they can look:

And like this:

While performing like this

LinkInBio as Personal CV

While I was investigating those astro linkinbio theme, I found out also about some themes that can be actually be our personal CV, in a website, with links as well!

  1. https://github.com/mmouzo/astro-cv-esquelete

MIT | A free, easy-to-use CV template with a clean design. Just fill in your details and you’re ready to go!

How to Deploy SSGs Link in bio

  1. With Firebase or Cloudflare CLI or any other static file hosting:
npm run build

You just need to follow these commands:

npx wrangler pages project create #this will install the wrangler CLI package
#npx wrangler pages project list # See the projects you already have
#npx wrangler pages deployment list 

#npm run build #build the file manually

#https://developers.cloudflare.com/pages/configuration/build-configuration/#framework-presets
npx wrangler pages deploy dist # normally will be dist, but whatever <BUILD_OUTPUT_DIRECTORY>

##npx wrangler pages project delete your_project_name

We will upload the ./dist folder, as its the place where the static files are built.

⚠️
This approach does not use CI/CD for improved workflow as the following ones!

You can use these 2 other methods as an alternative (leveraging automation), it also works with private repositories.

  1. Github + Cloudflare Workers and Pages
  1. Gitlab + Cloudflare WnP - Lets do this one step by step.

Cloudflare as Authoritative Name Server

Get a domain name and setup Cloudflare as its Name Server, this will proove that you own it:

CF Custom Domain1

CF Custom Domain2

CF Custom Domain3

Astro Site to Gitlab Repository

Push your code to a Gitlab.

Setup Cloudflare to with Gitlab

Go to Cloudflare UI.

Compute (workers) -> Worker & Pages -> Overview.

Create -> Pages -> Connect Git.

You will Need a Gitlab Account OAth (Authentication)

Setup Cloudflare Workers and Pages

Make sure you set the proper settings.

This will grant that whenever you push, the workers are doing the right steps to generate the static files:

CF WnP Settings with Astro

Go to the Cloudflare UI, and…