Bay is a simple theme for Jekyll. [view live]
Current theme used at elio.tt.
- Installation
- Website sections
- Migrating from Bay 1.x
- GitHub Pages
- Development instructions
The easiest solution is to fork this repo. If you want to start from a clean website, follow the steps below:
Create a new Jekyll website:
jekyll new mysite
Open Gemfile and replace the line:
gem "minima"
with:
gem "bay_jekyll_theme"
Open _config.yml and replace the line:
theme: minima
with:
theme: bay_jekyll_theme
or, for GitHub Pages:
remote_theme: eliottvincent/bay
Finally, install the dependencies:
bundle install
and build the website!
jekyll serve
The website will look somewhat empty at first. That's normal. Follow the next instructions to complete the header and footer components, and the home and blog pages.
Open the _config.yml file and add the following:
header:
pages:
- name: Home
slug: / # <-- index.md
- name: Blog # <-- blog.md
- name: Whatever # <-- whatever.mdRe-run jekyll serve to see the header updated.
Open the _config.yml file and add the following:
footer:
show_powered_by: true
contact:
- type: email
name: Email
value: yourmail@domain.com
- type: wechat
value: YourWeChatUsername
link: "#"
follow:
- type: twitter
name: Twitter
link: http://twitter.com/YourTwitterUsername
username: "@YourTwitterUsername"
- type: facebook
name: Facebook
link: http://facebook.com/YourFacebookUsername
- type: linkedin
name: LinkedIn
link: http://linkedin.com/in/YourLinkedInUsername
- type: github
name: GitHub
link: http://github.com/YourGitHubUsername
- type: dribbble
name: Dribbble
link: https://dribbble.com/YourDribbbleUsername
- type: rss
name: RSS
link: /feed.xmlRe-run jekyll serve to see the footer updated.
Create (or edit) the index.markdown file and add the following:
---
layout: home
profile_picture:
src: /assets/img/profile-pic.jpg
alt: website picture
---
<p>
Welcome to my site!
</p>Create collection.md to display a simple image-and-text collection:
---
layout: collection
title: Collection
slug: /collection
permalink: /collection/
items:
- title: Collection item
image:
src: /assets/img/collection/example.jpg
alt: A camera
description: A short description of the item.
---
This is an optional introduction.Create work.md with the work layout. The variant can be timeline
(the default) or editorial:
---
layout: work
title: Work
slug: /work
permalink: /work/
variant: timeline
sections:
- title: Work
items:
- date_from: "2023"
date_to: Now
title: Example project
subtitle: Software Engineer
description: >-
A short description with **bold text** and a
[link](https://example.com).
image:
src: /assets/img/work/example-project/image.jpg
alt: Example project
link:
label: Read more
url: /work/example-project/
---
A selection of things I have built.Dates render as a range when both date_from and date_to are present, or
as a single date when only one is set. Links and images are optional. An image
is rendered only when image.src is supplied, using a 16:9 timeline or 4:3
editorial frame. Group each project's images under assets/img/work/<project-slug>/.
When link is supplied, its anchor covers the entire item. Items without link remain
noninteractive. Store linked detail pages as regular Markdown pages under
work/:
---
layout: post
title: Example project
date_from: "2023"
date_to: Now
permalink: /work/example-project/
---
Detailed project content.This generates /work/example-project/ without additional _config.yml
setup. Work details use the post layout without appearing in the Blog
listing or feed.
Optional date_from and date_to fields display the project period below the
title. Either field can be used alone. When neither is supplied, the Post layout
shows the usual publication date, if present.
Create `blog.markdown` file and add the following:
---
layout: blog
title: Blog
slug: /blog
---
This is an example of a "Blog" page, displaying a list of posts.
<br />Your website is ready!
Bay 2.0 replaces the former work layout with collection and moves the example
page from /work/ to /collection/. Update existing pages from
layout: work to layout: collection, change their route if needed, and move
their images from assets/img/work/ to assets/img/collection/.
The work layout now owns /work/ and uses the section-based schema shown
above. The example site exposes both variants alongside the collection:
header:
pages:
- name: Collection
slug: /collection/
- name: Work (Timeline)
slug: /work/
- name: Work (Editorial)
slug: /work-editorial/You can deploy your website to GitHub Pages, but you cannot use the 1-click GitHub Pages build-and-deploy system. The issue is that the Bay theme relies on Jekyll 4.3+ (which uses a more modern Sass processor), whereas the GitHub Pages build system uses an older version of Jekyll.
However, it's fairly easy to build and deploy your website with GitHub Actions, yet use GitHub Pages to host it.
Further explanations and instructions can be found on the official Jekyll website.
You can also refer to the .github/workflows/deploy.yml file in this repository.
bundle exec jekyll serveSimply push and tag a new version, Github Actions will handle the rest.
