You don’t have to use GitHub to serve Foam pages. You can also use GitLab.
Generate a solution using the [Foam template].
Change the remote to GitLab, or copy all the files into a new GitLab repo.
Add another file to the root directory (the one with readme.md
in it) called _config.yaml
(no extension)
title: My Awesome Foam Project
baseurl: "" # the subpath of your site, e.g. /blog
url: "/" # the base hostname & protocol for your site
theme: jekyll-theme-minimal
You can choose a theme if you want from places like Jekyll Themes
Add another file to the root directory (the one with readme.md
in it) called Gemfile
(no extension)
source "https://rubygems.org"
gem "jekyll"
gem "jekyll-theme-minimal"
gem "jekyll-optional-front-matter"
Commit the file and push it to gitlab.
Set up CI/CD
Jekyll
as your template from the template dropdowncommit
test
, and never deploy - Perhaps you’ve renamed the main branch (from master) - check the settings in .gitlab-ci.yml
and ensure the deploy command is running to the branch you expect it to.gem "jekyll-optional-front-matter"
appears in the Gemfile