Skip to content

HUIXIN-TW/Resume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

256 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The CV Repository

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.


Table of Contents


Jekyll

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.

How Jekyll Works:

  1. Write Content in Markdown: You write content in Markdown files (e.g., index.md).
  2. Configure Layouts and Templates: Set up layouts (e.g., header, footer) to style your content.
  3. Generate HTML: Jekyll processes Markdown files into HTML, which is stored in a _site folder.
  4. Serve Locally or Deploy: You can preview it locally or deploy it to any web server.

Benefits of Jekyll:

  • 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.

Example Use Case:

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.


Prerequisites

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.

Installation

1. Install Ruby

First, check if Ruby is installed by running:

ruby -v

If 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 ~/.zshrc

2. Install Jekyll and Bundler

Once 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 jekyll

3. Install Dependencies

Navigate to the project directory in your terminal and run the following to install all the required gems:

bundle install
# or
ruby -S bundle install

This will install dependencies listed in the Gemfile.

4. Configure Your Jekyll Site

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.

5. Run the Local Server

To start the local server, run:

bundle exec jekyll serve
# or
ruby -S jekyll serve

Your site will be available at http://localhost:4000.


Running Locally

After the server starts, navigate to http://localhost:4000 in your browser to view your CV.


Previewing Your CV

You can preview your CV in its web format locally by accessing the site at http://localhost:4000.


Printing Your CV

To print your CV:

  1. Use your browser’s print functionality.
  2. Customize the print style in the media/cv-print.css file for a tailored print layout.

Resume via GitHub

You can view and share your online resume via GitHub Pages:


Deploy via Cloudflare Pages

This site is also deployed with Cloudflare Pages from the same GitHub repository:

Use the Jekyll preset with:

  • Build command: bundle exec jekyll build
  • Build output directory: _site

alt text


References

Markdown Preview Enhanced

About

Introduce myself to the world

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors