Welcome to mirror list, hosted at ThFree Co, Russian Federation.

single.html « blog « layouts - github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 271a365e61b7b49d45256c638739d722952d49a2 (plain)
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
57
58
59
60
61
62
63
64
65
66
{{ define "main" }}
<div class="mid">
  <div class="divider">
    
    <nav id="single-menu" class="l">
    </nav>

    <article id="list-main" class="m">
      {{ if $.Param "enableBlogBreadcrumb" }}
        {{ partial "main/component/breadcrumb.html" . }}
      {{ end }}
      {{ partial "main/sections/list-main.html" . }}
      {{ partial "main/component/pagination-single.html" . }}
    </article>
    
    <section id="list-side" class="r">
      {{ if $.Param "enableToc" }}
        {{ partial "main/component/toc.html" . }}
      {{ end }}
    </section>

  </div>
</div>

<script>
  var listSide = document.getElementById('list-side');
  var listMain = document.getElementById('list-main');
  var singleMenu = document.getElementById('single-menu');

  enquire.register("screen and (max-width:1280px)", {
    match: function () {
      listSide.className = 'r';
      listMain.className = 'm';
      singleMenu.className = 'l';
    },
    unmatch: function () {
      listSide.className = 'r';
      listMain.className = 'm';
      singleMenu.className = 'l';
    },
  }).register("screen and (max-width:960px)", {
    match: function () {
      listSide.className = 'r';
      listMain.className = 'lm';
      singleMenu.className = 'hide';
    },
    unmatch: function () {
      listSide.className = 'r';
      listMain.className = 'm';
      singleMenu.className = 'l';
    },
  }).register("screen and (max-width:600px)", {
    match: function () {
      listSide.className = 'hide';
      listMain.className = 'lmr';
      singleMenu.className = 'hide';
    },
    unmatch: function () {
      listSide.className = 'r';
      listMain.className = 'lm';
      singleMenu.className = 'hide';
      
    },
  });
</script>
{{ end }}