We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f535d3 commit 5ef5342Copy full SHA for 5ef5342
internal/provider/template.go
@@ -245,13 +245,15 @@ Import is supported using the following syntax:
245
246
const defaultProviderTemplate providerTemplate = `---
247
` + frontmatterComment + `
248
-page_title: "{{.ProviderShortName}} Provider"
+{{- $name := .ProviderShortName}}
249
+{{- if ne .ProviderName .RenderedProviderName }}{{ $name = .RenderedProviderName}}{{ end }}
250
+page_title: "{{$name}} Provider"
251
subcategory: ""
252
description: |-
253
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
254
---
255
-# {{.ProviderShortName}} Provider
256
+# {{$name}} Provider
257
258
{{ .Description | trimspace }}
259
0 commit comments