Commit 4147d538 authored by Felix Edelmann's avatar Felix Edelmann

Fixed #40

parent 8b12086f
......@@ -6,3 +6,4 @@ node_modules/*
*.sublime-workspace
*.log
Gemfile.lock
userconfig.yml
\ No newline at end of file
......@@ -15,7 +15,9 @@ test:
- apt-get install -y zlib1g-dev
- gem install jekyll bundler
- bundle install
- bundle exec jekyll build -d test
- echo "url: https://$CI_PROJECT_NAMESPACE.gitlab.io" > userconfig.yml
- echo "baseurl: /$CI_PROJECT_NAME" >> userconfig.yml
- bundle exec jekyll build -d test --config _config.yml userconfig.yml
artifacts:
paths:
- test
......@@ -35,7 +37,9 @@ pages:
- apt-get install -y zlib1g-dev
- gem install jekyll bundler
- bundle install
- bundle exec jekyll build -d public
- echo "url: https://$CI_PROJECT_NAMESPACE.gitlab.io" > userconfig.yml
- echo "baseurl: /$CI_PROJECT_NAME" >> userconfig.yml
- bundle exec jekyll build -d public --config _config.yml userconfig.yml
artifacts:
paths:
- public
......
......@@ -38,6 +38,12 @@ bundle exec jekyll serve
If you want to use the official Git repository again,
run `bundle config --delete local.jekyll-fdroid`.
If you want to have another values for `site.url` and `site.baseurl` (default: `localhost:4000` and `fdroid-website`) you can add the from git ignored config file `userconfig.yml` and run all jekyll commands with this additional parameter:
```
--config _config.yml userconfig.yml
```
## License
This program is Free Software:
......
......@@ -11,7 +11,7 @@ header-title: F-Droid
description: >
© 2010-2017 F-Droid Limited and Contributors
baseurl: "/fdroid-website" # the subpath of your site, e.g. /blog
url: "https://fdroid.gitlab.io" # the base hostname & protocol for your site
url: "http://localhost:4000" # the base hostname & protocol for your site
include:
- "_pages"
collections:
......
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