www.eamoncaddigan.net

Content and configuration for https://www.eamoncaddigan.net
git clone https://git.eamoncaddigan.net/www.eamoncaddigan.net.git
Log | Files | Refs | Submodules | README

metadata.html (976B)


      1 {{ $dateTime := .PublishDate.Format "2006-01-02" }}
      2 {{ $lastmodTime := .Lastmod.Format "2006-01-02" }}
      3 {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
      4 <i data-feather="calendar"></i>
      5 {{ if .PublishDate }}
      6 {{ if and (ne $lastmodTime $dateTime) (gt .Lastmod .Date) }}
      7   <time datetime="{{ $lastmodTime }}">{{ .Lastmod.Format $dateFormat }}</time>
      8   (first posted <time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>)
      9 {{ else }}
     10   <time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
     11 {{ end }}
     12 {{ end }}
     13 {{ with .Params.categories }}
     14 <i data-feather="tag"></i>in:
     15 {{ range . }}
     16 {{ $href := print "/categories/" (urlize .) }}
     17 <a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
     18 {{ end }}
     19 {{ end }}
     20 {{ with .Params.tags }}
     21 tagged:
     22 {{ range . }}
     23 {{ $href := print "/tags/" (urlize .) }}
     24 <a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
     25 {{ end }}
     26 {{ end }}