File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 19
19
{{ $template := .attributes.template.data.attributes }}
20
20
{{ $image := $template.image.data.attributes }}
21
21
22
+ {{/* Use {$template.title} or {.titleOverride} */}}
23
+ {{ $title := $template.title }}
24
+ {{ if .attributes.titleOverride }}
25
+ {{ $title = .attributes.titleOverride }}
26
+ {{ end }}
27
+
22
28
{{/* Use {timeDescription} | {presenceMode} @ {venueName} for subtitle. */}}
23
29
{{ $presenceMode := .attributes.presenceMode }}
24
30
{{ $timeDescription := .attributes.timeDescription }}
31
37
{{ $subtitle = printf "%s | %s" $timeDescription $presenceMode }}
32
38
{{ end }}
33
39
34
- {{/* Use /{title}-{id} path for post. */}}
40
+ {{/* Use /{$template. title}-{id} path for post. */}}
35
41
{{ $path := (printf "%s-%.0f" $template.title .id) }}
36
42
37
43
{{/* Extract tags. */}}
57
63
"kind" "page"
58
64
"params" $params
59
65
"path" $path
60
- "title" $template. title
66
+ "title" $title
61
67
}}
62
68
63
69
{{ $.AddPage $page }}
You can’t perform that action at this time.
0 commit comments