<header>
  <h1>
    {{# strapline }}<span class="strapline">{{ strapline }}</span>{{/ strapline }}
    {{ title }}
    {{# tagline }}<span class="tagline">{{ tagline }}</span>{{/ tagline }}
  </h1>
  {{# related_pages_title }}
    <aside class='related-pages'>
      <h3>{{ related_pages_title }}</h3>
      {{! this could come from a relatively simple query to https://www.gov.uk/government/policies.json?keywords=&topics%5B%5D=housing&departments%5B%5D=all }}
      {{! we'll pretend it comes from stagecraft for now }}
      <ol class="items">
        {{# related_pages }}
        <li>
          <h3><a href="{{ url }}" rel="external" target="blank">{{ title }}</a></h3>
          <ul class="attributes">
            <li>{{{ display_date_microformat }}}</li>
            <li class="organisations">
              {{{ organisations }}}
            </li>
          </ul>
        </li>
        {{/ related_pages }}
      </ol>
    </aside>
  {{/ related_pages_title }}
  {{# copy }}<p class="explanatory">{{ copy }}</p>{{/ copy }}
</header>

{{{ modules }}}

<header>
  <h1>
    {{# strapline }}<span class="strapline">{{ strapline }}</span>{{/ strapline }}
    {{ title }}
    {{# tagline }}<span class="tagline">{{ tagline }}</span>{{/ tagline }}
  </h1>
  {{# related_pages_title }}
    <aside class='related-pages'>
      <h3>{{ related_pages_title }}</h3>
      {{! this could come from a relatively simple query to https://www.gov.uk/government/policies.json?keywords=&topics%5B%5D=housing&departments%5B%5D=all }}
      {{! we'll pretend it comes from stagecraft for now }}
      <ol class="items">
        {{# related_pages }}
        <li>
          <h3><a href="{{ url }}" rel="external" target="_blank">{{ title }}</a></h3>
          <ul class="attributes">
            <li>{{{ display_date_microformat }}}</li>
            <li class="organisations">
              {{{ organisations }}}
            </li>
          </ul>
        </li>
        {{/ related_pages }}
      </ol>
    </aside>
  {{/ related_pages_title }}
  {{# copy }}<p class="explanatory">{{ copy }}</p>{{/ copy }}
</header>

{{{ modules }}}

Fix target attribute of related pages links
Fix target attribute of related pages links
