Welcome to the Jekyll Blog Containerization project! This project provides a Docker-based solution to streamline the setup and management of Jekyll blogs tailored for math and programming content.
- Easy Setup: Quickly get started with a Jekyll blog using Docker.
- Pre-configured Environment: Includes all necessary dependencies and configurations for a smooth blogging experience.
- MathJax Integration: Seamlessly supports MathJax for rendering mathematical equations.
- Code Syntax Highlighting: Pre-configured for effective code presentation.
- Customizable: Easily adapt the container setup to fit your specific blogging needs.
- Clone this repository to your local machine:
git clone git@github.com:DEBARGHYA4469/jekyll-blog-container.git
-
Create a Symlink:
If you’re using Windows with WSL, create a symlink to the cloned repository. Open your WSL terminal and run: (note: Here is your windows username)
ln -s /mnt/c/Users/<USER>/jekyll-blog-container/ myblog
-
Navigate to the Directory:
cd myblog
-
[Important] Change the
$WORKDIR
in Dockerfile andvolumes
in docker-compose.yaml file based on your username. -
Start the Docker Containers:
Build and start the Docker containers with:
docker-compose up --build
-
Access Your Blog:
Open your web browser and go to http://localhost:5000//jekyll-blog-container to view your blog.
To tailor the blog to your needs, update the configuration in the _config.yaml
file:
- baseUrl: Set this to your blog's URL. For example:
For github-io pages, you need to set this to https://.github.io
url: "https://your-custom-url.com"
- title: Update this to the title of your blog.
- email: Enter your email address.
- description: Provide a description for your blog.
- Creating Posts: Add your blog posts in the
_posts/
folder. Follow the naming conventionYEAR-MONTH-DAY-title.md
for the posts. - Creating Pages: For pages like About and Resume, use
layout: page
in the front matter of the respective Markdown files. - Including Code Snippets: Place your code snippets in the
include/
folder and include them in your HTML files using:{% include blog1/sample.py %}
- Adding Mathematical Expressions: Use MathJax syntax to include mathematical formulas. For example:
$$ f(n) = g(n) + h(n) $$
If you'd like to contribute to this project, please fork the repository and submit a pull request with your changes.