0

The Problem

I wanted to install a remote theme for my portfolio website, but I am not exactly sure why it isn't working. Either I installed the remote-theme incorrectly in the only two files I edited, Gemfile and _config.yml, or it is going wrong whenever I enter bundle install/bundle update.

If you have any suggestions, please let me know!

Thanks!

I added "." at the beginning of each line of my Gemfile and _config.yml because it thought I was trying to use headings. As well as spacing each line out.


What I've Tried

In the Gemfile and config file, When I comment out the default "minima" theme, and only include the "hacker" theme, I expected it to update the theme of my GitHub pages website when I pushed to the GitHub repo.


Also, when I enter the command "bundle install" or "bundle update" in the terminal, I get an error:

Could not find gem 'http_parser.rb (= 0.8.0)' with platform 'x86_64-darwin-21' in rubygems repository https://rubygems.org/ or installed locally.

The source contains the following gems matching 'http_parser.rb (= 0.8.0)':

http_parser.rb-0.8.0

So I installed http_parser.rb 0.8.0 I expected it to install all of these gems smoothly.


to show what I have done in each file, here is my _config.yml:

.`title: My Portfolio

.email:

.description: >- # this means to ignore newlines until "baseurl:"

.Welcome to my page! Here you will find an accumulation of completed projects

.from Frontend Mentor,

.as well as a few of my own unique projects.

.baseurl: "" # the subpath of your site, e.g. /blog

.url: "" # the base hostname & protocol for your site, e.g. http://example.com

.twitter_username: jekyllrb

.github_username: jekyll

.# Build settings

.# theme: minima

.remote_theme: pages-themes/hacker@v0.2.0

.plugins:

.jekyll-feed

.jekyll-remote-theme`


.and here is the part of the Gemfile that involves installing remote-themes:

`.# Happy Jekylling!

.# gem "jekyll", "~> 4.3.1"

.gem "github-pages", "~> 227", group: :jekyll_plugins

.gem "jekyll-include-cache", group: :jekyll_plugins

.gem "jekyll-remote-theme"

.# This is the default theme for new Jekyll sites. You may change this to .anything you like.

.# gem "minima", "~> 2.5"

.# gem "hacker", "~> 0.2"

.# If you want to use GitHub Pages, remove the "gem "jekyll"" above and

.# uncomment the line below. To upgrade, run bundle update github-pages.

.# gem "github-pages", group: :jekyll_plugins

.# If you have any plugins, put them here!

.group :jekyll_plugins do

. gem "jekyll-feed", "~> 0.12"

.end`


0 Answers0