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

single.html « _default « layouts - github.com/themefisher/persian-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 06ef29027aa0137d637451ae7452f06261f7ae90 (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
{{ define "main" }}

<section>
  <div class="container-fluid">
    <div class="post">
      <img src="{{ .Params.Image | absURL }}" class="img-fluid w-100" alt="{{ .Title }}">
      <div class="post-content">
        <div class="post-date">
          <span>{{ .PublishDate.Format "02" }}</span>
          <span>{{ .PublishDate.Format "Jan" }}</span>
        </div>
        <h2 class="post-title">{{ .Title }}</h2>
      </div>
    </div>
  </div>
</section>

<section class="section-sm">
  <div class="container">
    <div class="row">
      <div class="col-lg-8 mx-auto">
        <h1 class="mb-4">{{ .Title }}</h1>
        <div class="content">{{.Content}}</div>

        <div class="text-center mt-5">
          <ul class="list-inline post-meta d-inline-block mr-4">
            <li class="list-inline-item"><i class="ti-tag"></i></li>
            {{ range .Params.Tags }}
            <li class="list-inline-item">
              <a href="{{ `tags/` | relLangURL }}{{ . | urlize | lower }}">{{ . | humanize }}</a>
            </li>
            {{ end }}
          </ul>
          {{ if (isset .Params "author") }}
          <span><i class="ti-user mr-2"></i><a
              href="{{ `author/` | relLangURL }}{{ .Params.author | urlize }}/">{{ .Params.author }}</a></span>
          {{ end }}
        </div>
      </div>
    </div>
  </div>
</section>

{{ if .Site.DisqusShortname }}
<section class="section-sm bg-light">
  <div class="container">
    <div class="row">
      <div class="col-lg-8 mx-auto">
        {{ template "_internal/disqus.html" . }}
      </div>
    </div>
  </div>
</section>
{{ end }}

{{ end }}