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

theme-details.html « partials « layouts - github.com/gohugoio/hugoThemesSite.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f3d8c8c0644be6be38ae40d270a3b94525cc681a (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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<h1 class="primary-color">
  {{ .Title }}
</h1>
{{ with .Params.meta.description }}
  <p class="description f4">
    {{ . }}
  </p>
{{ end }}
<ul class="list nested-links pl0">
  {{ with .Params.meta.author }}
    {{ if reflect.IsMap .  }}
      <li class="mb2">
        <span class="label">
          Author:
        </span>
        {{if .homepage}}
          <a href="{{.homepage }}">
            {{ .name }}
          </a>
        {{else}}
          <span class="value">
            {{ .name }}
          </span>
        {{end}}
        
      </li>
    {{ end }}
  {{ end }}
  {{ with .Params.meta.authors }}
    <li class="mb2">
      <span class="label">
        Authors:
      </span>
      {{ range . }}
        {{if .homepage}}
          <a href="{{.homepage}}">
            {{ .name }}
          </a>
        {{else}}
          <span class="value">
            {{ .name }}
          </span>
        {{end}}
      {{ end }}
    </li>
  {{ end }}
  
  {{ with .Params.hugoVersion.min }}
    <li class="mb2">
      <span class="label">
        Minimum Hugo Version:
      </span>
      <span class="value">
        {{ . }}
      </span>
    </li>
  {{ end }}
  
  {{ with .Params.githubInfo }}
    <li class="mb2">
      <span class="label">
        GitHub Stars:
      </span>
      <span class="value">
        {{ .Stars }}
      </span>
    </li>
  {{ end }}
  
  <li class="mb2">
    <span class="label">
      Updated:
    </span>
    <span class="value">
      {{ .Lastmod.Format "2006-01-02" }}
    </span>
  </li>
  {{ with .Params.meta.license }}
    <li class="mb2">
      <span class="label">
        License:
      </span>
      {{ if $.Params.licenselink }}
        <a href="{{ $.Params.licenselink }}">
          {{ .}}
        </a>
      {{else}}
        <span class="value">
          {{ .}}
        </span>
      {{end}}
    </li>
  {{ end }}
  
  {{ with (.GetTerms "tags") }}
    <li class="mb2 mt4">
    <span class="label">
      Tags:
    </span>
    {{ range . }}
      <a href="{{ .Permalink }}">
        {{ .LinkTitle | title  }}
      </a>
    {{ end }}
  {{ end }}
  
  {{ with .Params.themeWarnings }}
    <p class="w-90 ba br2 pa3 mv8 red bg-washed-red" role="alert">
      <strong>
        Note!
      </strong>
      {{ range . }}
        {{ . }}
      {{ end }}
      <br/>
      <br/>
      If you are maintainer of this theme, please verify that this theme works with a
      <a href="https://github.com/gohugoio/hugo/releases/">
        recent release of Hugo.
      </a>
      Then add an appropriate
      <a href="https://gohugo.io/hugo-modules/configuration/#module-config-hugoversion">
        Version Configuration
      </a>
      to the theme's
      <code>config.toml</code>
      and then finally
      <a href="https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/managing-commits/managing-tags#creating-a-tag">
        tag a new version.
      </a>
    </p>
  {{ end }}
  
</ul>