Chris Bradshaw 7/6/2022

Update Hugo Tweet Shortcodes with PowerShell, Curl, and the Twitter API

Read Original

This technical tutorial explains how to automatically update Hugo static site tweet shortcodes from the old single-parameter format to the new required two-parameter format (user and id). It provides a PowerShell script that uses curl and the Twitter API to fetch the correct user handle for each tweet ID, enabling bulk updates across a site.

Update Hugo Tweet Shortcodes with PowerShell, Curl, and the Twitter API

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week