An open API service indexing awesome lists of open source software.

https://github.com/williamchong/medium-import-backdate

A simple tool that generates HTML pages with specific publication dates for importing into Medium.com. This allows you to publish stories on Medium with custom backdated timestamps.
https://github.com/williamchong/medium-import-backdate

medium medium-article nuxt vue

Last synced: about 1 month ago
JSON representation

A simple tool that generates HTML pages with specific publication dates for importing into Medium.com. This allows you to publish stories on Medium with custom backdated timestamps.

Awesome Lists containing this project

README

          

# Medium Story Backdating Tool

A simple tool that generates HTML pages with specific publication dates for importing into Medium.com. This allows you to publish stories on Medium with custom backdated timestamps.

## How It Works

Medium.com's import feature respects the `article:published_time` metadata in HTML files. This tool generates pages with the proper metadata format that Medium recognizes during import.

## Usage Instructions

1. Visit the website
2. Select your desired publication date using the date picker
3. Copy the generated link (format will be `/YYYY-MM-DD`)
4. Go to Medium.com and use their "Import story" feature to import the URL
5. Medium will preserve the publication date from the imported HTML
6. Edit your story's content in Medium as needed

For detailed instructions on how to import a post to Medium, see their official help article:
[Importing a post to Medium](https://help.medium.com/hc/en-us/articles/214550207-Importing-a-post-to-Medium)

## Development

Requires Node.js >= 20.0.0 (see `.nvmrc`).

```bash
npm install
npm run dev
```

| Command | Description |
|---------|-------------|
| `npm run dev` | Start development server |
| `npm run build` | Build for production |
| `npm run generate` | Generate static site |
| `npm run lint` | Run ESLint |
| `npm run typecheck` | Run TypeScript type checking |
| `npm run test` | Run tests with Vitest |

## Deployment

Optimized for Cloudflare Pages. To deploy:

1. Fork/clone this repository
2. Connect your repository to Cloudflare Pages
3. Configure the build settings:
- Build command: `npm run build`
- Build output directory: `dist`

## License

MIT