git ssb

0+

k4ml / belajar-js



Commit 051bbe032c6507f24a8fed07501c7252b8eb66d6

show full author's bio in article

Kamal Bin Mustafa committed on 1/18/2015, 1:39:00 PM
Parent: 082b1d5aec2fcb340ccc2f22bdf604e086bb21c8

Files changed

_includes/author.htmladded
_layouts/post.htmlchanged
authors.htmlchanged
public/css/custom.csschanged
_includes/author.htmlView
@@ -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.htmlView
@@ -15,16 +15,9 @@
1515 {% assign author = site.authors[page.author] %}
1616 {% if author %}
1717 <div class="author">
1818 <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 %}
2720 </div>
2821 {% endif %}
2922
3023 <div class="related">
authors.htmlView
@@ -3,31 +3,8 @@
33 title: Penulis
44 ---
55
66 <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-
307 .clear {
318 clear: both;
329 margin-bottom: 30px;
3310 }
@@ -40,17 +17,7 @@
4017 {% assign author = author_item[1] %}
4118
4219 <div class="clear"></div>
4320
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.cssView
@@ -6,9 +6,9 @@
66 .author {
77 margin-bottom: 1rem;
88 padding: 1rem;
99 color: #717171;
10- background-color: #f9f9f9;
10+ background-color: #f0f0f0;
1111 }
1212
1313 .author:after {
1414 content: "";
@@ -32,8 +32,32 @@
3232 line-height: 1rem;
3333 font-size: 90%;
3434 }
3535
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+
3660 /*
3761 * TOC
3862 */
3963

Built with git-ssb-web