2022-03-31 19:15:18 +00:00
+++
title = "abridge"
2023-08-21 15:31:33 +00:00
description = "A fast and lightweight Zola theme using semantic html, a class-light abridge.css, and No mandatory JS."
2022-03-31 19:15:18 +00:00
template = "theme.html"
2023-11-04 19:03:29 +00:00
date = 2023-11-02T04:17:58+07:00
2022-03-31 19:15:18 +00:00
[extra]
2023-11-04 19:03:29 +00:00
created = 2023-11-02T04:17:58+07:00
updated = 2023-11-02T04:17:58+07:00
2022-04-20 12:53:48 +00:00
repository = "https://github.com/Jieiku/abridge.git"
2023-04-30 20:03:30 +00:00
homepage = "https://github.com/jieiku/abridge"
2023-08-21 15:31:33 +00:00
minimum_version = "0.17.2"
2022-03-31 19:15:18 +00:00
license = "MIT"
2022-06-06 08:46:29 +00:00
demo = "https://abridge.netlify.app/"
2022-03-31 19:15:18 +00:00
[extra.author]
name = "Jake G (jieiku)"
2022-06-06 08:46:29 +00:00
homepage = "https://github.com/jieiku/"
2022-03-31 19:15:18 +00:00
+++
2022-06-06 08:46:29 +00:00
< div align = "center" >
2022-06-18 21:12:04 +00:00
< img src = "https://raw.githubusercontent.com/Jieiku/abridge/master/abridge.svg" / >
2022-06-06 08:46:29 +00:00
2022-03-31 19:15:18 +00:00
# Abridge Zola Theme
2023-09-22 09:07:16 +00:00
A fast, lightweight, and modern [Zola ](https://getzola.org ) theme utilizing [abridge.css ](https://github.com/Jieiku/abridge.css ) (a class-light semantic HTML CSS Framework). Perfect [Lighthouse ](https://pagespeed.web.dev/report?url=abridge.netlify.app ), [YellowLabTools ](https://yellowlab.tools/ ), and [Observatory ](https://observatory.mozilla.org/analyze/abridge.netlify.app ) scores. Here is a [Zola Themes Benchmarks ](https://github.com/Jieiku/zola-themes-benchmarks/blob/main/README.md ) Page.
2022-06-06 08:46:29 +00:00
2023-09-22 09:07:16 +00:00
![Lighthouse Score ](https://raw.githubusercontent.com/Jieiku/abridge/master/content/overview-abridge/lighthouse.png )
2023-04-30 20:03:30 +00:00
2022-08-22 20:30:31 +00:00
Maintenance of this project is made possible by all the < a href = "https://github.com/Jieiku/abridge/graphs/contributors" > contributors< / a > and < a href = "https://github.com/sponsors/Jieiku" > sponsors< / a > . If you'd like to sponsor this project and have your avatar or company logo appear below < a href = "https://github.com/sponsors/Jieiku" > click here< / a > . 💖
2022-06-06 08:46:29 +00:00
2022-08-22 20:30:31 +00:00
<!-- sponsors --> <!-- sponsors -->
2022-06-06 08:46:29 +00:00
---
2022-03-31 19:15:18 +00:00
2023-09-22 09:07:16 +00:00
**[View Abridge demo](https://abridge.netlify.app/overview-abridge/)**
2022-03-31 19:15:18 +00:00
2023-09-22 09:07:16 +00:00
**[View Abridge.css demo](https://abridgecss.netlify.app/overview-abridge/)** [[abridge.css framework ](https://github.com/Jieiku/abridge.css/tree/master/dist )]
2022-03-31 19:15:18 +00:00
2023-09-22 09:07:16 +00:00
The Abridge.css demo is simply using Abridge theme as a submodule: [config.toml ](https://github.com/Jieiku/abridge.css/blob/master/config.toml ), [sass/abridge.scss ](https://github.com/Jieiku/abridge.css/blob/master/sass/abridge.scss )
< / div >
2022-03-31 19:15:18 +00:00
2023-09-22 09:07:16 +00:00
## Features
- [X] Perfect [Lighthouse ](https://pagespeed.web.dev/report?url=abridge.netlify.app ), [YellowLabTools ](https://yellowlab.tools/ ), and [Observatory ](https://observatory.mozilla.org/analyze/abridge.netlify.app ) scores.
- [X] [PWA support ](https://abridge.netlify.app/overview-abridge/#pwa-progressive-web-app ) (Progressive Web Application).
- [X] All JavaScript can be [fully disabled ](https://abridge.netlify.app/overview-abridge/#javascript-files ).
- [X] Dark, Light, Auto, and Switcher themes. (colors can be customized, css variables)
- [X] Code [syntax highlighting ](https://abridge.netlify.app/overview-code-blocks/ ). (colors can be customized, css variables)
- [X] Numbered code blocks with [line highlighting ](https://abridge.netlify.app/overview-code-blocks/#toml ).
- [X] Entirely Offline Site by using the PWA **or** by setting `offline = true` in `config.toml` (full search support).
- [X] Multi-language support.
- [X] Search support. (elasticlunr, tinysearch, stork)
- [X] Search Suggestions navigation keys, `/` focus, `arrow` move, `enter` select, `escape` close.
- [X] Search Results Page, type search query then hit `Enter Key` or `click` the search button icon.
- [X] [SEO ](https://abridge.netlify.app/overview-abridge/#seo-and-header-tags ) support. (Search Engine Optimization)
- [X] [Pagination ](https://abridge.netlify.app/overview-abridge/#pagination ) with numbered paginator on index.
- [X] Title Based Previous and Next Article links at bottom of Article.
- [X] Table of Contents in page Index (Optional, clickable links)
- [X] Recent Posts Block. (Optional)
- [X] Back to Top button. (uses css only)
- [X] Code Blocks copy button.
- [X] Email link in footer obfuscation. (anti-spam)
- [X] [KaTeX ](https://katex.org/ ) support.
- [X] [Archive page ](https://abridge.netlify.app/archive/ ).
- [x] [Tags ](https://abridge.netlify.app/tags/ ).
- [x] Categories. (similar to Tags, disabled/commented out by default)
- [x] Social icon links in footer.
- [X] Responsive design. (mobile first)
- [X] Video Shortcodes: [Youtube ](https://abridge.netlify.app/overview-embed-youtube/ ), [Vimeo ](https://abridge.netlify.app/overview-embed-vimeo/ ), [Streamable ](https://abridge.netlify.app/overview-embed-streamable/ ).
- [X] Media Shortcodes: [video ](https://abridge.netlify.app/overview-rich-content/#video ), [img ](https://abridge.netlify.app/overview-images/#img-shortcode ), [imgswap ](https://abridge.netlify.app/overview-images/#imgswap-shortcode ), [image ](https://abridge.netlify.app/overview-rich-content/#image ), [gif ](https://abridge.netlify.app/overview-rich-content/#gif ), [audio ](https://abridge.netlify.app/overview-rich-content/#audio ).
- [X] Other Shortcodes: [showdata ](https://abridge.netlify.app/overview-showdata/ ), [katex ](https://abridge.netlify.app/overview-math/#usage-1 ).
**[Complete Documentation is availabe here](https://abridge.netlify.app/overview-abridge/)**
2022-03-31 19:15:18 +00:00
## Quick Start
2023-09-22 09:07:16 +00:00
This theme requires version 0.17.2 or later of [Zola ](https://www.getzola.org/documentation/getting-started/installation/ )
2022-03-31 19:15:18 +00:00
```bash
2022-06-06 08:46:29 +00:00
git clone https://github.com/jieiku/abridge.git
2022-03-31 19:15:18 +00:00
cd abridge
zola serve
# open http://127.0.0.1:1111/ in the browser
```
## Installation
2023-09-22 09:07:16 +00:00
The Quick Start shows how to run the theme directly. Next we will use abridge as a theme to a NEW site.
### 1: Create a new zola site
2022-03-31 19:15:18 +00:00
```bash
zola init mysite
2023-08-21 15:31:33 +00:00
cd mysite
2022-03-31 19:15:18 +00:00
```
2023-09-22 09:07:16 +00:00
### 2: Install Abridge
2022-03-31 19:15:18 +00:00
2023-09-22 09:07:16 +00:00
Add the theme as a git submodule:
2022-03-31 19:15:18 +00:00
```bash
2023-09-22 09:07:16 +00:00
git init # if your project is a git repository already, ignore this command
git submodule add https://github.com/jieiku/abridge.git themes/abridge
2022-03-31 19:15:18 +00:00
```
2023-09-22 09:07:16 +00:00
Or clone the theme into your themes directory:
2022-03-31 19:15:18 +00:00
```bash
2023-09-22 09:07:16 +00:00
git clone https://github.com/jieiku/abridge.git themes/abridge
2022-03-31 19:15:18 +00:00
```
2023-09-22 09:07:16 +00:00
### 3: Configuration
2022-03-31 19:15:18 +00:00
2023-08-21 15:31:33 +00:00
Copy some files from the theme directory to your project's root directory:
2022-03-31 19:15:18 +00:00
```bash
2023-09-22 09:07:16 +00:00
touch templates/.gitkeep
2023-08-21 15:31:33 +00:00
rsync themes/abridge/config.toml config.toml
2023-09-22 09:07:16 +00:00
rsync themes/abridge/content/_index.md content/
2023-08-21 15:31:33 +00:00
rsync themes/abridge/COPY-TO-ROOT-SASS/* sass/
rsync themes/abridge/netlify.toml netlify.toml
2023-09-22 09:07:16 +00:00
rsync themes/abridge/package_abridge.js package_abridge.js
2023-08-21 15:31:33 +00:00
rsync themes/abridge/package.json package.json
2022-06-06 08:46:29 +00:00
```
2023-09-22 09:07:16 +00:00
- `templates/.gitkeep` the templates directory is required in your base site. [#2150 ](https://github.com/getzola/zola/issues/2150 )
- `config.toml` base configuration with all config values.
- `content/_index.md` required to set pagination.
2023-08-21 15:31:33 +00:00
- `COPY-TO-ROOT-SASS/abridge.scss` overrides to customize Abridge variables.
2023-09-22 09:07:16 +00:00
- `netlify.toml` settings to deploy your repo with netlfiy.
- `package_abridge.js` node script to: update cache files list in PWA, minify js, bundle js
2023-08-21 15:31:33 +00:00
- `package.json` to switch between nosearch, elasticlunr, tinysearch, stork.
Uncomment the theme line in your project's root config.toml:
2023-09-22 09:07:16 +00:00
2022-06-06 08:46:29 +00:00
```bash
2022-03-31 19:15:18 +00:00
sed -i 's/^#theme = "abridge"/theme = "abridge"/' config.toml
2022-06-06 08:46:29 +00:00
```
2023-09-22 09:07:16 +00:00
### 4: Add new content
2022-03-31 19:15:18 +00:00
2023-08-21 15:31:33 +00:00
Copy the content from the theme directory to your project or make a new post:
2022-03-31 19:15:18 +00:00
```bash
2023-08-21 15:31:33 +00:00
rsync -r themes/abridge/content .
2022-03-31 19:15:18 +00:00
```
2023-09-22 09:07:16 +00:00
### 5: Run the project
2022-03-31 19:15:18 +00:00
Just run `zola serve` in the root path of the project:
```bash
zola serve
```
2023-08-21 15:31:33 +00:00
Zola will start the dev web server, accessible by default at `http://127.0.0.1:1111` .
2022-08-22 20:30:31 +00:00
2023-09-22 09:07:16 +00:00
Saved changes will live reload in the browser. (press `ctrl+f5` , or while developing set `pwa=false` in `config.toml` )
2022-08-22 20:30:31 +00:00
2023-08-21 15:31:33 +00:00
## Customization
2022-08-22 20:30:31 +00:00
2023-09-22 09:07:16 +00:00
For further customization be sure to [check the docs ](https://abridge.netlify.app/overview-abridge/ ).
2022-06-06 08:46:29 +00:00
2023-09-22 09:07:16 +00:00
## Sponsor
2022-06-18 21:12:04 +00:00
2023-09-22 09:07:16 +00:00
Do you love this theme? Was it useful to you? Please leave a github star, and if you feel inclined to donate you can make a donation to me through [github sponsors ](https://github.com/sponsors/Jieiku/ ).
2022-03-31 19:15:18 +00:00
2022-06-06 08:46:29 +00:00
## Contributing and Philosophy
2022-03-31 19:15:18 +00:00
2023-08-21 15:31:33 +00:00
We'd love your help! Especially with fixes to issues, or improvements to existing features.
2022-06-06 08:46:29 +00:00
2023-09-22 09:07:16 +00:00
The goal is for Abridge to be lightweight, fast, and to work properly even if javascript is disabled or blocked.
2022-06-06 08:46:29 +00:00
2023-08-21 15:31:33 +00:00
The only feature that may be considered a necessity that relies on javascript is the Search.
2022-03-31 19:15:18 +00:00
## License
2023-09-22 09:07:16 +00:00
**Abridge** is distributed under the terms of the [MIT license ](https://github.com/jieiku/abridge/blob/master/LICENSE ).
2022-03-31 19:15:18 +00:00