diff --git a/internal/provider/template.go b/internal/provider/template.go index dcc1e541..61061429 100644 --- a/internal/provider/template.go +++ b/internal/provider/template.go @@ -245,13 +245,15 @@ Import is supported using the following syntax: const defaultProviderTemplate providerTemplate = `--- ` + frontmatterComment + ` -page_title: "{{.ProviderShortName}} Provider" +{{- $name := .ProviderShortName}} +{{- if ne .ProviderName .RenderedProviderName }}{{ $name = .RenderedProviderName}}{{ end }} +page_title: "{{$name}} Provider" subcategory: "" description: |- {{ .Description | plainmarkdown | trimspace | prefixlines " " }} --- -# {{.ProviderShortName}} Provider +# {{$name}} Provider {{ .Description | trimspace }}