diff --git a/layouts/partials/docs/content-page.html b/layouts/partials/docs/content-page.html index c6ece3e527..87ca9919a3 100644 --- a/layouts/partials/docs/content-page.html +++ b/layouts/partials/docs/content-page.html @@ -8,11 +8,7 @@ {{ if not .page.Params.notitle }}

{{ .page.Title }}

{{ end }} -{{ with .page.Params.content_template }} -{{ partial . $ }} -{{ else }} {{ if and (not .page.Params.toc_hide) (not (.page.HasShortcode "toc")) }} {{ .page.TableOfContents }} {{ end }} -{{ .page.Content }} -{{ end }} \ No newline at end of file +{{ .page.Content }} \ No newline at end of file diff --git a/layouts/partials/insert-capture.html b/layouts/partials/insert-capture.html deleted file mode 100644 index 8dcb9861ad..0000000000 --- a/layouts/partials/insert-capture.html +++ /dev/null @@ -1,4 +0,0 @@ -{{- $capture_id := printf "__cid_%s" .id -}} -{{- with .ctx.Scratch.Get $capture_id -}} -{{- . -}} -{{- end -}} diff --git a/layouts/partials/templates/block.html b/layouts/partials/templates/block.html deleted file mode 100644 index 97b397ed06..0000000000 --- a/layouts/partials/templates/block.html +++ /dev/null @@ -1,14 +0,0 @@ -{{/* We need to initialize the shortcode's page's content. This is a very special construct. We are building page blocks by setting state on the Page, -but we are not accessing its content. The .Content is lazily loaded in Hugo, so we must invoke that method before we do anything else. */}} -{{ if .page.Content }}{{ end }} -{{- $capture := printf "__cid_%s" .block -}} -{{- $block := .page.Scratch.Get $capture -}} -{{- if and (not $block) (not $.optional) -}} -{{ partial "templates/errorthrower.html" (dict "block" .block "heading" .heading "purpose" .purpose) . }} -{{- end -}} -{{- with $block -}} -{{- with $.heading }} -

{{ . }}

-{{ end -}} -{{ . }} -{{ end -}} diff --git a/layouts/partials/templates/blocks.html b/layouts/partials/templates/blocks.html deleted file mode 100644 index 2056538510..0000000000 --- a/layouts/partials/templates/blocks.html +++ /dev/null @@ -1,22 +0,0 @@ -{{ .ctx.Scratch.Set "sections" slice }} - -{{ range .ctx.Scratch.Get "sections" }} -{{ . }} -{{ end }} \ No newline at end of file diff --git a/layouts/partials/templates/concept.html b/layouts/partials/templates/concept.html deleted file mode 100644 index 4b39d665ce..0000000000 --- a/layouts/partials/templates/concept.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ partial "templates/block" (dict "page" .page "block" "overview" "purpose" "states, in one or two sentences, the purpose of this document") }} - -{{ .ctx.Scratch.Set "blocks" slice }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "body" "purpose" "supplies the body of the page content.") }} -{{ .ctx.Scratch.Add "blocks" (dict "content" .page.Content) }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "whatsnext" "heading" (i18n "whatsnext_heading") "optional" true ) }} - -{{ partial "templates/blocks" . }} diff --git a/layouts/partials/templates/errorthrower.html b/layouts/partials/templates/errorthrower.html deleted file mode 100644 index 64d2ab77e4..0000000000 --- a/layouts/partials/templates/errorthrower.html +++ /dev/null @@ -1,14 +0,0 @@ -

ERROR

- -

You must define a {{ .block }}

- - -

This template requires that you provide text that {{ .purpose }}. The text in this block will -be displayed under the heading {{ .heading }}. - -To get rid of this message and take advantage of this template, capture the {{ .block }} variable and populate it with content. - - - - -

\ No newline at end of file diff --git a/layouts/partials/templates/task.html b/layouts/partials/templates/task.html deleted file mode 100644 index 05fb8729d7..0000000000 --- a/layouts/partials/templates/task.html +++ /dev/null @@ -1,11 +0,0 @@ - -{{ partial "templates/block" (dict "page" .page "block" "overview" "purpose" "states, in one or two sentences, the purpose of this document") }} - -{{ .ctx.Scratch.Set "blocks" slice }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "prerequisites" "heading" (i18n "prerequisites_heading") "purpose" "lists action prerequisites and knowledge prerequisites.") }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "steps" "purpose" "lists a sequence of numbered steps that accomplish the task.'") }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "discussion" "optional" true ) }} -{{ .ctx.Scratch.Add "blocks" (dict "content" .page.Content) }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "whatsnext" "heading" (i18n "whatsnext_heading") "optional" true ) }} - -{{ partial "templates/blocks" . }} diff --git a/layouts/partials/templates/tool-reference.html b/layouts/partials/templates/tool-reference.html deleted file mode 100644 index 291c5419ab..0000000000 --- a/layouts/partials/templates/tool-reference.html +++ /dev/null @@ -1,13 +0,0 @@ - -{{ partial "templates/block" (dict "page" .page "block" "overview" "purpose" "provides an overview" "optional" true) }} - -{{ .ctx.Scratch.Set "blocks" slice }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "synopsis" "heading" "Synopsis" "purpose" "describes the component") }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "options" "heading" "Options" "purpose" "lists the options for the component") }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "parentoptions" "heading" "Options from Parent Commands" "optional" true ) }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "examples" "heading" "Examples" "optional" true ) }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "body" "purpose" "the body of the page content" "optional" true) }} -{{ .ctx.Scratch.Add "blocks" (dict "content" .page.Content) }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "seealso" "heading" "See Also" "optional" true ) }} - -{{ partial "templates/blocks" . }} \ No newline at end of file diff --git a/layouts/partials/templates/tutorial.html b/layouts/partials/templates/tutorial.html deleted file mode 100644 index abd0f6e4b9..0000000000 --- a/layouts/partials/templates/tutorial.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ partial "templates/block" (dict "page" .page "block" "overview" "purpose" "states, in one or two sentences, the purpose of this document") }} - -{{ .ctx.Scratch.Set "blocks" slice }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "objectives" "heading" (i18n "objectives_heading") "purpose" "lists the objectives for this tutorial.") }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "prerequisites" "heading" (i18n "prerequisites_heading") "purpose" "lists action prerequisites and knowledge prerequisites.") }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "lessoncontent" "purpose" "provides the lesson content for this tutorial.") }} -{{ .ctx.Scratch.Add "blocks" (dict "content" .page.Content) }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "cleanup" "heading" (i18n "cleanup_heading") "optional" true ) }} -{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "whatsnext" "heading" (i18n "whatsnext_heading") "optional" true ) }} - -{{ partial "templates/blocks" . }} -