Skip to content

Commit

Permalink
Updated README with 2.x changes, set new minimal Hugo version.
Browse files Browse the repository at this point in the history
  • Loading branch information
frjo committed Jan 24, 2022
1 parent ce6e10f commit 18d1cd1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ Sass is processed with Hugo pipes. To make using npm optional I have added the s

## Version 2.0

* Replaced "normalize" with slimmer and updated "reset". Removed everything for old IE versions.
* Use of css4 variables. Colours are now used like this `var(--color-brand)`.
* The colors, fonts and variables sass files are now in the root sass directory.
* Use `site` instead of `.Site` and `$.Site`.
* Use a default line-height of unitless 1.5. For headers it is set to 1.3.

### Todo

* Implement more use of css4 variables.
* Modernise the normalise css.
* Make css4 variables change based on breakpoints. The zen-gutters e.g. can be set to 10px for mobile and increase to 20px for larger displays.
* Remove all use of "typey". (low priority)

## Table of contents

Expand Down Expand Up @@ -73,7 +75,7 @@ Sass is processed with Hugo pipes. To make using npm optional I have added the s

## Minimum Hugo version

Hugo Extended version 0.67.1 or higher is required.
Hugo Extended version 0.88.1 or higher is required.


## Installation
Expand Down Expand Up @@ -304,7 +306,7 @@ Needed styles are in the `_zen.scss` file.

## Multilingual

Arabic, Finnish, English, Hebrew, French, German, Norwegian, Portugis and Swedish translations are included and you can easily add more to the `i18n` site directory. All but English and Swedish are contributed by users, thanks!
Arabic, Danish, Finnish, English, Hebrew, French, German, Norwegian, Portugis and Swedish translations are included and you can easily add more to the `i18n` site directory. All but English and Swedish are contributed by users, thanks!

A language selector will be included on sites with more than one language. Add `languageName` to your language configuration, this is what will be displayed in the selector.

Expand All @@ -331,6 +333,19 @@ languages:
languageCode: "ar"
```

### Non English site

If you want to have a site in another language than English but do not need multiple languages the following settings are needed.

Set `defaultContentLanguage` to your language code, otherwise it will default to "en" . Also set `languageCode` so browsers are informed of what language the site is in.

Here how it looks for a site in Swedish.

```
languageCode: "sv-SE"
defaultContentLanguage: "sv"
```


## Search

Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = "GPLv2"
licenselink = "http://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
tags = ["accessible", "multilingual", "responsive", "blog", "search", "micro", "podcast"]
features = ["accessible", "multilingual", "responsive", "grid", "sass", "search", "matamo", "jsonfeed", "subtheme", "podcast"]
min_version = "0.67.1"
min_version = "0.88.1"

[author]
name = "Fredrik Jonsson"
Expand Down

0 comments on commit 18d1cd1

Please sign in to comment.