forked from jenkins-infra/jenkins.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbooks.html.haml
55 lines (52 loc) · 1.16 KB
/
books.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
layout: simplepage
title: Jenkins Related Books
---
:css
.col-md-12 {
margin-bottom: 2rem;
}
.admonitionblock {
margin: 2rem 0;
}
.book-image {
max-height: 300px;
max-width: 300px;
margin: 8px;
}
@media(min-width: 576px) {
.book-image {
float: right;
}
}
=partial("books.adoc")
- site.books.values.sort_by{ |book| [-book['publication_year'], book['title']] }.each_with_index do |book, index|
%h4
%span
- if book['url']
%a{:href => book['url'], :target => '_blank'}
= book['title']
- else
= book['title']
- if book['image']
%img.book-image{:src => expand_link('images/' + book['image'])}
%div{:style => 'margin-bottom: 2rem'}
- if book['author']
%h5
Authored by
= book['author']
- if book['authors']
%h5
Authored by
= book['authors']
- if book['publisher']
%h5
Published by
= "#{book['publisher']}, #{book['publication_year']}"
- if book['description']
%p
= book['description']
- if book['quote']
%blockquote
= book['quote']
%div{:style => 'clear: both;'}