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

single.html « blog « layouts - github.com/onweru/compose.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 55df0ae65071c12688c9d7d036b232ad2ffe8ac3 (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
{{ define "main" }}
  <div class="wrap mt post">
    <div>
      {{- $date := (dateFormat "02. January 2006" .Date) -}}
      <p class="post_date">{{ $date }}</p>
      <h1 class="post_title">{{ .Title }}</h1>
      <div class="post_body">
        <div class="post_inner">
        {{ with .Params.image }}
          {{- $image := absURL (printf "images/%s" .) }}
          {{ if in . "https://" }}
            {{- $image = . }}
          {{ end }}
          <img src="{{ $image }}" alt="{{ . }}" class="post_thumbnail">
        {{ end }}
          {{ .Content }}
        </div>
        <div class="post_extra mb-2">
          {{ partialCached "share" . }}
        </div>
        <div>
        {{ template "_internal/disqus.html" . }}
        </div>
      </div>
    </div>
    <!-- <a href="{{ $.Site.BaseURL }}" class="post_nav">
      <span class="post_next">The Latest 
        <svg class="icon icon_scale">
          <use xlink:href="#double-arrow"></use>
        </svg>
      </span>
    </a> -->
  </div>
{{ end }}