In June 2019 I migrated my blog from a Medium hosted solution to a self-hosted static website using Hugo. This post describes the steps of my journey including creating custom embeds, adding a Content Security Policy, and how I configured my Azure Storage Static Website and set up continuous deployment from GitHub to publish my blog.
More tips for migrating to Hugo from Medium that include how to address static content and partial templates, hosting on static websites, and setting up continuous deployment using Azure Pipelines.
A Content Security Policy (CSP) helps prevent a variety of attacks on your site. This article describes how to implement one for a static website when you don't control the headers.
Generate a thumbnail for your Hugo posts on the fly, then create a custom short code that uses thumbnails and page data like title and description to embed a post preview to interlink documents.
Step-by-step guide to turn your static website into a Progressive Web App (PWA) including icons, manifest, and service worker code with examples using Hugo.