gabrielgio.me @ 735a7d73571f859d66a15611ced9e5bad97e94ce

 1{{ define "header" }}
 2   {{/* We can override any block in the baseof file be defining it in the template */}}
 3  {{ partial "page-header.html" . }}
 4{{ end }}
 5
 6{{ define "main" }}
 7  {{ $section := .Site.GetPage "section" .Section }}
 8  <article class="flex-l flex-wrap justify-between mw8 center ph3">
 9    <header class="mt4 w-100">
10      <aside class="instapaper_ignoref b helvetica tracked">
11          {{/*
12          CurrentSection allows us to use the section title instead of inferring from the folder.
13          https://gohugo.io/variables/page/#section-variables-and-methods
14          */}}
15        {{with .CurrentSection.Title }}{{. | upper }}{{end}}
16      </aside>
17      {{ partial "social-share.html" . }}
18      <h1 class="f1 athelas mt3 mb1">
19        {{- .Title -}}
20      </h1>
21      {{ with .Params.author }}
22      <p class="tracked">
23          By <strong>
24          {{ if reflect.IsSlice . }}
25              {{ delimit . ", " | markdownify }}
26          {{else}}
27              {{ . | markdownify }}
28          {{ end }}
29          </strong>
30      </p>
31      {{ end }}
32      {{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
33      <time class="f6 mv4 dib tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
34        {{- .Date.Format "January 2, 2006" -}}
35      </time>
36
37      {{/*
38          Show "reading time" and "word count" but only if one of the following are true:
39          1) A global config `params` value is set `show_reading_time = true`
40          2) A section front matter value is set `show_reading_time = true`
41          3) A page front matter value is set `show_reading_time = true`
42        */}}
43      {{ if (or (eq (.Param "show_reading_time") true) (eq $section.Params.show_reading_time true) )}}
44        <span class="f6 mv4 dib tracked"> - {{ .ReadingTime}} minutes read</span>
45        <span class="f6 mv4 dib tracked"> - {{ .WordCount}} words</span>
46      {{ end }}
47    </header>
48    <div class="nested-copy-line-height lh-copy {{ $.Param "post_content_classes"  | default "serif"}} f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l">
49      {{- .Content -}}
50      {{- partial "tags.html" . -}}
51      <div class="mt6 instapaper_ignoref">
52      {{ if .Site.DisqusShortname }}
53        {{ template "_internal/disqus.html" . }}
54      {{ end }}
55      {{ if .Site.Params.commentoEnable }}
56        {{- partial "commento.html" . -}}
57      {{ end }}
58      </div>
59    </div>
60
61    <aside class="w-30-l mt6-l">
62      {{- partial "menu-contextual.html" . -}}
63    </aside>
64
65  </article>
66{{ end }}