page-heading.html 368 B

123456789
  1. {{/* Use the title and description of the first page to begin the document */}}
  2. {{ $tpl := printf "print/page-heading-%s.html" .Page.Type }}
  3. {{ if templates.Exists (printf "_partials/%s" $tpl) }}
  4. {{ partial $tpl . }}
  5. {{ else -}}
  6. <h1 class="title">{{ .Title }}</h1>
  7. {{ with .Page.Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
  8. {{ end }}