Middleman Template for GitLab Pages
How to publish the website
- Edit the data/config.yml file and update the repository URL by replacing
<username>
with your GitLab username and<project-name>
with the name of the project you've created. Example:http://gitlab.com/john/blog
. - Edit the GitLab CI configuration file and update the variable,
a11y_urls
by replacing<username>
with your GitLab username and<project-name>
with the name of the project you've created. Example:https://john.gitlab.io/blog
. - Commit and push the change to the repository.
- In GitLab, visit the CI / CD -> Pipelines page for your project (accessible from the left-hand menu).
- Click on the
Run pipeline
button, if there are no active pipelines running after pushing up your change. - Once the the pipeline has successfully finished, open the following URL in your browser:
https://<username>.gitlab.io/<project-name>
. Note that it might take 10-15 minutes before the website becomes available after the first successful pipeline has finished.
Local development
- Clone this project.
- Download dependencies:
bundle install
. If you see an error that bundler is missing, then try to rungem install bundler
. - Run the project:
bundle exec middleman
. - Open http://localhost:4567 in your browser.
Useful information
GitLab Pages default domain names
Learning Middleman
- Visit Middleman website
- Take a look at the documentation
- Explore the source code