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

index.html « layouts « exampleSite - github.com/gohugoio/hugo-mod-bootstrap-scss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 219dbbeaa852247dc2acdb15abd08a2e92ca3dbb (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
<!doctype html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>
    {{ .Title }}
  </title>
  {{/* styles */}}
  <style>
    html {
      font-size: 12px;
    }
  </style>
  {{ $options := dict "enableSourceMap" true }}
  {{ if hugo.IsProduction}}
  {{ $options := dict "enableSourceMap" false "outputStyle" "compressed" }}
  {{ end }}
  {{ $styles := resources.Get "scss/styles.scss" }}
  {{ $styles = $styles | resources.ToCSS $options }}
  {{ if hugo.IsProduction }}
  {{ $styles = $styles | fingerprint }}
  {{ end }}
  <link href="{{ $styles.RelPermalink }}" rel="stylesheet" />
</head>

<body>
  <div class="container mt-5">
    <h1>Bootstrap v5 Hugo Module</h1>
    <h2 class="mt-4">Dependencies</h2>
    <table class="table table-striped table-responsive mt-5">
      <thead>
        <tr>
          <th scope="col">#</th>
          <th scope="col">Owner</th>
          <th scope="col">Path</th>
          <th scope="col">Version</th>
          <th scope="col">Time</th>
          <th scope="col">Vendor</th>
        </tr>
      </thead>
      <tbody>
        {{ range $index, $element := hugo.Deps }}
        <tr>
          <th scope="row">{{ add $index 1 }}</th>
          <td>{{ with $element.Owner }}{{.Path }}{{ end }}</td>
          <td>
            {{ $element.Path }}
            {{ with $element.Replace}}
            => {{ .Path }}
            {{ end }}
          </td>
          <td>{{ $element.Version }}</td>
          <td>{{ with $element.Time }}{{ . }}{{ end }}</td>
          <td>{{ $element.Vendor }}</td>
        </tr>
        {{ end }}
      </tbody>
    </table>
  </div>
</body>

</html>