{"id":13724018,"url":"https://github.com/bgadrian/medium-to-hugo","last_synced_at":"2025-04-13T16:40:22.086Z","repository":{"id":34977750,"uuid":"162819862","full_name":"bgadrian/medium-to-hugo","owner":"bgadrian","description":"Medium stories exporter to markdown/hugo articles.","archived":false,"fork":false,"pushed_at":"2022-05-09T20:28:38.000Z","size":269,"stargazers_count":68,"open_issues_count":5,"forks_count":10,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-06T15:53:35.932Z","etag":null,"topics":["blog","go","golang","hugo","medium","medium-com","medium-data"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bgadrian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-22T14:58:29.000Z","updated_at":"2023-01-27T23:11:20.000Z","dependencies_parsed_at":"2022-08-08T19:00:09.135Z","dependency_job_id":null,"html_url":"https://github.com/bgadrian/medium-to-hugo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgadrian%2Fmedium-to-hugo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgadrian%2Fmedium-to-hugo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgadrian%2Fmedium-to-hugo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgadrian%2Fmedium-to-hugo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bgadrian","download_url":"https://codeload.github.com/bgadrian/medium-to-hugo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248746656,"owners_count":21155306,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","go","golang","hugo","medium","medium-com","medium-data"],"created_at":"2024-08-03T01:01:48.608Z","updated_at":"2025-04-13T16:40:22.064Z","avatar_url":"https://github.com/bgadrian.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Medium to Hugo\nTool for the migration of articles from a medium.com account to a static website generator with markdown like Hugo.\n\nHere is a preview from my own migration (from medium to Hugo):\n![example](./preview.png)\n\n## Features:\n* transform HTML posts to markdown\n* ignores comments and empty articles\n* SEO friendly (keeps the old URL as an **alias**)\n* keeps all the metadata and adds most Hugo front Matter, including the alias with the old URL\n* even if one article fails it keeps going\n* marks the **drafts** as \"draft_\"\n* Fetch the article **TAGS** (which are not included in the Medium exporter), compatible with Hugo Related feature\n* Fetch all the **Images** and puts them in each articles bundle\n* stories are ordered by date (`year-month-day_slug`)\n* custom `.Params`: image, images, slug, subtitle\n* minimal HTML cleanup (removed empty URLs, duplicate title and so on)\n* adds `#layout...` suffix to every image so they can be styles accordingly from plain CSS with exactly same style as on Medium.\n\n## Usage\n\n1. Download your [medium data](https://help.medium.com/hc/en-us/articles/115004745787-Download-your-information)\n2. Unzip it\n3. Download our binary (see Releases)\n4. Run something like `./mediumtohugo /path/to/export/posts /path/to/hugo/content/ posts`\n\nIn case you need to bypass TLS/SSL checks you can run the binary with `ALLOW_INSECURE=true` environment variable. This is a case if the medium certificate expires and you want to export your blog with all tags.\n\n\n### Build / Contribute\nYou need Bash, Go 1.11+\n\nSee Issues for a list of TODOs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgadrian%2Fmedium-to-hugo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbgadrian%2Fmedium-to-hugo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgadrian%2Fmedium-to-hugo/lists"}