Skip to content

carpetscheme/lightspeed

 
 

Repository files navigation

Light Speed

A small Zola theme, ported from Light Speed Jekyll.

  • Perfect score on Google's Lighthouse audit
  • Only ~700 bytes of CSS
  • No JavaScript

Demo: carpetscheme.github.io/lightspeed


Contents

Installation

Download this theme to your themes directory:

$ cd themes
$ git clone https://github.com/carpetscheme/lightspeed.git

and then enable it in your config.toml:

theme = "lightspeed"

Posts should be placed directly in the content folder.

To sort the post index by date, enable sort in your index section content/_index.md:

sort_by = "date"

Options

Title

Set a title and description in the config to appear in the site header:

title = "Different strokes"
description = "for different folks"

Footer-menu

Set a field in extra with a key of footer_links:

[extra]

footer_links = [
    {url = "$BASE_URL/about", name = "About"},
    {url = "$BASE_URL/atom.xml", name = "RSS"},
    {url = "https://example.com", name = "Example"},
]

Create pages such as $BASE_URL/about by placing them in a subfolder of the content directory, and specifying the path in the frontmatter:

path = "about"

The footer credit to Zola and Lightspeed can be disabled with the footer_credits option.

Sass

Styles are compiled from sass and imported inline to the header.

You can overide the styles by enabling sass compilation in the config:

compile_sass = true

and placing a replacement style.scss file in your sass folder.

Original

This template is based on the Jekyll template Light Speed Jekyll by Bradley Taunt.

License

Open sourced under the MIT license.

This project is open source except for example articles found in content.

About

Zola port of Light Speed theme

Resources

License

Stars

Watchers

Forks

Languages

  • HTML 85.8%
  • SCSS 14.2%