2019-04-09 10:58:22 +00:00
|
|
|
# Light Speed
|
|
|
|
|
2020-04-13 20:26:11 +00:00
|
|
|
An insanely fast and performance-based Zola theme, ported from [Light Speed Jekyll](https://github.com/bradleytaunt/lightspeed).
|
2020-04-13 19:53:24 +00:00
|
|
|
|
|
|
|
Some fun facts about the theme:
|
2019-04-09 10:58:22 +00:00
|
|
|
|
|
|
|
* Perfect score on Google's Lighthouse audit
|
2020-04-14 18:42:35 +00:00
|
|
|
* Only ~600 bytes of CSS
|
2019-04-09 10:58:22 +00:00
|
|
|
* No JavaScript
|
2020-04-13 19:53:24 +00:00
|
|
|
|
|
|
|
Demo: [quirky-perlman-34d0da.netlify.com](https://quirky-perlman-34d0da.netlify.com)
|
2019-04-09 10:58:22 +00:00
|
|
|
|
|
|
|
-----
|
|
|
|
|
2020-04-13 20:23:39 +00:00
|
|
|
## Contents
|
|
|
|
|
|
|
|
- [Installation](#installation)
|
|
|
|
- [Options](#options)
|
2020-04-13 21:12:39 +00:00
|
|
|
- [Title](#title)
|
|
|
|
- [Sass](#Sass)
|
2020-04-13 20:23:39 +00:00
|
|
|
- [Footer menu](#footer-menu)
|
2020-04-18 14:49:03 +00:00
|
|
|
- [Author](#author)
|
2020-04-14 18:42:35 +00:00
|
|
|
- [Netlify](#netlify)
|
2020-04-13 20:23:39 +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"
|
|
|
|
```
|
|
|
|
|
2020-04-14 18:42:35 +00:00
|
|
|
Posts should be placed directly in the `content` folder.
|
2020-04-13 20:23:39 +00:00
|
|
|
|
|
|
|
## Options
|
|
|
|
|
2020-04-13 21:12:39 +00:00
|
|
|
### Title
|
2020-04-14 18:42:35 +00:00
|
|
|
Set a title and description in the config to appear in the site header:
|
2020-04-13 21:12:39 +00:00
|
|
|
|
|
|
|
```toml
|
|
|
|
title = "Different strokes"
|
|
|
|
description = "for different folks"
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
### Sass
|
|
|
|
|
2020-04-14 18:42:35 +00:00
|
|
|
Styles are compiled from sass and imported inline to the header :zap:
|
2020-04-13 21:12:39 +00:00
|
|
|
|
|
|
|
You can overide the styles by enabling sass compilation in the config:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
compile_sass = true
|
|
|
|
```
|
|
|
|
|
2020-04-14 18:42:35 +00:00
|
|
|
...and placing a replacement `style.scss` file in your sass folder.
|
2020-04-13 21:12:39 +00:00
|
|
|
|
|
|
|
### Footer-menu
|
2020-04-13 20:23:39 +00:00
|
|
|
Set a field in `extra` with a key of `footer_links`:
|
|
|
|
|
|
|
|
```toml
|
2020-04-13 21:12:39 +00:00
|
|
|
[extra]
|
|
|
|
|
2020-04-13 20:26:11 +00:00
|
|
|
footer_links = [
|
2020-04-13 20:23:39 +00:00
|
|
|
{url = "$BASE_URL/about", name = "About"},
|
|
|
|
{url = "$BASE_URL/rss.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.
|
|
|
|
|
2020-04-14 18:42:35 +00:00
|
|
|
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-04-18 14:49:03 +00:00
|
|
|
### Author
|
|
|
|
|
|
|
|
To add author name to the head meta-data, set an `author` field in `extra`:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
[extra]
|
|
|
|
|
|
|
|
author = "Grant Green"
|
|
|
|
```
|
|
|
|
|
2020-04-14 18:42:35 +00:00
|
|
|
### Netlify
|
|
|
|
|
2020-04-18 14:49:03 +00:00
|
|
|
Deployed on netlify? Add a link in the footer by setting `netlify` in `extra` as `true`.
|
2020-04-14 18:42:35 +00:00
|
|
|
|
|
|
|
```toml
|
|
|
|
[extra]
|
|
|
|
|
|
|
|
netlify = true
|
|
|
|
```
|
|
|
|
|
2020-04-13 20:23:39 +00:00
|
|
|
## Original
|
2020-04-13 21:12:39 +00:00
|
|
|
This template is based on the Jekyll template [Light Speed Jekyll](https://github.com/bradleytaunt/lightspeed) by **Bradley Taunt**:
|
2019-04-09 10:58:22 +00:00
|
|
|
|
|
|
|
- <https://github.com/bradleytaunt>
|
|
|
|
- <https://twitter.com/bradtaunt>
|
|
|
|
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
Open sourced under the [MIT license](LICENSE.md).
|
|
|
|
|
2020-04-13 21:12:39 +00:00
|
|
|
This project is open source except for example articles found in `content`.
|
2020-04-13 20:23:39 +00:00
|
|
|
|