Chris@0: {# Chris@0: /** Chris@0: * @file Chris@0: * Theme override for printed version of book outline. Chris@0: * Chris@0: * Available variables: Chris@0: * - title: Top level node title. Chris@0: * - head: Header tags. Chris@0: * - language: Language object. Chris@0: * - language_rtl: A flag indicating whether the current display language is a Chris@0: * right to left language. Chris@0: * - base_url: URL to the home page. Chris@0: * - contents: Nodes within the current outline rendered through Chris@0: * book-node-export-html.html.twig. Chris@0: * Chris@0: * @see template_preprocess_book_export_html() Chris@0: */ Chris@0: #} Chris@0: Chris@0: Chris@0: Chris@0: {{ title }} Chris@0: {{ page.head }} Chris@0: Chris@0: Chris@0: Chris@0: Chris@0: {# Chris@0: The given node is embedded to its absolute depth in a top level section. Chris@0: For example, a child node with depth 2 in the hierarchy is contained in Chris@0: (otherwise empty) div elements corresponding to depth 0 and depth 1. This Chris@0: is intended to support WYSIWYG output - e.g., level 3 sections always look Chris@0: like level 3 sections, no matter their depth relative to the node selected Chris@0: to be exported as printer-friendly HTML. Chris@0: #} Chris@0: Chris@0: {% for i in 1..depth-1 if depth > 1 %} Chris@0:
Chris@0: {% endfor %} Chris@0: {{ contents }} Chris@0: {% for i in 1..depth-1 if depth > 1 %} Chris@0:
Chris@0: {% endfor %} Chris@0: Chris@0: