~mrls/essential

ref: 27db479c55a5cd10042f4854d33412efe57cf682 essential/layouts/pics/single.html -rw-r--r-- 620 bytes
27db479cMauro Morales Add pic archetypes 1 year, 2 months ago
                                                                                
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
{{ define "main" }}
<article>
  {{- partial "language.html" . -}}
  <h1>{{ .Title }}</h1>
  <h6>
    {{ .Params.Subtitle }}
  </h6>
  {{- partial "meta.html" . -}}
  <hr>
  
  <div>
    {{ with index (.Resources) 0 }}
      <img src="{{ .RelPermalink }}"></br>
    {{ end }}
    {{ .Description }}
    {{ .Content }}
  </div>
  <hr>
  {{- partial "hashtags.html" . -}}
</article>

{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h3>{{ i18n "related" }}</h3>
<ul class="small">
  {{- range . }}
  <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
  {{ end }}
</ul>
{{ end }}
{{ end }}