-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
90 lines (76 loc) · 1.98 KB
/
Copy pathindex.html
File metadata and controls
90 lines (76 loc) · 1.98 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
name: index page
title: Xullnn
nav_category: home
---
<!-- 3 recent essays or projects not too much -->
<div class="index">
{% include side_nav.html %}
<div class="dotdotdot">
<p class="dot"></p>
<p class="dot"></p>
<p class="dot"></p>
</div>
<div class="recent">
<p>Recent Articles:</p>
<ul>
{% for item in site.posts %}
{% if item.recent %}
<li>- <a href="{{item.url}}">{{item.title}}</a></li>
{% endif %}
{% endfor%}
</ul>
<p>Recent Work:</p>
<ul>
{% for item in site.portfolios %}
{% if item.recent %}
<li>
<a href="{{item.project_url}}">
<div class="portfolio_recent_panel">
<img src="{{item.cover_url}}" alt=""/>
<div class="recent_project_description">
<span class="block_project_name">{{ item.project_name }}</span>
<p>{{ item.short_description }}</p>
</div>
</div>
</a>
</li>
{% endif %}
{% endfor%}
</ul>
<p>Recent photo:</p>
<div class="portfolio_recent_panel">
<img src="photography/honghaizi.jpg" alt=""/>
<div class="recent_project_description">
<span class="block_project_name">Sichuan, honghaizi.</span>
<p>Recent trip to western Sichuan. <a href="/photography.html">More photos</a></p>
<p></p>
</div>
</div>
</div>
</div>
<style media="screen">
.portfolio_recent_panel {
border: 1px solid lightgrey;
border-radius: 10px;
height: 120px;
padding: 1em 0.5em 1em;
margin-top: 1em;
display: flex;
flex-direction: row;
align-items: start;
}
.block_project_name {
display: inlineblock;
}
.recent_project_description {
height: 95%;
overflow: hidden;
}
.portfolio_recent_panel img {
height: 100%;
object-fit: scale-down;
margin-right: 0.5em;
border: 1px solid lightgrey;
}
</style>