Skip to content

Commit d146b3c

Browse files
committed
fix: #177 use rendered provider name in default template
1 parent fd28c5c commit d146b3c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/provider/template.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,15 @@ description: |-
330330

331331
const defaultProviderTemplate providerTemplate = `---
332332
` + frontmatterComment + `
333-
page_title: "{{.ProviderShortName}} Provider"
333+
{{- $name := .ProviderShortName}}
334+
{{- if ne .ProviderName .RenderedProviderName }}{{ $name = .RenderedProviderName}}{{ end }}
335+
page_title: "{{$name}} Provider"
334336
subcategory: ""
335337
description: |-
336338
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
337339
---
338340
339-
# {{.ProviderShortName}} Provider
341+
# {{$name}} Provider
340342
341343
{{ .Description | trimspace }}
342344

0 commit comments

Comments
 (0)