mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Bud Parr
12.59.2017 d098f46b07a04a23f3360fb1616f8e3760fb1957
layouts/article/single.html
@@ -1,43 +1,19 @@
{{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
{{ define "main" }}
{{ $currentPageUrl := .URL }}
  <article class="center cf pv5 measure-wide-l">
  <article class="center cf pv5 mw7">
    <p class="f6 fw8">
      {{ humanize .Section | upper  }}
    </p>
    <h1>
    <h1 class="f1">
      {{ .Title }}
    </h1>
    <div class="nested-copy-line-height nested-links nested-img mid-gray measure-wide-l">
      {{/* TODO: Add Hugo author  */}}
    <time class="f6 mv4 dib tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
        {{ .Date.Format "January 2, 2006" }}
    </time>
    <section class="nested-copy-line-height lh-copy serif f4 measure-wide-l nested-links nested-img mid-gray">
        {{ .Content | markdownify }}
    </div>
    {{ if .Params.tags }}
      <div class="mt5 f6 gray nested-lh-copy bg-light-gray ph3 pv2 measure-wide-l">
          {{ $name := index .Params.tags 0 }}
          {{ $name := $name | urlize }}
          {{ $tags := index .Site.Taxonomies.tags $name }}
            <ul class="list dib nested-links ml0 pl0">
              <li class="dib mb2 mr2">Related:</li>
              {{ range $tags.Pages }}
                {{ if ne .URL $currentPageUrl }}
                  <li class="mb2 mr3">
                     <a href="{{ .URL }}" class="link">
                       {{ .LinkTitle }}
                     </a>
                   </li>
                {{ end }}
              {{end}}
            </ul>
          </div>
        {{end}}
      <div class="gray f6 mv6">
        Last Update: {{ .Lastmod.Format "January 2, 2006" }}
      </div>
    </section>
    {{ partial "tags.html" . }}
  </article>
{{ end }}