Kerby Martino 285de9287b Add upvotes and comments count to single post metadata
Updated the single post metadata to include upvotes and comments count. Adjusted the layout template to correctly reference the new comments_count field from the page object.
2025-05-02 03:13:03 +08:00
2025-04-29 16:04:18 +08:00
2025-05-01 12:08:04 +08:00
2025-05-01 12:24:41 +08:00
2025-04-29 10:04:59 +08:00

Project Behind the Desk

Description

A Jekyll website

Getting Started

Dependencies

Head to this website to know more about jekyll https://jekyllrb.com/docs/

Installing

First, install Homebrew if you don't already have it:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install rbenv and ruby-build:

brew install rbenv ruby-build

Add rbenv to your shell:

echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc
# Or for bash
# echo 'eval "$(rbenv init - bash)"' >> ~/.bashrc

Restart your terminal or source your profile:

source ~/.zshrc  # or ~/.bashrc

Install the latest stable Ruby version:

rbenv install 3.2.2  # or any newer version

Set it as your global Ruby version:

rbenv global 3.2.2

Verify the installation:

ruby -v

Install bundler:

gem install bundler

Navigate back to your project and try running bundler again:

bundle install
bundle exec jekyll serve --livereload

Executing program

After installation, you can run the Jekyll site locally:

  • With live reload (automatically refreshes the browser when files change):
bundle exec jekyll serve --livereload
  • Without live reload:
bundle exec jekyll serve

Once the server is running, you can view the site by opening a browser and navigating to:

http://localhost:4000

Troubleshooting

If you encounter any issues during installation or execution:

  1. Make sure Ruby is installed and up to date:
ruby -v
  1. If you encounter permission errors with Homebrew:
sudo chown -R $(whoami) /usr/local/Homebrew
  1. If bundle install fails with dependency issues:
bundle update
bundle install
  1. If you see "command not found: jekyll", ensure Jekyll is properly installed:
gem install jekyll
gem install bundler

For more information, refer to the Jekyll documentation.

S
Description
No description provided
Readme
1.7 MiB
0 Stars 1 Watchers 0 Forks
Languages
Liquid 95.3%
CSS 2.9%
Ruby 1.8%