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

post.html « partials « layouts - github.com/wlh320/hugo-theme-hulga.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 554b9c7c3c55d2f9747b16a95fc4bd251bd7743c (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
<section class="hero is-primary shadow-hero">
  <div class="hero-body">
    <header class="container has-text-centered">
      <h1 class="title post-title">
        {{ .Title }}
      </h1>
      <h2 class="subtitle">
        {{- if isset .Params "date" -}}
        <time class="post-meta">{{ .Date.Format "2006/01/02" }}</time>
        {{- end -}}
        {{ with .Params.Categories }} ・
        {{ range .}}
        <span class="post-tag post-meta">
          <a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
        </span>
        {{ end }}
        {{ end }}
      </h2>
      {{ with .Params.tags }}
      <div class="tagbox post-meta">
        {{ range . }}
        <span class="post-tag">
          <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">#{{ . }}</a>
        </span>
        {{ end }}
        <!-- <span class="post-tag">#Hello</span><span class="post-tag">#Hello</span> -->
      </div>
      {{ end }}
    </header>
  </div>
</section>
<section class="section">
  <div class="container">
    <div class="columns">
      {{ if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) }}
      <div class="column is-three-quarters">
        {{ else }}
        <div class="column is-1"></div>
        <div class="column is-10">
          {{ end }}
          <article class="content" id="post-content">
            {{- .Content -}}
          </article>
        </div>
        {{ if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) }}
        <div class="column is-hidden-mobile">
          <div class="sidebar" id="toc">
            {{ if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) }}
            <div class="post post-toc" id="post-toc">
              <!-- render by tocbot -->
            </div>
            {{- end }}
          </div>
        </div>
        {{ end }}
        {{ if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) }}
        {{ else }}
        <div class="column is-1"></div>
        {{ end }}
      </div>
    </div>
  </div>
</section>