A personal website based on the Chirpy theme which uses Jekyll.
Follow the Jekyll Docs to complete the installation of Ruby
, RubyGems
, Jekyll
and Bundler
.
- As of most recent this code has been verified with Ruby 3.3. Installing for other Ruby versions may require manually adjusting the versions of gems or installing gems not listed in the Gemfile.
See the Chirpy Documentation for installation instructions.
- See here if your installation fails.
Update the variables of _config.yml
as needed. Some of them are typical options:
url
avatar
timezone
lang
You may want to preview the site contents before publishing. Run it by opening git bash in the root folder and executing:
$ bundle install
then:
$ bundle exec jekyll s
You should see something like:
Configuration file: /octocat/personal-website/_config.yml
Source: /octocat/personal-website
Destination: /octocat/_site
Incremental build: disabled. Enable with --incremental
Generating...
GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.
done in 14.729 seconds.
Auto-regeneration: enabled for '/octocat/personal-website'
Server address: http://127.0.0.1:4000
Server running... press ctrl-c to stop.
Or run the site on Docker with the following command:
$ docker run -it --rm \
--volume="$PWD:/srv/jekyll" \
-p 4000:4000 jekyll/jekyll \
jekyll serve
Open a browser and visit to http://localhost:4000.
Special steps need to be taken to add new javascript asset files to the website. These steps ensure the javascript will properly get minified and the website will know where to locate it.
- Add javascript files to folders in
/assets/js
/_includes/js-selector.html
determines which javascript file is loaded for each given page. Determine which file is needed for the page you want to add new scripts to./gulpfile.js/tasks/js.js
specifies the process for building all javascript files at /assets/js into properly minified files at/assets/js/dist
. Modify this file to include the new scripts as required by js-selector.html.- Install node.js, gulp.js, and any other dependencies listed in
/gulpfile.js/tasks/js.js
- Open a terminal at the root project folder and run a
gulp
command. This will execute the gulp build process and overwrite the javascript files at/assets/js/dist
. - Commit all updated files to git and push to update the live website.
See the Chirpy Documentation for deployment instructions.
For more details and the better reading experience, please check out the tutorials on demo site. In the meanwhile, a copy of the tutorial is also available on the Wiki.
This work is published under MIT License.