Fix deployment to GitLab Pages

Deplyoment to GitLab Pages did not yet take the subpath into account.
Now fixed by using the commandline option `--base-url`.
parent 850eb4bf
Pipeline #15873 passed with stages
in 6 minutes and 55 seconds
......@@ -38,7 +38,7 @@ run_jekyll_production:
stage: build
script:
- cp _data/team.yml team.yml
- bundle install --jobs $(nproc) "${FLAGS[@]}"
- bundle install --jobs $(nproc) "${FLAGS[@]}"
- bundle exec jekyll build -d public
extends:
- .artifacts_extension
......@@ -46,9 +46,8 @@ run_jekyll_production:
pages:
stage: deploy
script:
- echo "deploy"
- bundle install --jobs $(nproc) "${FLAGS[@]}"
- bundle exec jekyll build -d public --baseurl /$CI_PROJECT_NAME
extends:
- .artifacts_extension
- .only_extension
dependencies:
- run_jekyll_production
......@@ -4,7 +4,7 @@
<title>{{ page.title }}</title>
<link rel="stylesheet" href="{{ '/assets/css/fonts.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/normalize.css' | relative_url }}">
<link rel="stylesheet" href="{{ 'assets/css/general.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/general.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/transitions.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/header.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
......
$fa-font-path: "/assets/vendor/Font-Awesome/webfonts";
$fa-font-path: $base_url + "/assets/vendor/Font-Awesome/webfonts";
......@@ -5,6 +5,10 @@
This file contains the general rules that apply all throughout the website.
*/
// Liquid only processes top level SASS files. This can be used later for
// relative imports.
Please register or sign in to reply
$base_url: "{{ site.baseurl }}";
@import "colors";
@import "paths";
@import "assets/vendor/Font-Awesome/scss/fontawesome";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment