summaryrefslogtreecommitdiffhomepage
path: root/web/layouts/single.html
blob: aef02ce7494ab9abfe3edbd1dd9878728a33c730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{ define "main" }}
{{ if eq .Section "docs" }}
<div class="docs">
  {{ partial "docs-nav.html" . }}
  <article>
    <div class="docs-head">
      <p class="kicker">docs</p>
      {{ if not .Params.notitle }}<h1>{{ .Title }}</h1>{{ end }}
      {{ with .Description }}<p class="lede">{{ . }}</p>{{ end }}
    </div>
    {{ .Content }}
    <p class="edit">
      <a href="{{ site.Params.repo }}/edit/main/{{ with .Params.source }}{{ . }}{{ else }}web/content/{{ $.File.Path }}{{ end }}">Edit this page</a>
    </p>
  </article>
</div>
{{ else }}
<article>
  <h1>{{ .Title }}</h1>
  {{ .Content }}
</article>
{{ end }}
{{ end }}