diff options
Diffstat (limited to 'layouts/book/single.html')
-rw-r--r-- | layouts/book/single.html | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/layouts/book/single.html b/layouts/book/single.html index 66456e1..baedf32 100644 --- a/layouts/book/single.html +++ b/layouts/book/single.html | |||
@@ -8,12 +8,14 @@ | |||
8 | {{ with .Err }} | 8 | {{ with .Err }} |
9 | {{ errorf "%s" . }} | 9 | {{ errorf "%s" . }} |
10 | {{ else }} | 10 | {{ else }} |
11 | <img | 11 | {{ $image := . }} |
12 | src="{{ .RelPermalink }}" | 12 | {{ $image := $image.Resize "250x" }} |
13 | width="{{ .Width }}" | 13 | <img |
14 | height="{{ .Height }}" | 14 | src="{{ $image.RelPermalink }}" |
15 | alt="Book cover of the book {{ .Title }}" | 15 | width="{{ $image.Width }}" |
16 | /> | 16 | height="{{ $image.Height }}" |
17 | alt="Book cover of the book {{ .Title }}" | ||
18 | /> | ||
17 | {{ end }} | 19 | {{ end }} |
18 | {{ else }} | 20 | {{ else }} |
19 | {{ errorf "unable to get remote resource %q" .Params.image }} | 21 | {{ errorf "unable to get remote resource %q" .Params.image }} |