Update README with other install methods

This commit is contained in:
Joe Roe 2021-07-28 21:56:26 +02:00
parent e1dca6be66
commit cd0c127023
1 changed files with 18 additions and 8 deletions

View File

@ -6,26 +6,36 @@ risotto is a minimalist, responsive [hugo](https://gohugo.io) theme inspired by
## Install ## Install
To use the theme, clone this repository into your site's `themes` directory: The easiest way to install the theme is to clone this repository into your site's `themes` directory:
```shell ```shell
cd ./themes git clone https://github.com/joeroe/risotto themes/risotto
git clone https://github.com/joeroe/risotto risotto
``` ```
Then add `theme = risotto` to your site's `config.toml` or `config.yaml`. If your site is already a git repository, you can add the theme as a submodule instead:
## Configuration ```shell
git submodule add https://github.com/joeroe/risotto.git themes/risotto
```
## Configure
To use the theme, add `theme = risotto` to your site's `config.toml` or `config.yaml`.
See `exampleSite/config.toml` for the theme-specific parameters you need to add to your site's `config.toml` or `config.yaml` to configure the theme. See `exampleSite/config.toml` for the theme-specific parameters you need to add to your site's `config.toml` or `config.yaml` to configure the theme.
## Updating ## Update
Use git to get the latest version of the theme: If you installed the theme using `git clone`, pull the repository to get the latest version:
```shell ```shell
cd ./themes/risotto cd themes/risotto
git pull git pull
``` ```
Or, if you added it as a git submodule:
```shell
git submodule update --remote
```