Skip to content
/ newpost Public

πŸ“˜ A simple terminal-based tool to generate blog post markdown files and placeholder image assets.

License

Notifications You must be signed in to change notification settings

nzwsch/newpost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

newpost

πŸ“˜ A simple terminal-based tool to generate blog post markdown files and placeholder image assets.

✨ Features

  • TUI (Text-based UI) input form
  • Generates Jekyll-compatible markdown files with front matter
  • Automatically creates associated image paths and placeholder image
  • Fast and easy to use

πŸš€ Usage

newpost

You will be prompted to enter a title. A new markdown file will be created in the _posts directory, and a placeholder image will be generated based on the current date.

Example Output

  • _posts/2025-07-05-my-title.md
  • 2025/07/05/ChatGPT_Image.webp

πŸ›  Installation

From source

go install github.com/nzwsch/newpost@latest

Or manually:

go build -o newpost
sudo install -m 755 newpost /usr/local/bin/

As Debian package

sudo dpkg -i newpost_1.0.0.deb

πŸ—‚ Directory structure

.
β”œβ”€β”€ newpost            # Compiled binary
β”œβ”€β”€ _posts/            # Markdown output
β”œβ”€β”€ YYYY/MM/DD/        # Image output structure

πŸ“¦ Packaging

To build a .deb package:

make package
sudo dpkg -i newpost_1.0.0_amd64.deb

πŸ“„ License

This project is licensed under the MIT License - see the LICENCE.md file for details.

πŸ‘€ Author

Seiichi Yonezawa

About

πŸ“˜ A simple terminal-based tool to generate blog post markdown files and placeholder image assets.

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •