-
Couldn't load subscription status.
- Fork 12.4k
Description
Have you checked that your issue isn't already filed?
- I read through FAQ and searched through the past issues, none of which addressed my issue.
- Yes, I have checked that this issue isn't already filed.
Bug description
ABS, search and dark mode button work only locally, but online they don't work.
How to reproduce the bug
When I run the website locally using bundle exec jekyll serve, everything works as expected: dark mode button, search bar and ABS button all function normally. In both cases, locally and deployed the website builds successfully and the Dark mode, search, and ABS buttons appear visually but do nothing when clicked.
However, after deploying the same repository, these features stop working online.
The only change I made to the original repository is adding a .gitlab-ci.yml file for the GitLab Pages build.
Here the repository: https://gitlab.com/catchingdesertfox/website
My .gitlab-ci.yml looks like this:
variables:
JEKYLL_ENV: production
BUNDLE_PATH: "vendor/bundle"
DEBIAN_FRONTEND: noninteractive
cache:
paths:
- vendor/bundle
before_script:
-
gem install bundler
-
bundle config set path "$BUNDLE_PATH"
-
bundle install
-
apt-get update
-
apt-get install -y python3 python3-venv python3-pip
-
python3 -m venv .venv
-
. .venv/bin/activate
-
pip install --upgrade pip
-
pip install jupyter nbconvert
pages:
stage: deploy
script:
- . .venv/bin/activate
- bundle exec jekyll build -d public
artifacts:
paths:
- public
only:
- main
I would be more than happy for any help!
Error messages and logs
What operating system are you using?
Mac
Where are you seeing the problem on?
Deployed site
More info
No response