Skip to content

Commit d78a366

Browse files
committed
fix: #177 use rendered provider name in default template
1 parent 37499d4 commit d78a366

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
@@ -329,13 +329,15 @@ description: |-
329329

330330
const defaultProviderTemplate providerTemplate = `---
331331
` + frontmatterComment + `
332-
page_title: "{{.ProviderShortName}} Provider"
332+
{{- $name := .ProviderShortName}}
333+
{{- if ne .ProviderName .RenderedProviderName }}{{ $name = .RenderedProviderName}}{{ end }}
334+
page_title: "{{$name}} Provider"
333335
subcategory: ""
334336
description: |-
335337
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
336338
---
337339
338-
# {{.ProviderShortName}} Provider
340+
# {{$name}} Provider
339341
340342
{{ .Description | trimspace }}
341343

0 commit comments

Comments
 (0)