forked from benbalter/benbalter.github.com
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
books-for-geeks.html
53 lines (43 loc) · 1.48 KB
/
books-for-geeks.html
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
---
title: Books for geeks
description: Must-Read books for hackers, geeks, and open-source developers
layout: page
permalink: /books-for-geeks/
redirect_from: books
service_version: 20070822
books_per_row: 3
---
{% comment %}
Looking to edit the list of books? See https://git.io/vKfSv.
{% endcomment %}
<div class="lead mb-2">
{{ page.description | mardownify }}
</div>
{% for group in site.data.books %}
<h3 id="{{ group[0] | slugify }}" class="book-group">{{ group[0] }}</h3>
{% for book in group[1] %}
{% assign column_number = forloop.index0 | modulo:page.books_per_row %}
{% if column_number == 0 %}
<div class="row pt-2">
{% endif %}
<div class="col-md-{{ 12 | divided_by:page.books_per_row }} text-center">
<a href="https://www.amazon.com/gp/product/{{ book.asin }}/?tag={{ site.amazon.affiliates_tag }}">
<div class="mb-2">
<img
src="https://ws-na.amazon-adsystem.com/widgets/q?ASIN={{ book.asin }}&ServiceVersion={{ page.service_version }}&ID=AsinImage&WS=1&Format=_SL110_&tag={{ site.amazon.affiliates_tag }}"
alt="{{ book.title | mardownify | strip_html }}"
/>
</div>
<div class="title font-weight-bold min-y-5">
{{ book.title | mardownify }}
</div>
</a>
<div class="small text-justify">
{{ book.tldr | markdownify }}
</div>
</div>
{% if column_number == 2 or forloop.rindex == 1 %}
</div>
{% endif %}
{% endfor %}
{% endfor %}