diff options
Diffstat (limited to 'layouts/partials/post.html')
-rw-r--r-- | layouts/partials/post.html | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/layouts/partials/post.html b/layouts/partials/post.html index c1e66d5..a950810 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -1,20 +1,20 @@ <article class="pv4 bt bb b--black-10"> -<a class="db no-underline dim" href= "{{ .RelPermalink }}"> - <h3 class="f3 baskerville mt0 lh-title near-black">{{.Title }}</h3> - <div class="cf"> - {{ with resources.Get (index .Params.images 0) }} - {{ $image := .Resize (default "320x" .Params.thumbnail_size) }} - <div class="fl-ns mb4 mb0-ns pr3-ns"> - <img src="{{ $image.RelPermalink }}" class="db center"> + <a class="db no-underline dim near-black" href="{{ .RelPermalink }}"> + <h3 class="f3 baskerville mt0 lh-title">{{ .Title }}</h3> + <div class="cf"> + {{ with resources.Get (index .Params.images 0) }} + {{ $image := .Resize (default "320x" .Params.thumbnail_size) }} + <div class="fl-ns mb4 mb0-ns pr3-ns"> + <img src="{{ $image.RelPermalink }}" class="db center" /> + </div> + {{ end }} + <div class="f5 lh-copy"> + <!-- {{ .Summary }} --> + {{ .Summary | replaceRE `<sup.*?><a href.*?#fn:.*?footnote-ref.*?/a></sup>` "" | safeHTML }} + </div> </div> - {{ end }} - <div class="f5 lh-copy near-black"> - <!-- {{ .Summary }} --> - {{ .Summary | replaceRE `<sup.*?><a href.*?#fn:.*?footnote-ref.*?/a></sup>` "" | safeHTML }} - </div> - </div> -</a> -{{ if isset .Params "metadata" }} -{{ partial "metadata.html" . }} -{{ end }} + </a> + {{ if isset .Params "metadata" }} + {{ partial "metadata.html" . }} + {{ end }} </article> |