Learn how to create a custom link page for musicians and artists using Hugo static site generator
Many artists use services like Linktree to create a single page that aggregates all their important links - social media, music platforms, and other content. However, you can create your own customized version using Hugo. This tutorial will show you how to build a beautiful, responsive music links page that you can host anywhere. It will mirror the changes I made to create a link page for Activ8te at https://activ8te.io/links.
The Final Result
Prerequisites
Hugo installed on your system
Basic Hugo website set up
Basic understanding of HTML and CSS
Tailwind CSS set up in your Hugo project
Font Awesome for social icons
File Structure
We’ll create two main components:
A content file (links.md) containing all our links and page data
A layout template (links.html) that styles and displays the content
---title:"Artist Name's Music Links"date:"2024-11-29"layout:linkshideHeader:trueavatar:"/images/artist-logo.png"bio:"Your artist bio goes here. Make it compelling and brief."social:- name:Instagramurl:https://www.instagram.com/yourhandle/icon:fab fa-instagram- name:Facebookurl:https://www.facebook.com/yourpage/icon:fab fa-facebook- name:YouTubeurl:https://www.youtube.com/@yourchannelicon:fab fa-youtubelinks:- name:Bandcampurl:https://yourbandcamp.com/- name:Spotifyurl:https://open.spotify.com/artist/yourid- name:Youtube Musicurl:https://music.youtube.com/channel/yourid- name:Soundcloudurl:https://soundcloud.com/yourprofile- name:Apple Musicurl:https://music.apple.com/us/artist/yourname/yourid---
Place your background image in static/images/background.webp and it will automatically be used as the page background. Choose an image that:
Has good contrast with white text
Isn’t too busy or distracting
Loads quickly (optimize for web)
You can use AI image generators to create an initial image and then blur and mask it with Photoshop.
Conclusion
With this setup, you have a professional-looking link hub that’s fully customizable and integrated with your Hugo site. You can easily update links by modifying the markdown file, and the layout ensures everything stays properly organized and styled.
Remember to:
Optimize your images
Test on multiple devices
Ensure all links work correctly
Keep your bio concise and engaging
Have you created a link page using this tutorial? Share your results in the comments below!