2020-08-10 09:46:26 +00:00
|
|
|
|
|
|
|
+++
|
|
|
|
title = "lightspeed"
|
|
|
|
description = "Zola theme with a perfect Lighthouse score"
|
|
|
|
template = "theme.html"
|
2021-08-02 14:32:05 +00:00
|
|
|
date = 2021-08-02T23:30:47+09:00
|
2020-08-10 09:46:26 +00:00
|
|
|
|
|
|
|
[extra]
|
2021-08-02 14:32:05 +00:00
|
|
|
created = 2021-08-02T23:30:47+09:00
|
|
|
|
updated = 2021-08-02T23:30:47+09:00
|
2020-08-10 09:46:26 +00:00
|
|
|
repository = "https://github.com/carpetscheme/lightspeed"
|
|
|
|
homepage = "https://github.com/carpetscheme/lightspeed"
|
|
|
|
minimum_version = "0.10.0"
|
|
|
|
license = "MIT"
|
|
|
|
demo = "https://quirky-perlman-34d0da.netlify.com/"
|
|
|
|
|
|
|
|
[extra.author]
|
|
|
|
name = "El Carpet"
|
|
|
|
homepage = "https://github.com/carpetscheme"
|
|
|
|
+++
|
|
|
|
|
|
|
|
# Light Speed
|
|
|
|
|
|
|
|
An insanely fast and performance-based Zola theme, ported from [Light Speed Jekyll](https://github.com/bradleytaunt/lightspeed).
|
|
|
|
|
|
|
|
Some fun facts about the theme:
|
|
|
|
|
|
|
|
* Perfect score on Google's Lighthouse audit
|
2020-12-14 19:47:32 +00:00
|
|
|
* Only ~700 bytes of CSS
|
2020-08-10 09:46:26 +00:00
|
|
|
* No JavaScript
|
2020-12-14 19:47:32 +00:00
|
|
|
* Now with SEO!
|
2020-08-10 09:46:26 +00:00
|
|
|
|
|
|
|
Demo: [quirky-perlman-34d0da.netlify.com](https://quirky-perlman-34d0da.netlify.com)
|
|
|
|
|
|
|
|
-----
|
|
|
|
|
|
|
|
## Contents
|
|
|
|
|
|
|
|
- [Installation](#installation)
|
|
|
|
- [Options](#options)
|
|
|
|
- [Title](#title)
|
|
|
|
- [Footer menu](#footer-menu)
|
2020-12-14 19:47:32 +00:00
|
|
|
- [SEO](#seo)
|
|
|
|
- [Footer text](#footer-text)
|
|
|
|
- [Sass](#Sass)
|
2020-08-10 09:46:26 +00:00
|
|
|
- [Original](#original)
|
|
|
|
- [License](#license)
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
First download this theme to your `themes` directory:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ cd themes
|
|
|
|
$ git clone https://github.com/carpetscheme/lightspeed.git
|
|
|
|
```
|
|
|
|
and then enable it in your `config.toml`:
|
|
|
|
|
|
|
|
```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`:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
sort_by = "date"
|
|
|
|
```
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
### Title
|
|
|
|
Set a title and description in the config to appear in the site header:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
title = "Different strokes"
|
|
|
|
description = "for different folks"
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
### Footer-menu
|
|
|
|
Set a field in `extra` with a key of `footer_links`:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
[extra]
|
|
|
|
|
|
|
|
footer_links = [
|
|
|
|
{url = "$BASE_URL/about", name = "About"},
|
2020-12-14 19:47:32 +00:00
|
|
|
{url = "$BASE_URL/atom.xml", name = "RSS"},
|
2020-08-10 09:46:26 +00:00
|
|
|
{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:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
path = "about"
|
|
|
|
```
|
|
|
|
|
2020-12-14 19:47:32 +00:00
|
|
|
### SEO
|
2020-08-10 09:46:26 +00:00
|
|
|
|
2020-12-14 19:47:32 +00:00
|
|
|
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:
|
2020-08-10 09:46:26 +00:00
|
|
|
|
|
|
|
```toml
|
|
|
|
[extra]
|
|
|
|
|
|
|
|
author = "Grant Green"
|
2020-12-14 19:47:32 +00:00
|
|
|
ogimage = "Greenery.png"
|
2020-08-10 09:46:26 +00:00
|
|
|
```
|
|
|
|
|
2020-12-14 19:47:32 +00:00
|
|
|
### Footer-text
|
2020-08-10 09:46:26 +00:00
|
|
|
|
2020-12-14 19:47:32 +00:00
|
|
|
By default the footer provides links to Zola and Netlify, and a tagline of "Maintained with :heart: for the web".
|
|
|
|
To disable any of those parts, and/or add a custom tagline of your own, the following options are available:
|
2020-08-10 09:46:26 +00:00
|
|
|
|
|
|
|
```toml
|
|
|
|
[extra]
|
|
|
|
|
2020-12-14 19:47:32 +00:00
|
|
|
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."
|
2020-08-10 09:46:26 +00:00
|
|
|
```
|
|
|
|
|
2020-12-14 19:47:32 +00:00
|
|
|
### Sass
|
2020-08-10 09:46:26 +00:00
|
|
|
|
2020-12-14 19:47:32 +00:00
|
|
|
Styles are compiled from sass and imported inline to the header :zap:
|
2020-08-10 09:46:26 +00:00
|
|
|
|
2020-12-14 19:47:32 +00:00
|
|
|
You can overide the styles by enabling sass compilation in the config:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
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](https://github.com/bradleytaunt/lightspeed) by Bradley Taunt.
|
2020-08-10 09:46:26 +00:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
2021-02-18 21:33:11 +00:00
|
|
|
Open sourced under the [MIT license](LICENSE.md).
|
2020-08-10 09:46:26 +00:00
|
|
|
|
|
|
|
This project is open source except for example articles found in `content`.
|
|
|
|
|
|
|
|
|
|
|
|
|