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

page.html « _default « layouts - github.com/gohugoio/gohugoioTheme2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 339df7d0d89abab1312342cd75b1bb7cab23a9b7 (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
<header class="flex-none w-full">
  {{ $categories := .GetTerms "categories" }}
  {{ range $categories }}
    <a
      href="{{ .RelPermalink }}"
      class="text-sm tracking-wider mb-0 link text-gray-500 dim mr-3">
      {{ .Title | upper }}
    </a>
  {{ end }}


  <h1 class="text-4xl font-semibold leading-tight mb-3 my-0 pt-3 text-black">
    {{ .Title }}
  </h1>
</header>

{{/* TODO1 check usage */}}
{{ with .Params.featured_image_path }}
  <img src="{{ . }}" alt="Featured Image for {{ $.Title }}" class="mw-100" />
{{ end }}


<div class="mt-4 md:mt-8 prose lg:prose-lg" id="prose">
  {{ with .Params.description }}
    <div class="lead">
      {{ . | $.RenderString }}
    </div>
  {{ end }}

  {{- partial "docs/functions-signature.html" . -}}
  {{ .Content }}


  <hr />
  {{ with .File }}
    <div class="mt-8">
      <a
        href="{{ path.Join site.Params.ghrepo `edit/master/content` .Lang .Path }}"
        class="inline-flex items-center">
        <span class="mr-2">Edit this file on GitHub</span>
        {{ partial "svg/link-ext.svg" (dict "fill" "#333" "size" "14") }}
      </a>
    </div>
  {{ end }}


  <div class="mt-4 text-gray-300 text-sm">
    Last updated:
    {{ .Lastmod.Format "January 2, 2006" }}{{ with .GitInfo }}
      :
      <a href="{{ site.Params.ghrepo }}commit/{{ .Hash }}"
        >{{ .Subject }} ({{ .AbbreviatedHash }})</a
      >
    {{ end }}
  </div>
</div>