This is the official blog for the HMPL language, built using Jekyll.
Make sure you have Ruby and Bundler installed.
-
Clone the repository:
git clone https://github.com/hmpl-language/hmpl.git cd hmpl/www/blog
-
Install dependencies:
bundle install
Command | Description |
---|---|
bundle exec jekyll serve |
Starts the local development server |
bundle exec jekyll build |
Builds the static site for production |
bundle exec jekyll serve
The site will be available at: http://localhost:4000
bundle exec jekyll build
The static site will be generated in the _site
directory.
blog/
├── _posts/ # Blog posts in markdown format
├── _layouts/ # HTML layouts for different page types
├── _includes/ # Reusable HTML components
├── assets/ # Static assets (JS, CSS, etc.)
├── css/ # Stylesheets
├── images/ # Image files
├── _config.yml # Jekyll configuration
├── Gemfile # Ruby dependencies
└── README.md # This file
- Create a new markdown file in the
_posts
directory - Name the file using the format:
YYYY-MM-DD-title.md
- Add the following front matter at the top of your post:
--- layout: post title: "Your Post Title" date: YYYY-MM-DD HH:MM:SS +0000 categories: [category1, category2] ---
- Write your post content in markdown format
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes
- Commit your changes:
git commit -m 'Add: New post'
- Push to your fork:
git push origin feature/your-feature-name
- Open a Pull Request