Commit 051bbe032c6507f24a8fed07501c7252b8eb66d6
show full author's bio in article
Kamal Bin Mustafa committed on 1/18/2015, 1:39:00 PMParent: 082b1d5aec2fcb340ccc2f22bdf604e086bb21c8
Files changed
_includes/author.html | added |
_layouts/post.html | changed |
authors.html | changed |
public/css/custom.css | changed |
_includes/author.html | ||
---|---|---|
@@ -1,0 +1,13 @@ | ||
1 | + | |
2 | + <div class="pic"> | |
3 | + <a name="{{ key }}" /> | |
4 | + <img src="{{ author.pic }}" /> | |
5 | + </div> | |
6 | + <div class="bio"> | |
7 | + <p> | |
8 | + {{ author.full_bio_ms }} | |
9 | + <p> | |
10 | + <p style="font-style:italic"> | |
11 | + {{ author.full_bio_en }} | |
12 | + </p> | |
13 | + </div> |
_layouts/post.html | ||
---|---|---|
@@ -15,16 +15,9 @@ | ||
15 | 15 | {% assign author = site.authors[page.author] %} |
16 | 16 | {% if author %} |
17 | 17 | <div class="author"> |
18 | 18 | <div style="margin-bottom:10px; font-style:italic">Mengenai penulis</div> |
19 | - <img class="gravatar" src="http://www.gravatar.com/avatar/{{ author.gravatar }}" /> | |
20 | - <div class="detail"> | |
21 | - <div class="name">{{ author.name }}</div> | |
22 | - <div class="bio"> | |
23 | - {{ author.short_bio }} | |
24 | - <a href="{{ site.baseurl }}/authors.html#{{page.author}}">(lagi)</a> | |
25 | - </div> | |
26 | - </div> | |
19 | + {% include author.html %} | |
27 | 20 | </div> |
28 | 21 | {% endif %} |
29 | 22 | |
30 | 23 | <div class="related"> |
authors.html | ||
---|---|---|
@@ -3,31 +3,8 @@ | ||
3 | 3 | title: Penulis |
4 | 4 | --- |
5 | 5 | |
6 | 6 | <style> |
7 | -.pic { | |
8 | - float: left; | |
9 | - width: 120px; | |
10 | - padding-right: 0 !important; | |
11 | - padding-top: 20px !important; | |
12 | -} | |
13 | - | |
14 | -.pic img { | |
15 | - border-radius: 50% !important; | |
16 | - -webkit-border-radius: 50% !important; | |
17 | - -moz-border-radius: 50% !important; | |
18 | - width: 100px; | |
19 | - height: 100px; | |
20 | - | |
21 | -} | |
22 | - | |
23 | -.bio { | |
24 | - float: left; | |
25 | - width: 558px; | |
26 | - padding-left: 0 !important; | |
27 | - text-align: justify; | |
28 | -} | |
29 | - | |
30 | 7 | .clear { |
31 | 8 | clear: both; |
32 | 9 | margin-bottom: 30px; |
33 | 10 | } |
@@ -40,17 +17,7 @@ | ||
40 | 17 | {% assign author = author_item[1] %} |
41 | 18 | |
42 | 19 | <div class="clear"></div> |
43 | 20 | |
44 | - <div class="pic"> | |
45 | - <a name="{{ key }}" /> | |
46 | - <img src="{{ author.pic }}" /> | |
47 | - </div> | |
48 | - <div class="bio"> | |
49 | - <p> | |
50 | - {{ author.full_bio_ms }} | |
51 | - <p> | |
52 | - <p style="font-style:italic"> | |
53 | - {{ author.full_bio_en }} | |
54 | - </p> | |
55 | - </div> | |
56 | -{% endfor %} | |
21 | + {% include author.html %} | |
22 | + | |
23 | +{% endfor %} |
public/css/custom.css | ||
---|---|---|
@@ -6,9 +6,9 @@ | ||
6 | 6 | .author { |
7 | 7 | margin-bottom: 1rem; |
8 | 8 | padding: 1rem; |
9 | 9 | color: #717171; |
10 | - background-color: #f9f9f9; | |
10 | + background-color: #f0f0f0; | |
11 | 11 | } |
12 | 12 | |
13 | 13 | .author:after { |
14 | 14 | content: ""; |
@@ -32,8 +32,32 @@ | ||
32 | 32 | line-height: 1rem; |
33 | 33 | font-size: 90%; |
34 | 34 | } |
35 | 35 | |
36 | +.pic { | |
37 | + float: left; | |
38 | + width: 120px; | |
39 | + padding-right: 0 !important; | |
40 | + padding-top: 20px !important; | |
41 | +} | |
42 | + | |
43 | +.pic img { | |
44 | + border-radius: 50% !important; | |
45 | + -webkit-border-radius: 50% !important; | |
46 | + -moz-border-radius: 50% !important; | |
47 | + width: 100px; | |
48 | + height: 100px; | |
49 | + | |
50 | +} | |
51 | + | |
52 | +.bio { | |
53 | + float: left; | |
54 | + width: 558px; | |
55 | + padding-left: 0 !important; | |
56 | + text-align: justify; | |
57 | +} | |
58 | + | |
59 | + | |
36 | 60 | /* |
37 | 61 | * TOC |
38 | 62 | */ |
39 | 63 |
Built with git-ssb-web