- {{ include('@digital_gov/partials/guides/guide-header.html.twig') }} - - {# NOT - MIGRATED - {-- partial "core/guides/guide-menu-bar.html" . -} - #} - {# NOT - MIGRATED - {% if .Params.guide %} - {{ $guideData = index $.Site.Data.guidenav (.Params.guide) }} + {% if (guide_start_node) %} + {{ include('@digital_gov/partials/guides/guide-header.html.twig', { + node: guide_start_node, + parent_link: guide_parent_link, + featured_image: guide_featured_image, + }, with_context=false) + }} {% endif %} - #} - {% if guideData.showInPageNav %} + + {{ include('@digital_gov/partials/guides/guide-menu-bar.html.twig') }} + + {% if show_in_page_nav %}
{{ include('@digital_gov/partials/guides/guide-content.html.twig') }} diff --git a/web/themes/custom/digital_gov/templates/partials/guides/guide-content.html.twig b/web/themes/custom/digital_gov/templates/partials/guides/guide-content.html.twig index b0172a31..ebce9bfc 100644 --- a/web/themes/custom/digital_gov/templates/partials/guides/guide-content.html.twig +++ b/web/themes/custom/digital_gov/templates/partials/guides/guide-content.html.twig @@ -1,20 +1,73 @@
- [placeholder Guide Content Header] - {# NOT-MIGRATED - {{ partial "core/guides/guide-content-header.html" . }} - #} +
+ + {% if is_guide_overview %} +

Overview

+ {% else %} +

{{ label|field_value }}

+ {{ content.field_summary }} + {% endif %} + + {% if show_reading_time %} +

+ Reading time: {{ reading_time }} +

+ {% endif %} + + {% if show_summary_box %} + {{ include('@digital_gov/partials/usa-summary-box.html.twig', { + containerClass: 'dg-guide-summary', + }, with_context=false) }} + {% endif -%} +
+
- {{ content }} + {{ content.body }}
+ +
+
+
+ + + + Digital Gov Logo + + + {% if glossary %} + + {% endif %} +
+ +
+
+ +
+
+ +{% macro link_item(link, current) %} + {{ link.text }} +{% endmacro %} diff --git a/web/themes/custom/digital_gov/templates/partials/guides/guide-sidenav.html.twig b/web/themes/custom/digital_gov/templates/partials/guides/guide-sidenav.html.twig new file mode 100644 index 00000000..f91141b7 --- /dev/null +++ b/web/themes/custom/digital_gov/templates/partials/guides/guide-sidenav.html.twig @@ -0,0 +1,31 @@ +{% set subnav_links = guide_nav[guide_current_index].subnav %} +{% set subnav_main = guide_nav[guide_current_index].link %} + + diff --git a/web/themes/custom/digital_gov/templates/partials/usa-summary-box.html.twig b/web/themes/custom/digital_gov/templates/partials/usa-summary-box.html.twig new file mode 100644 index 00000000..d78a530e --- /dev/null +++ b/web/themes/custom/digital_gov/templates/partials/usa-summary-box.html.twig @@ -0,0 +1,14 @@ +
+
+

+ On this page +

+
+
    +
    +
    +