# Adding Bluesky likes to my Hugo based blog posts I read [Salma Alam-Naylor’s post about how she added a cool feature to her blog posts]( https://whitep4nth3r.com/blog/show-bluesky-likes-on-blog-posts/) and decided to replicate it exactly onto my Hugo site. This feature displays a list of Bluesky accounts that liked a specific post (her public post linking to the article), right on the page.  There isn’t much for me to explain about the code, you should read her post first to understand what it is and how it works, but I’ll go through the basics. You need to associate the Bluesky Post ID with a given post on your site. In my system, I added this as a custom frontmatter field in my markdown. ```markdown --- date: 2024-05-17T12:31:10-07:00 title: Adding prefetch and prerender using the Speculation Rules API featured: true blueskyPostID: 3l74i6nhjwc2f --- ``` Then at runtime, because you want the list of likes to be up-to-date, JavaScript is used to call a public Bluesky API and pull the list of likes for that specific post ID. To implement this in Hugo, I added post IDs to my pages and added my Bluesky handle into my site config. Then I created a ‘bluesky.html’ partial and added it to the bottom of my post layout. ```go-html-template {{ $handle := .Site.Params.bluesky.handle }} {{ $postID := .Params.blueskyPostID }} {{ if $handle }} {{ if $postID }}
Like this post on Bluesky to see your face on this page or comment with your thoughts!
{{ $blueskyScript := resources.Get "js/bluesky.js"}} {{ $secureBluesky := $blueskyScript | resources.Fingerprint "sha512"}} {{ else }}Thoughts on this post? Feel free to reach out on Bluesky!
{{ end }} {{ end }} ``` This provides a placeholder for the likes to be added, loads the post ID & my Bluesky handle ([duncanmackenzie.net](https://bsky.app/profile/duncanmackenzie.net)) onto the page to be accessible to JavaScript, and in my implementation, I also include the script reference itself. Then, in my `single.html` for posts, I have: ```go-html-template