This repository contains a Jekyll-based static site for generating and previewing a CV. It uses Markdown files and custom layouts to create a professional-looking CV that can be served locally and printed.
- Introduction to Jekyll
- Prerequisites
- Installation
- Running Locally
- Previewing Your CV
- Printing Your CV
- Resume via GitHub
- References
Jekyll is a static site generator written in Ruby. It processes text files (often written in Markdown) and turns them into a website. Jekyll uses layouts and templates to generate HTML files that can be served by any web server.
- Write Content in Markdown: You write content in Markdown files (e.g.,
index.md). - Configure Layouts and Templates: Set up layouts (e.g.,
header,footer) to style your content. - Generate HTML: Jekyll processes Markdown files into HTML, which is stored in a
_sitefolder. - Serve Locally or Deploy: You can preview it locally or deploy it to any web server.
- Static Sites: Ideal for personal blogs, portfolios, and documentation where content changes infrequently.
- Markdown Support: Easily write and maintain content using Markdown.
- Customization: Customize layouts and designs using HTML, CSS, and Jekyll’s templating language, Liquid.
- Fast Performance: Static sites load quickly as they don’t require server-side processing.
You can use Jekyll to create a CV (resume) site. Write your content in Markdown, and Jekyll will convert it into a styled HTML page using templates and styles you define.
To run this locally, you'll need to have the following installed:
- Ruby: Install Ruby
- Jekyll: A Ruby-based static site generator.
- Bundler: A dependency manager for Ruby gems.
First, check if Ruby is installed by running:
ruby -vIf Ruby isn't installed, follow the instructions on the Ruby website.
# add ruby path
nano ~/.zshrc
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
export GEM_HOME="$HOME/.gem"
export PATH="$GEM_HOME/bin:$PATH"
source ~/.zshrcOnce Ruby is installed, run the following command to install Jekyll and Bundler:
gem install bundler jekyll
# or
ruby -S gem install bundler
ruby -S gem install jekyllNavigate to the project directory in your terminal and run the following to install all the required gems:
bundle install
# or
ruby -S bundle installThis will install dependencies listed in the Gemfile.
Ensure your project has a _config.yml file. If not, create one with the following content:
title: Your CV
baseurl: ""
url: ""This file contains basic settings for your Jekyll site.
To start the local server, run:
bundle exec jekyll serve
# or
ruby -S jekyll serveYour site will be available at http://localhost:4000.
After the server starts, navigate to http://localhost:4000 in your browser to view your CV.
You can preview your CV in its web format locally by accessing the site at http://localhost:4000.
To print your CV:
- Use your browser’s print functionality.
- Customize the print style in the
media/cv-print.cssfile for a tailored print layout.
You can view and share your online resume via GitHub Pages:
This site is also deployed with Cloudflare Pages from the same GitHub repository:
- https://resume-c74.pages.dev
- https://resume.huixinyang.com (custom domain)
Use the Jekyll preset with:
- Build command:
bundle exec jekyll build - Build output directory:
_site
