Colors and style are handled by the sass files of [abridge.css](https://github.com/jieiku/abridge.css)
To change colors of this theme all you need to do is edit `/themes/abridge/sass/themes/_auto.scss`
then in the root of your site type `zola build` which will regenerate your site, this is similar to what zola serve does, except it does not facilitate serving the site.
This is also the way you should generate your site to serve it by a real webserver such as nginx.
The following options should be under the `[extra]` in `config.toml`
-`recent = true` - This enabled the Recent posts box visible on the top right.
-`recent_items = 9` - The number of items to display in the recent posts box
-`footer_credit = true` - This enables the powered by zola and abridge line in the footer.
-`textlogo` - The Text based logo in the top left corner
-`sitedesc` - This add the site description just below the text based logo.
-`author` - Used for articles to denote the author.
-`keywords` - This is used for SEO, I am however still working on the SEO related fields, they are likely not 100% correct yet.
-`banner` - Image to use in seo related cards, this will be the fallback image if the individual articles does not provide one, still a work in progress.
-`menu` - This is an array of links to display at the top right corner of the page
-`menu_footer` - This is an array of links to display in the footer of the page
-`extra.social` - These are the options for the social icons in the footer, and a couple are also used in SEO related meta tags, still a work in progress.
Additionally you should configure which social icons you plan to use. (makes the css file size smaller)
open `themes/abridge/sass/_variables.scss`
To simply turn them all off you can set `$enable-icons: false`
Otherwise to turn on only the ones you need you would set `$enable-icons: true`
Then enable only the icons you need, eg for mail you would set `$icon-mail: true`
You should then disable all the icons that you do not use, as this will decrease the final size of your css file.
The difference in size is NOT a lot, without icons its ~4kb, with all the social icons its ~12kb.
There are also some general purpose icons you can use, they are disabled by default.
The theme requires tags and categories taxonomies to be enabled in your `config.toml`:
```toml
taxonomies = [
# You can enable/disable RSS
{name = "categories", rss = true},
{name = "tags", rss = true},
]
```
### Top and Footer menus
Set a field in `extra` with a key of `menu` and `menu_footer`.
If a link should have a trailing slash at the end of the url set `slash = true`.
```toml
# This is the default menu
menu = [
{url = "/", name = "Home", slash = true},
{url = "/about/", name = "About", slash = true},
{url = "/posts/", name = "Posts", slash = true},
{url = "/categories/", name = "Categories", slash = true},
{url = "/tags/", name = "Tags", slash = true},
]
menu_footer = [
{url = "/", name = "Home", slash = true},
{url = "/about/", name = "About", slash = true},
{url = "/contact/", name = "Contact", slash = true},
{url = "/privacy/", name = "Privacy", slash = true},
{url = "/sitemap.xml", name = "Sitemap", slash = false},
]
```
### SEO and Header Tags
Some SEO Tags have been added as well as some important head tags for browser compatibility.
you can review them in the head section of templates/base.html, all configurable values should be in config.toml under config.extra
SEO is still a work in progress, will be performing more testing and updates as time allows.
### Templates
All pages are extend to the `base.html`, and you can customize them as need.
## Reporting Issues
We use GitHub Issues as the official bug tracker for **abridge**. Please