File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import (
16
16
)
17
17
18
18
type Properties struct {
19
+ Title string `yaml:"title"`
19
20
Style StyleConfig `yaml:"style"`
20
21
Transition transitions.Transition `yaml:"transition"`
21
22
}
@@ -206,6 +207,7 @@ func getLayoutPosition(p string) (lipgloss.Position, error) {
206
207
207
208
func (p * Properties ) UnmarshalYAML (bytes []byte ) error {
208
209
aux := struct {
210
+ Title string `yaml:"title"`
209
211
Style StyleConfig `yaml:"style"`
210
212
Transition string `yaml:"transition"`
211
213
Preset string `yaml:"preset"`
@@ -215,6 +217,8 @@ func (p *Properties) UnmarshalYAML(bytes []byte) error {
215
217
return err
216
218
}
217
219
220
+ p .Title = aux .Title
221
+
218
222
if aux .Preset != "" {
219
223
preset , ok := GlobalConfig .Presets [aux .Preset ]
220
224
if ! ok {
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ type Slide struct {
17
17
Style config.SlideStyle
18
18
ActiveTransition transitions.Transition
19
19
Properties config.Properties
20
+ Title string
20
21
21
22
preRenderedFrame string
22
23
}
You can’t perform that action at this time.
0 commit comments