Merge commit '35febb2e2a3780c3338a2665fddea7dda28a17f4'

This commit is contained in:
Bjørn Erik Pedersen
2019-07-15 23:50:56 +02:00
42 changed files with 343 additions and 152 deletions

View File

@@ -137,7 +137,7 @@ description = "Text about this post"
date = "2006-01-02"
images = ["post-cover.png"]
audio = []
video = []
videos = []
series = []
tags = []
{{</ code-toggle >}}
@@ -146,11 +146,14 @@ Hugo uses the page title and description for the title and description metadata.
The first 6 URLs from the `images` array are used for image metadata.
Various optional metadata can also be set:
- Date, published date, and last modified data are used to set the published time metadata if specified.
- `audio` and `video` are URL arrays like `images` for the audio and video metadata tags, respectively.
- `audio` and `videos` are URL arrays like `images` for the audio and video metadata tags, respectively.
- The first 6 `tags` on the page are used for the tags metadata.
- The `series` taxonomy is used to specify related "see also" pages by placing them in the same series.
If using YouTube this will produce a og:video tag like `<meta property="og:video" content="url">`. If using a YouTube link make sure this is in **https://www.youtube.com/v/NlXVWtgLNjY** not __https://www.youtube.com/watch?v=NlXVWtgLNjY__
### Use the Open Graph Template
To add Open Graph metadata, include the following line between the `<head>` tags in your templates:
@@ -160,6 +163,7 @@ To add Open Graph metadata, include the following line between the `<head>` tags
```
## Twitter Cards
An internal template for [Twitter Cards](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards),
metadata used to attach rich media to Tweets linking to your site.