Commit Graph

4 Commits

Author SHA1 Message Date
Maciej Sawicki
d6b2282582 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)
2020-12-16 18:07:59 +05:30
Aditya Telange
23636ab326
templates: social-meta: prefer cover image over other images 2020-10-12 17:26:45 +05:30
Aditya Telange
4a4d0c009c
templates: add cover image to be linked into meta
for opengraph, schema and twitter
2020-10-11 21:04:17 +05:30
Aditya Telange
6c4e094c91
templates: Add Twitter Cards, OpenGraph, Schema
This code is licensed under Apache License 2.0
and is part of https://github.com/gohugoio/hugo
2020-10-11 20:07:43 +05:30