README: Document including hugo-social-metadata in themes

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2020-02-03 01:45:28 +05:30
parent da03beb04d
commit 14e29d1fd0
1 changed files with 7 additions and 1 deletions

View File

@ -18,7 +18,13 @@ This is a [Hugo](https://gohugo.io) theme component that automatically generates
socialImage = "path/to/the/twitter/card/image"
```
3. Include the `social_metadata.html` partial in your `head.html` like so: `{{ partial "social_metadata.html" . }}`.
3. Include the `hugo-social-metadata` theme as the leftmost element of the theme list variable in your config file. For `config.toml`, it will look something like this:
```toml
theme = ["hugo-social-metadata", "hyde"]
```
4. Include the `social_metadata.html` partial in your `head.html` like so: `{{ partial "social_metadata.html" . }}`.
## Additional customizations