This Java application is designed to create and manage posts for a Jekyll website. It includes functionalities to create a new post file with metadata and to set up a corresponding assets directory.
- Java JDK 17 or higher
- Maven (for building the project)
You can either build the jar or download a pre-built one from https://github.com/Hasan-aga/create-jekyll-post/releases/download/v1.2/create-jekyll-post-1.2-jar-with-dependencies.jar
To build the project, run the following command in the root directory of the project:
mvn clean package
This will generate a JAR file in the target
directory.
Run the application using the following command:
java -jar target/create-jekyll-post-1.0.jar [options]
-t, --title <arg>
Title of the post (required)-c, --category <arg>
Category of the post (required)-i, --image <arg>
Header image for the post-p, --path <arg>
Path to the blog's directory-h, --help
Print usage information
java -jar target/create-jekyll-post-1.1-jar-with-dependencies.jar --title "My New Post" --category "Tech" --image "header.jpg" --path "./my-blog"
- Create a markdown file for a new blog post with specified title and category.
- Generate an assets directory for the post.
- Customize the README according to the actual features and usage of your application.
- Consider adding more sections like "Configuration", "Contributing", or "License" as needed.
- For open-source projects, it's often helpful to include sections like "How to Contribute", "Code of Conduct", and "License Information".
Created by Hasan Aga on a rainy saturday in Istanbul. May it benefit more people.