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: 80cf98da0b20466e248db7936174523f53c04403 (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
<section class="hero is-primary shadow-hero {{ if .Site.Params.heroBold}} is-bold {{ end }}">
  <div class="hero-head">
    {{ partial "nav.html" . }}
  </div>
  <div class="hero-body">
    {{ if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) }}
    <header class="container">
    {{ else }}
    <header class="container has-text-centered">
    {{ end }}
      <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 is-hidden-mobile"></div> -->
      <div class="column is-three-fifths is-offset-one-fifth">
      {{ 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 }}
      </div>
    </div>
  </div>
</section>