Home How to Quickly Build a Beautiful Website Using Jekyll Themes(English)
Post
Cancel

How to Quickly Build a Beautiful Website Using Jekyll Themes(English)

step 1 : Choose your favorite style template from Jekyll themes, jekyll themes

Desktop View

step 2 : Download the relevant theme and unzip it

Desktop View

step 3 : Run the following command in your terminal

1
docker run -it --rm --volume="$PWD:/srv/jekyll" -p 4000:4000 jekyll/jekyll jekyll serve

Explanation of the command

  1. docker run -> Executes the specified Docker image, in this case, jekyll/jekyll.

  2. -it -> -i : stands for interactive, keeping the standard input of the container open, allowing you to input commands into the container just like in your local terminal。

  3. -it -> -t : allocates a virtual terminal (tty), presenting the output of commands executed in the container in a friendly manner.

  4. --rm -> Automatically removes the container after it finishes execution, preventing a buildup of unused containers in Docker.
  5. --volume="$PWD:/srv/jekyll" -> Mounts the current directory to the /srv/jekyll directory inside the container, enabling synchronized usage of data between the local machine and the container.

  6. -p 4000:4000 -> Maps port 4000 of the host to port 4000 inside the container.
  7. jekyll serve -> Starts a local development server within the Jekyll static site generation framework.

step 4 : Finally, you will see the container that was just created in Docker Desktop.

Desktop View

step 4-1 : Open your browser and navigate to localhost:4000 to view the website generated by Jekyll.

Desktop View

Done (^∇^)

☝ツ☝

This post is licensed under CC BY 4.0 by the author.

👈 ツ 👍