diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0346a5f..3701847 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -33,67 +33,7 @@ {{ else }} {{ range .Paginator.Pages }} -
-

- {{ .Title | markdownify }} -

- - {{ if or .Date (.GetTerms "tags") }} -
- {{ if .Date }} - - - {{ partial "icon.html" "calendar" }} - - - {{ if ne .Lastmod .Date }} - - {{ end }} - - {{ end }} - - - - {{ range (.GetTerms "tags") }} - - {{ partial "icon.html" "tag" }} - {{ .LinkTitle }} - - {{ end }} - -
- {{ end }} - - {{ with .Resources.GetMatch "feature" }} - {{ if eq .MediaType.MainType "image" }} -
- {{ .Title }} -
- {{ else if eq .MediaType.MainType "video" }} -
- -
- {{ end }} - {{ end }} - -
- {{ if .Description }} - {{ .Description | markdownify }} - {{ else }} - {{ .Summary | markdownify }} - {{ end }} -
- -
- Read more → -
-
+ {{ .Render "summary" }} {{ else }}
No posts here! diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html new file mode 100644 index 0000000..3a395b2 --- /dev/null +++ b/layouts/_default/summary.html @@ -0,0 +1,61 @@ +
+

+ {{ .Title | markdownify }} +

+ + {{ if or .Date (.GetTerms "tags") }} + + {{ end }} + + {{ with .Resources.GetMatch "feature" }} + {{ if eq .MediaType.MainType "image" }} +
+ {{ .Title }} +
+ {{ else if eq .MediaType.MainType "video" }} +
+ +
+ {{ end }} + {{ end }} + +
+ {{ if .Description }} + {{ .Description | markdownify }} + {{ else }} + {{ .Summary | markdownify }} + {{ end }} +
+ + +