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

actions.html « post « partials « layouts - github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 75accc721ee16207e4f24ee50aaff3072ce62ff6 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{{ if not (eq .Params.showActions false) }}
<div class="post-actions-wrap">
  <nav {{ if eq .Params.showPagination false }}style="visibility: hidden"{{ end }}>
    <ul class="post-actions post-action-nav">
      {{ if .Site.Params.swapPaginator }}
        <li class="post-action">
          {{ with .PrevInSection }}
            <a class="post-action-btn btn btn--default tooltip--top" href="{{ .RelPermalink }}" data-tooltip="{{ .Title }}" aria-label="{{ i18n "pagination.previous" }}: {{ .Title }}">
          {{ else }}
            <a class="post-action-btn btn btn--disabled">
          {{ end }}
              <i class="fa fa-angle-left"></i>
              <span class="hide-xs hide-sm text-small icon-ml">{{ i18n "pagination.previous" }}</span>
            </a>
        </li>
        <li class="post-action">
          {{ with .NextInSection }}
            <a class="post-action-btn btn btn--default tooltip--top" href="{{ .RelPermalink }}" data-tooltip="{{ .Title }}" aria-label="{{ i18n "pagination.next" }}: {{ .Title }}">
          {{ else }}
            <a class="post-action-btn btn btn--disabled">
          {{ end }}
              <span class="hide-xs hide-sm text-small icon-mr">{{ i18n "pagination.next" }}</span>
              <i class="fa fa-angle-right"></i>
            </a>
        </li>
      {{ else }}
        <li class="post-action">
          {{ with .NextInSection }}
            <a class="post-action-btn btn btn--default tooltip--top" href="{{ .RelPermalink }}" data-tooltip="{{ .Title }}" aria-label="{{ i18n "pagination.next" }}: {{ .Title }}">
          {{ else }}
            <a class="post-action-btn btn btn--disabled">
          {{ end }}
              <i class="fa fa-angle-left"></i>
              <span class="hide-xs hide-sm text-small icon-ml">{{ i18n "pagination.next" }}</span>
            </a>
        </li>
        <li class="post-action">
          {{ with .PrevInSection }}
            <a class="post-action-btn btn btn--default tooltip--top" href="{{ .RelPermalink }}" data-tooltip="{{ .Title }}" aria-label="{{ i18n "pagination.previous" }}: {{ .Title }}">
          {{ else }}
            <a class="post-action-btn btn btn--disabled">
          {{ end }}
              <span class="hide-xs hide-sm text-small icon-mr">{{ i18n "pagination.previous" }}</span>
              <i class="fa fa-angle-right"></i>
            </a>
        </li>
      {{ end }}
    </ul>
  </nav>
<ul class="post-actions post-action-share" >
  {{ if (not (eq .Params.showSocial false)) }}
    <li class="post-action hide-lg hide-md hide-sm">
      <a class="post-action-btn btn btn--default btn-open-shareoptions" href="#btn-open-shareoptions" aria-label="{{ i18n "post.share" }}">
        <i class="fa fa-share-alt" aria-hidden="true"></i>
      </a>
    </li>
    {{ range .Site.Params.sharingOptions }}
      <li class="post-action hide-xs">
        <a class="post-action-btn btn btn--default" target="new" href="{{ printf .url $.Permalink }}" title="{{ replace (i18n "global.share_on") "%s" .name }}" aria-label="{{ replace (i18n "global.share_on") "%s" .name }}">
          <i class="{{ .icon }}" aria-hidden="true"></i>
        </a>
      </li>
    {{ end }}
  {{ end }}
  {{ if and (and (.Site.Params.comment.disqus.enable) (not (.Site.Config.Privacy.Disqus.Disable))) .Site.DisqusShortname }}
    <li class="post-action">
      <a class="post-action-btn btn btn--default" href="#disqus_thread" aria-label="{{ i18n "post.comment" }}">
        <i class="far fa-comment"></i>
      </a>
    </li>
  {{ else if .Site.Params.comment.gitalk.enable }}
    <li class="post-action">
      <a class="post-action-btn btn btn--default" href="#gitalk" aria-label="{{ i18n "post.comment" }}">
        <i class="fa fa-comment"></i>
      </a>
    </li>
  {{ end }}
  <li class="post-action">
    {{ if findRE "<!--\\s*[t|T][o|O][c|C]\\s*-->" .Content }}
      <a class="post-action-btn btn btn--default" href="#table-of-contents" aria-label="{{ i18n "post.toc" }}">
      <i class="fa fa-list" aria-hidden="true"></i>
    {{ else }}
      <a class="post-action-btn btn btn--default" href="#top" aria-label="{{ i18n "post.back_to_top" }}">
      <i class="fa fa-arrow-up" aria-hidden="true"></i>
    {{ end }}
    </a>
  </li>
</ul>
</div>
{{ end }}