| | |
| | | {{ $show_date := and |
| | | (not .Date.IsZero) |
| | | (or |
| | | (and |
| | | (not (eq false site.Params.ananke.pages.show_date)) |
| | | (not (eq false .Params.ananke.show_date)) |
| | | ) |
| | | (and |
| | | (eq false site.Params.ananke.pages.show_date) |
| | | (eq true .Params.ananke.show_date) |
| | | ) |
| | | ) |
| | | }} |
| | | <div class="mb3 pa4 {{ $.Param "text_color" | compare.Default "mid-gray" }} overflow-hidden"> |
| | | {{ if .Date }} |
| | | <div class="f6"> |
| | | {{ .Date | time.Format (compare.Default "January 2, 2006" .Site.Params.date_format) }} |
| | | </div> |
| | | {{ if $show_date }} |
| | | <time class="f6 db" {{ fmt.Printf `datetime="%s"` (.Date.Format "2006-01-02T15:04:05Z07:00") | safe.HTMLAttr }}> |
| | | {{- .Date | time.Format (compare.Default "January 2, 2006" .Site.Params.date_format) -}} |
| | | </time> |
| | | {{ end }} |
| | | <h1 class="f3 near-black"> |
| | | <a href="{{ .RelPermalink }}" class="link black dim"> |