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

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

<main role="main">
    <article role="article" class="post type-post format-standard hentry">
        <header class="post-header">
            <h1>{{ .Title }}</h1>
            <div class="post-details">
                <a rel="bookmark">
                    <time datetime="{{ .Date.Format "2006-01-02T12:34:56" }}">{{ .Date.Format "2006-01-02" }}</time>
                </a>
				{{- if ne .Date .Lastmod }}
				<a rel="bookmark">
					<time datetime="{{ .Lastmod.Format "2006-01-02T12:34:56" }}">(Last Modified: {{.Lastmod.Format ( .Site.Params.dateformat | default "2006-01-02")}})</time>
				</a>
                {{- end }}
				{{ partial "share.html" . }}
            </div>
        </header>

        <div class="post-content">
            {{ .Content }}
        </div>



        <footer class="post-footer">
            <span class="post-categories">
                    {{ $categories := .Params.categories }}
                    {{- range $items := .Site.Taxonomies.categories -}}
                        {{ if in $categories .Page.Title }}
                        <a href="{{- .Page.Permalink -}}">{{ .Page.Title }}</a>&emsp;
                        {{ end }}
                    {{- end }}
            </span>

            <span class="post-tags">
                    {{ $tags := .Params.tags }}
                    {{- range $items := .Site.Taxonomies.tags -}}
                        {{ if in $tags .Page.Title }}
                        <a href="{{- .Page.Permalink -}}">{{ .Page.Title }}</a>&emsp;
                        {{ end }}
                    {{- end }}
            </span>
        </footer>
        {{ partial "ad_double_rectangle.html" . }}
        {{ partial "relatedposts.html" . }}
    </article>

    {{ if eq .Page.Type "post" }}
    <nav class="navigation post-navigation" role="navigation">
        <div class="nav-links">
            <div class="nav-previous">
                {{ with .PrevInSection }}
                <a class="previous" href="{{.Permalink}}"> {{.Title}}</a>
                {{ end }}
            </div>
            <div class="nav-next">
                {{ with .NextInSection }}
                <a class="next" href="{{.Permalink}}"> {{.Title}}</a>
                {{ end }}
            </div>
        </div>
    </nav>
    <section>
        {{ template "_internal/disqus.html" . }}
    </section>
    {{ end }}

</main>

{{ end }}