diff --git a/layouts/_default/api.markdown.md b/layouts/_default/api.markdown.md index ff3bef0693..012b44430c 100644 --- a/layouts/_default/api.markdown.md +++ b/layouts/_default/api.markdown.md @@ -1,38 +1,5 @@ ---- -title: {{ .Title }} -url: {{ .Permalink }} -{{- range .Ancestors }} - {{- if and (not .IsHome) .Permalink }} -parent: - title: {{ .Title }} - url: {{ .Permalink }} - {{- break }} - {{- end }} -{{- end }} -{{- if .Ancestors }} -breadcrumbs: -{{- range .Ancestors.Reverse }} - {{- if and (not .IsHome) .Permalink }} - - title: {{ .Title }} - url: {{ .Permalink }} - {{- end }} -{{- end }} - - title: {{ .Title }} - url: {{ .Permalink }} -{{- end }} -{{- with .NextInSection }} -next: - title: {{ .Title }} - url: {{ .Permalink }} -{{- end }} -{{- with .PrevInSection }} -prev: - title: {{ .Title }} - url: {{ .Permalink }} -{{- end }} -{{- $specURL := urls.Parse (printf "/%s%s.yaml" .File.Dir .File.ContentBaseName) }} -openapi_spec: {{ $specURL.String | absURL }} ---- +{{- $specURL := urls.Parse (printf "/%s%s.yaml" .File.Dir .File.ContentBaseName) -}} +# {{ .Title }} {{ .Content }} diff --git a/layouts/_default/cli.markdown.md b/layouts/_default/cli.markdown.md index 99cfd9ecc0..7c03cb1f0b 100644 --- a/layouts/_default/cli.markdown.md +++ b/layouts/_default/cli.markdown.md @@ -4,39 +4,7 @@ {{- else }} {{- $data = index site.Data .Params.datafile }} {{- end -}} ---- -title: {{ .Title }} -url: {{ .Permalink }} -{{- range .Ancestors }} - {{- if and (not .IsHome) .Permalink }} -parent: - title: {{ .Title }} - url: {{ .Permalink }} - {{- break }} - {{- end }} -{{- end }} -{{- if .Ancestors }} -breadcrumbs: -{{- range .Ancestors.Reverse }} - {{- if and (not .IsHome) .Permalink }} - - title: {{ .Title }} - url: {{ .Permalink }} - {{- end }} -{{- end }} - - title: {{ .Title }} - url: {{ .Permalink }} -{{- end }} -{{- with .NextInSection }} -next: - title: {{ .Title }} - url: {{ .Permalink }} -{{- end }} -{{- with .PrevInSection }} -prev: - title: {{ .Title }} - url: {{ .Permalink }} -{{- end }} ---- +# {{ .Title }} {{ with $data.short }}**Description:** {{ . }}{{ end }} diff --git a/layouts/_default/list.markdown.md b/layouts/_default/list.markdown.md index ab2747bc38..54f3071376 100644 --- a/layouts/_default/list.markdown.md +++ b/layouts/_default/list.markdown.md @@ -1,36 +1,3 @@ ---- -title: {{ .Title }} -url: {{ .Permalink }} -{{- range .Ancestors }} - {{- if and (not .IsHome) .Permalink }} -parent: - title: {{ .Title }} - url: {{ .Permalink }} - {{- break }} - {{- end }} -{{- end }} -{{- if .Ancestors }} -breadcrumbs: -{{- range .Ancestors.Reverse }} - {{- if and (not .IsHome) .Permalink }} - - title: {{ .Title }} - url: {{ .Permalink }} - {{- end }} -{{- end }} - - title: {{ .Title }} - url: {{ .Permalink }} -{{- end }} -{{- $children := where .Pages "Permalink" "ne" "" }} -{{- if $children }} -children: -{{- range $children }} - - title: {{ .Title }} - url: {{ .Permalink }} - {{- with .Description }} - description: {{ . }} - {{- end }} -{{- end }} -{{- end }} ---- +# {{ .Title }} {{ .RenderShortcodes }} diff --git a/layouts/_default/single.markdown.md b/layouts/_default/single.markdown.md index 40c1778180..54f3071376 100644 --- a/layouts/_default/single.markdown.md +++ b/layouts/_default/single.markdown.md @@ -1,35 +1,3 @@ ---- -title: {{ .Title }} -url: {{ .Permalink }} -{{- range .Ancestors }} - {{- if and (not .IsHome) .Permalink }} -parent: - title: {{ .Title }} - url: {{ .Permalink }} - {{- break }} - {{- end }} -{{- end }} -{{- if .Ancestors }} -breadcrumbs: -{{- range .Ancestors.Reverse }} - {{- if and (not .IsHome) .Permalink }} - - title: {{ .Title }} - url: {{ .Permalink }} - {{- end }} -{{- end }} - - title: {{ .Title }} - url: {{ .Permalink }} -{{- end }} -{{- with .NextInSection }} -next: - title: {{ .Title }} - url: {{ .Permalink }} -{{- end }} -{{- with .PrevInSection }} -prev: - title: {{ .Title }} - url: {{ .Permalink }} -{{- end }} ---- +# {{ .Title }} {{ .RenderShortcodes }}