Default date format
This commit is contained in:
parent
bbe004e8f2
commit
fe5dd70c06
|
@ -1,8 +1,6 @@
|
|||
{{ define "main" }}
|
||||
<main id="main">
|
||||
<h1>
|
||||
{{ .Title }}
|
||||
</h1>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<ul class="patterns-list">
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<li>
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{{ define "main" }}
|
||||
<main id="main">
|
||||
<h1>
|
||||
{{ .Title }}
|
||||
</h1>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<ul class="patterns-list">
|
||||
{{ $type := .Type }}
|
||||
{{ range $key, $value := .Data.Terms.ByCount }}
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
{{ define "title" }}
|
||||
{{ .Site.Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<main id="main">
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
{{ .Title }}
|
||||
</h1>
|
||||
<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>
|
||||
{{ if isset .Params "tags" }}
|
||||
<div class="tags">
|
||||
|
|
Loading…
Reference in New Issue
Block a user