diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 078527d..cd77fe1 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,38 +1,16 @@ {{ define "main" }}

{{ i18n .Title }}

- {{ range (.Site.RegularPages.GroupByPublishDate "2006") }} - {{ range .Pages }} + {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} + {{ range $pages }}

{{ .Title }}

- -
- {{ if .Params.date }} - - {{ end }} -
- {{ if .Params.categories }} -
    - {{ range .Params.categories }} -
  • {{ . }}
  • - {{ end }} -
- {{ end }} - {{ if .Params.tags }} - - {{ end }} -
-
+ {{ partial "articleInfoFull.html" . }}
- {{ end }} {{ end }} {{ end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index af45b14..55c5a38 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,27 +7,7 @@
{{ .Content }}
-
- {{ if .Params.date }} -
{{ .Params.date.Format "2006-01-02" }}
- {{ end }} -
- {{ if .Params.categories }} - - {{ end }} - {{ if .Params.tags }} - - {{ end }} -
-
+ {{ partial "articleInfoFull.html" . }} {{ if .Site.DisqusShortname }} {{ template "_internal/disqus.html" . }} diff --git a/layouts/index.html b/layouts/index.html index dae8307..b12abe7 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -16,27 +16,8 @@ {{ i18n "readMore" | humanize }} {{ end }} --> -
- {{ if .Params.date }} -
{{ .Params.date.Format "2006-01-02" }}
- {{ end }} -
- {{ if .Params.categories }} - - {{ end }} - {{ if .Params.tags }} - - {{ end }} -
-
+ + {{ partial "articleInfoFull.html" . }} {{ end }} {{ partial "pagination.html" . }} diff --git a/layouts/partials/articleInfoDate.html b/layouts/partials/articleInfoDate.html new file mode 100644 index 0000000..02c5b13 --- /dev/null +++ b/layouts/partials/articleInfoDate.html @@ -0,0 +1,5 @@ +
+ {{ if .Params.date }} +
{{ .Params.date.Format "2006-01-02" }}
+ {{ end }} +
\ No newline at end of file diff --git a/layouts/partials/articleInfoFull.html b/layouts/partials/articleInfoFull.html new file mode 100644 index 0000000..6842ab1 --- /dev/null +++ b/layouts/partials/articleInfoFull.html @@ -0,0 +1,21 @@ +
+ {{ if .Params.date }} +
{{ .Params.date.Format "2006-01-02" }}
+ {{ end }} +
+ {{ if .Params.categories }} + + {{ end }} + {{ if .Params.tags }} + + {{ end }} +
+
\ No newline at end of file diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index 4f9c8a1..2aed60a 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -7,13 +7,13 @@ {{ if eq .Paginator.PageNumber 2 }} {{ $toNewPostsMessage }} {{ else }} - {{ $toNewPostsMessage }} + {{ $toNewPostsMessage }} {{ end }} {{ end }}
{{ if .Paginator.HasNext }} - {{ $toOldPostsMessage }} + {{ $toOldPostsMessage }} {{ end }}
diff --git a/layouts/taxonomy/category.html b/layouts/taxonomy/category.html index 0533db6..5ca1371 100644 --- a/layouts/taxonomy/category.html +++ b/layouts/taxonomy/category.html @@ -2,7 +2,7 @@

{{ i18n "category" | humanize }}: {{ .Title }}

- {{ i18n "toAllCategories" | humanize }} + {{ i18n "toAllCategories" | humanize }}
{{ range .Data.Pages }}
@@ -15,11 +15,7 @@
{{ .Summary }}
-
- {{ if .Params.date }} - - {{ end }} -
+ {{ partial "articleInfoDate.html" . }}