diff options
| author | Maciej Sawicki <humberd2@gmail.com> | 2020-12-16 12:13:30 +0100 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-12-16 18:07:59 +0530 |
| commit | d6b22825827ed5d2153008b8f123e11374be3363 (patch) | |
| tree | e1736360aefd110613b139d6b3f5b6dba1549d05 /assets/css/header.css | |
| parent | f5417ab6d05badb48cf870027421b72b552d0228 (diff) | |
templates: Fix series detection in opengraph
When inside front matter you specified series with spaces,
then the opengraph template wouldn't detect other articles,
because in `.Site.Taxonomies.series` they are stored by
urlized key.
Example:
```yaml
series:
- My Series
```
```gohtml
{{/* in a template */}}
{{- $series := index .Site.Taxonomies.series$name }}
{{/* was resolved to */}}
{{- $series := index {'my-series': ...} "MySeries" }}
```
(cherry picked from commit d2d493ab5d6a054001a8448ea0de2949dac4b30e)
Diffstat (limited to 'assets/css/header.css')
0 files changed, 0 insertions, 0 deletions
