Go to file
Emelie Graven 5a9874f797
Merge remote-tracking branch 'upstream/master'
2022-02-15 08:55:53 +01:00
content Tweaked options 2020-09-20 19:58:15 +02:00
sass Refactor CSS 2020-09-13 15:57:13 +02:00
static Added SEO tags 2020-09-13 15:08:54 +02:00
templates Add static content in index 2021-11-22 17:45:51 +01:00
.gitignore zola! 2020-04-13 21:19:58 +02:00
LICENSE.md wip: initial commit 2019-04-09 06:58:22 -04:00
README.md Update README.md 2021-12-07 20:39:45 +01:00
config.toml Made footer more configurable 2020-09-13 15:47:11 +02:00
netlify.toml update zola version with feed settings 2020-08-29 18:22:52 +02:00
screenshot.png Theme info in readme with screenshot 2020-04-13 22:23:39 +02:00
theme.toml Update theme.toml 2020-05-26 22:06:14 +02:00

README.md

Light Speed

An insanely fast and performance-based Zola theme, ported from Light Speed Jekyll.

Some fun facts about the theme:

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

Demo: quirky-perlman-34d0da.netlify.com


Contents

Installation

First 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"

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://google.com", name = "Google"},
]

If you put $BASE_URL in a url, it will automatically be replaced by the actual site URL.

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"

SEO

Most SEO tags are populated by the page metadata, but you can set the author and for the og:image tag provide the path to an image:

[extra]

author = "Grant Green"
ogimage = "Greenery.png"

By default the footer provides links to Zola and Netlify, and a tagline of "Maintained with ❤️ for the web". To disable any of those parts, and/or add a custom tagline of your own, the following options are available:

[extra]

zola = true
netlify = false
maintained_with_love = false
footer_tagline = "What if everything is an illusion and nothing exists? In that case, I definitely overpaid for my carpet."

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.