-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfluential.html
More file actions
71 lines (60 loc) · 1.25 KB
/
influential.html
File metadata and controls
71 lines (60 loc) · 1.25 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
id: influential
layout: default
permalink: /influential/
---
<style>
.influential-list {
list-style: none;
padding: 0;
margin: 0;
}
.influential-item {
display: flex;
gap: 20px;
margin-bottom: 30px;
align-items: flex-start;
}
.influential-item img {
width: 180px;
height: auto;
border-radius: 6px;
}
.influential-content {
max-width: 600px;
}
.influential-title {
font-size: 1.4em;
font-weight: bold;
margin-bottom: 8px;
}
@media (max-width: 700px) {
.influential-item {
flex-direction: column;
gap: 12px;
}
.influential-item img {
width: min(75vw, 320px);
}
}
</style>
<ul class="influential-list">
{% for item in site.data.influential %}
<li class="influential-item">
{% if item.book %}
<a href="https://openlibrary.org/isbn/{{ item.img }}">
<img src="https://covers.openlibrary.org/b/isbn/{{ item.img }}-L.jpg"
alt="Book Cover">
</a>
{% else %}
<a href="{{item.link}}">
<img src="{{ item.img }}" alt="Image">
</a>
{% endif %}
<div class="influential-content">
<div class="influential-title">{{ item.title }}</div>
<div class="influential-description">{{ item.description }}</div>
</div>
</li>
{% endfor %}
</ul>