diff options
author | gizak <gizak@icloud.com> | 2015-01-14 03:36:44 +0300 |
---|---|---|
committer | gizak <gizak@icloud.com> | 2015-01-14 03:36:44 +0300 |
commit | fab4d85933ea853d45473d83f5a2494a2446abba (patch) | |
tree | 777fdc7e6ab0b2b6a844ca238fa5d4f519ee2e2b /layouts | |
parent | 9f4aea0f5b74d14438ea5d0ab5574856ab7b4d55 (diff) |
Rectify time and tags format
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 6 | ||||
-rw-r--r-- | layouts/_default/single.html | 11 | ||||
-rw-r--r-- | layouts/index.html | 6 |
3 files changed, 12 insertions, 11 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f845347..a19b73e 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -22,15 +22,15 @@ {{ end }} {{ with $page.Params.tags }} - /tags/{{ range $page.Params.tags}}<a href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }}</a>,{{ end }} + tags:[ {{ range $page.Params.tags}}<a href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }}</a> {{ end }}] {{ end }} {{ with $page.Params.categories }} - /categories/{{ range $page.Params.categories }}<a href="{{ $baseurl }}/categories/{{ . | urlize }}">{{ . }}</a>,{{ end }} + categories:[ {{ range $page.Params.categories }}<a href="{{ $baseurl }}/categories/{{ . | urlize }}">{{ . }}</a> {{ end }}] {{ end }} {{ with $page.Params.series }} - /series/{{ range $page.Params.series }}<a href="{{ $baseurl }}/series/{{ . | urlize }}">{{ . }}</a>,{{ end }} + series:[ {{ range $page.Params.series }}<a href="{{ $baseurl }}/series/{{ . | urlize }}">{{ . }}</a> {{ end }}] {{ end }} </p> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 8471439..2ba2acc 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,21 +6,22 @@ <div class="eight columns offset-by-two"> <div id="post-title"> <p class="footnote"> - <time class="pull-right post-list">{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</time> + <!--<time class="pull-right post-list">{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</time>--> + <time class="">{{ .Date.Format "2006-01-02" }}</time> {{ $baseurl := .Site.BaseUrl }} {{ if or .Params.tags .Params.categories .Params.series }} - @ + | {{ end }} {{ if isset .Params "tags" }} - /tags/{{ range .Params.tags }}<a href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }}</a>,{{ end }} + tags:{{ range .Params.tags }}<a href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }}</a> {{ end }} {{ end }} {{ if isset .Params "categories" }} - /categories/{{ range .Params.categories }}<a href="{{ $baseurl }}/categories/{{ . | urlize }}">{{ . }}</a>,{{ end }} + categories:{{ range .Params.categories }}<a href="{{ $baseurl }}/categories/{{ . | urlize }}">{{ . }}</a> {{ end }} {{ end }} {{ if isset .Params "series" }} - /series/{{ range .Params.series }}<a href="{{ $baseurl }}/series/{{ . | urlize }}">{{ . }}</a>,{{ end }} + series:{{ range .Params.series }}<a href="{{ $baseurl }}/series/{{ . | urlize }}">{{ . }}</a> {{ end }} {{ end }} </p> diff --git a/layouts/index.html b/layouts/index.html index 60f71d3..889845a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -22,15 +22,15 @@ {{ end }} {{ with $page.Params.tags }} - /tags/{{ range $page.Params.tags}}<a href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }}</a>,{{ end }} + tags:[ {{ range $page.Params.tags}}<a href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }}</a> {{ end }}] {{ end }} {{ with $page.Params.categories }} - /categories/{{ range $page.Params.categories }}<a href="{{ $baseurl }}/categories/{{ . | urlize }}">{{ . }}</a>,{{ end }} + categories:[ {{ range $page.Params.categories }}<a href="{{ $baseurl }}/categories/{{ . | urlize }}">{{ . }}</a> {{ end }}] {{ end }} {{ with $page.Params.series }} - /series/{{ range $page.Params.series }}<a href="{{ $baseurl }}/series/{{ . | urlize }}">{{ . }}</a>,{{ end }} + series:[ {{ range $page.Params.series }}<a href="{{ $baseurl }}/series/{{ . | urlize }}">{{ . }}</a> {{ end }}] {{ end }} </p> |