Default date format

This commit is contained in:
Zachary Betz 2019-02-14 11:31:24 -06:00
parent bbe004e8f2
commit fe5dd70c06
4 changed files with 4 additions and 11 deletions

View File

@ -1,8 +1,6 @@
{{ define "main" }} {{ define "main" }}
<main id="main"> <main id="main">
<h1> <h1>{{ .Title }}</h1>
{{ .Title }}
</h1>
<ul class="patterns-list"> <ul class="patterns-list">
{{ range .Pages.ByPublishDate.Reverse }} {{ range .Pages.ByPublishDate.Reverse }}
<li> <li>

View File

@ -1,8 +1,6 @@
{{ define "main" }} {{ define "main" }}
<main id="main"> <main id="main">
<h1> <h1>{{ .Title }}</h1>
{{ .Title }}
</h1>
<ul class="patterns-list"> <ul class="patterns-list">
{{ $type := .Type }} {{ $type := .Type }}
{{ range $key, $value := .Data.Terms.ByCount }} {{ range $key, $value := .Data.Terms.ByCount }}

View File

@ -1,7 +1,3 @@
{{ define "title" }}
{{ .Site.Title }}
{{ end }}
{{ define "main" }} {{ define "main" }}
<main id="main"> <main id="main">
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>

View File

@ -7,7 +7,8 @@
{{ .Title }} {{ .Title }}
</h1> </h1>
<div class="date"> <div class="date">
<strong aria-hidden="true">Publish date: </strong>{{ .PublishDate.Format $.Site.Params.dateFormat }} {{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }}
<strong aria-hidden="true">Publish date: </strong>{{ .PublishDate.Format $dateFormat }}
</div> </div>
{{ if isset .Params "tags" }} {{ if isset .Params "tags" }}
<div class="tags"> <div class="tags">