{{- /* relativeURLs don't work inside CSS style declarations :(, see https://github.com/gohugoio/hugo/issues/2744 */ -}}
<!-- <div>{{.RelPermalink}}</div> -->
{{- $dirdepth := (split (trim .RelPermalink "/") "/") | len -}}
{{- $relbasedir := cond (eq $dirdepth 1) "" ("../" | strings.Repeat (sub $dirdepth 1)) -}}
{{- .Page.Scratch.Set "relbasedir" $relbasedir -}}
{{- if not (getenv "HUGO_BOOSTDOCDISABLECOMMONHEADING") -}}
<div id="boost-common-heading-doc" style="background: #574D74 url('{{ $relbasedir }}images/header-bg.png') repeat-x top left;">
  <div class="heading-inner" style="background: url('{{ $relbasedir }}images/header-fg.png') no-repeat top left;">
  <div class="heading-placard"></div>

  <h1 class="heading-title">
    <a href="/">
      <img src="{{"images/space.png" | relURL}}" alt="Boost C++ Libraries" class="heading-logo" />
      <span class="heading-boost">Boost</span>
      <span class="heading-cpplibraries">C++ Libraries</span>
    </a>
  </h1>

  <p class="heading-quote">
    <q>...one of the most highly
    regarded and expertly designed C++ library projects in the
    world.</q> <span class="heading-attribution">&mdash; <a href=
    "http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
    "http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
    Alexandrescu</a>, <a href=
    "http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
    Coding Standards</a></span></p>
  </div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
{{- end -}}
