Tessellate theme based on HTML5 UP's Tessellate template. Aimed at sectioned content allowing for a wide range of layouts. This theme is great for use with a one-page site or a multi-page site.
Add this line to your Jekyll site's Gemfile
:
gem "tessellate"
And add this line to your Jekyll site's _config.yml
:
theme: tessellate
And then execute:
$ bundle
Or install it yourself as:
$ gem install tessellate
The basic layout is page
, it takes a header
and cta
parameter in the
frontmatter.
---
layout: page
header:
background_image: /assets/images/cover.jpg
title: "Tessellate"
subtitle: |
A Jekyll theme based on <a href="https://html5up.net/tessellate">HTML5 UP's Tessellate template</a>
color: "#000"
cta:
link: "#first"
text: "Get Started"
---
Every subview then takes a header
and cta
parameter.
Both parameters are optional.
If not included, the header/link will be hidden.
Define subviews in a seperate file such as index_section_one.md
.
The layout is then whatever section layout you want to use.
The theme comes with sections one, two, and three.
For example, to define a section one on the index page use:
---
layout: section_one
header:
title: "Section One"
cta:
link: "#second"
text: "Learn More"
---
The section content goes here.
Finally, we must include it in the main index.md
page using the subview
liquid tag.
---
Front matter goes here...
---
{% subview index_section_one.md %}
{% subview index_section_two.md %}
{% subview index_section_three.md %}
You may change the syntax highlighting theme by overwriting the syntax.css
file in the assets/css
directory. Either find a rouge theme online, or use
rougify
to generate the css from a sublime theme file. The default theme is
monokai
. Two command you may find useful are:
$ bundle exec rougify help style
$ bundle exec rougify style monokai > assets/css/syntax.css
Bug reports and pull requests are welcome on GitHub at https://github.com/PrestonHager/tessellate. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
To set up your environment to develop this theme, run bundle install
.
Your theme is setup just like a normal Jekyll site! To test your theme, run
bundle exec jekyll serve
and open your browser at http://localhost:4000
.
This starts a Jekyll server using your theme. Add pages, documents, data, etc.
like normal to test your theme's contents. As you make modifications to your
theme and to your content, your site will regenerate and you should see the
changes in the browser after a refresh, just like normal.
When your theme is released, only the files in _layouts
, _includes
, _sass
and assets
tracked with Git will be bundled.
To add a custom directory to your theme-gem, please edit the regexp in
tessellate.gemspec
accordingly.
The theme is available as open source under the terms of the MIT License.