aboutsummaryrefslogtreecommitdiff
path: root/layouts/projects/single.html
blob: 34f048ca788d3a61a669d46d6ca7b67b6249391f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{{ define "main" }}
<div class="container">
  <div class="row">
      <div class="col-xs-12 col-sm-12 col-md-4 sidebar">
          <h1 class="post-title fw-semibold"><a href="{{.Page.FirstSection.RelPermalink}}">{{.Page.FirstSection.Title}}</a></h1>
          {{ if .Page.TableOfContents }}
          <h2 class="fw-semibold">Содержание</h2>
          {{ .Page.TableOfContents }}
          {{ end }}
          {{if .Page.CurrentSection.Pages}}
          <h2 class="fw-semibold">Остальное</h2>
          <ul>
              {{ range .Page.CurrentSection.Pages }}
              <li>
                  <a href="{{ .RelPermalink }}">{{ .Title }}</a>
              </li>
              {{ end }}
          </ul>
          {{ end }}
      </div>
      <div class="col-xs-12 col-sm-12 col-md-8 content">
        <div class="post">
            {{ partial "single/header.html" . }}
            <div class="alert alert-info" role="alert">
              <div class="btn-group">
                <a class="btn btn-primary" target="_blank" href="{{.Params.project_url}}">
                    {{ partial "icon.html" "link" }}&nbsp;{{.Params.project_url}}
                </a>
                {{ if .Params.git_url}}
                  <a class="btn btn-primary" target="_blank" href="{{.Params.git_url}}">
                      {{ partial "icon.html" "git" }}&nbsp;{{.Params.git_url}}
                  </a>
                {{ end }}
              </div>
            </div>
            <div class="e-content">{{ .Content }}</div>
            {{ partial "single/footer.html" . }}
        </div>
      </div>
    </div>
  </div>
</div>
{{ end }}