diff --git a/templates/assembly.adoc b/templates/assembly.adoc index 200a7a8..74fdbab 100644 --- a/templates/assembly.adoc +++ b/templates/assembly.adoc @@ -27,7 +27,9 @@ ways: Add the prefix assembly- or assembly_ to the file name. Add the following attribute before the module ID: //// +{% if metadata -%} :_mod-docs-content-type: ASSEMBLY +{%- endif %} {% if simplified -%} [id="{{module_anchor}}"] diff --git a/templates/concept.adoc b/templates/concept.adoc index 9c6da55..87b1672 100644 --- a/templates/concept.adoc +++ b/templates/concept.adoc @@ -15,7 +15,9 @@ ways: Add the prefix con- or con_ to the file name. Add the following attribute before the module ID: //// +{% if metadata -%} :_mod-docs-content-type: CONCEPT +{%- endif %} //// The ID is an anchor that links to the module. Avoid changing it after the module has been published to ensure existing links are not broken. diff --git a/templates/procedure.adoc b/templates/procedure.adoc index 865d842..ec37c3c 100644 --- a/templates/procedure.adoc +++ b/templates/procedure.adoc @@ -15,7 +15,9 @@ ways: Add the prefix proc- or proc_ to the file name. Add the following attribute before the module ID: //// +{% if metadata -%} :_mod-docs-content-type: PROCEDURE +{%- endif %} {% if simplified -%} [id="{{module_anchor}}"] diff --git a/templates/reference.adoc b/templates/reference.adoc index 3203d14..b7fea8c 100644 --- a/templates/reference.adoc +++ b/templates/reference.adoc @@ -19,7 +19,9 @@ ways: Add the prefix ref- or ref_ to the file name. Add the following attribute before the module ID: //// +{% if metadata -%} :_mod-docs-content-type: REFERENCE +{%- endif %} {% if simplified -%} [id="{{module_anchor}}"] diff --git a/templates/snippet.adoc b/templates/snippet.adoc index 1c2fe05..8426ca5 100644 --- a/templates/snippet.adoc +++ b/templates/snippet.adoc @@ -14,7 +14,9 @@ Add the prefix snip- or snip_ to the file name. Add the following attribute before the title: :_mod-docs-content-type: SNIPPET //// +{% if metadata -%} :_mod-docs-content-type: SNIPPET +{%- endif %} .{{module_title}} ////