summaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
blob: 53f486a06288a02d792eede31ddb9addeb14aaf4 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
{{ define "main" }}

<!-- Post Content -->
<article>
  <div class="container">
    <div class="row">

      <!-- Post Container -->
      <div class="
              col-lg-8 col-lg-offset-2
              col-md-10 col-md-offset-1
              post-container">
        {{ .Content }}

        <hr style="visibility: hidden;" />

        <!-- comments -->
        {{ partial "comments.html" . }}

      </div>

      <!-- Side Catalog Container -->
      {{ $toc := .Scratch.Get "toc" }}
      {{ if $toc }}
      <div class="
              col-lg-2 col-lg-offset-0
              visible-lg-block
              sidebar-container
              catalog-container">
        <div class="side-catalog">
          <hr class="hidden-sm hidden-xs">
          <h5>
            <a class="catalog-toggle" href="#">CATALOG</a>
          </h5>
          <ul class="catalog-body"></ul>
        </div>
      </div>
      {{ end }}
      <!-- Sidebar Container -->
      <div class="
              col-lg-8 col-lg-offset-2
              col-md-10 col-md-offset-1
              sidebar-container">

        <!-- Featured Tags -->
        {{ .Scratch.Set "bottom" true }}
        {{ partial "featured-tags.html" . }}

        <!-- Friends Blog -->
        {{ partial "friends.html" . }}
      </div>
    </div>
  </div>
</article>

{{ end }}