diff --git a/assets/styles/mix-twbs.scss b/assets/styles/mix-twbs.scss index 034dd8f..0fb7bbf 100644 --- a/assets/styles/mix-twbs.scss +++ b/assets/styles/mix-twbs.scss @@ -152,4 +152,8 @@ h1 { .fixed-bottom { left: 25%; } + + .md-max-width-33 { + max-width: 33%; + } } diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c533ab5..69be6fd 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -6,5 +6,48 @@ {{ .Content }} {{ end }} + +
+ {{ range .Pages }} +
+
+
+ {{/* Thumbnail images should be stored as 'thumbnail'.* in the page bundle, but + historically they might have been referenced as 'thumbnail' in the front + matter, or (even more historically) as 'cardImage'. Use scratch to + normalize all these different systems. + */}} + {{ $bundleGlob := "thumbnail.*" }} + {{ $frontThumbGlob := print "images/" (.Params.thumbnail) ".*" }} + {{ $frontCardGlob := print "images/" (.Params.cardImage) ".jpg" }} + {{ $allThumbnailGlob := print "{" $frontThumbGlob "," $frontCardGlob "," $bundleGlob "}" }} + {{ with .Resources.GetMatch $allThumbnailGlob }} + {{ $thumbnail := . }} + {{ $thumbnailResized := $thumbnail.Resize "600x" }} + Thumbnail of {{ .Title }} + {{ end }} +

{{ .Title }}

+

+ {{ .Summary }} + Read more » +

+
+
+ +
+ + {{ end }} +
+ {{ end }}