Skip to content

Commit 7a67954

Browse files
committed
Authors management.
1 parent 337bb8a commit 7a67954

14 files changed

+144
-26
lines changed

_config.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,33 @@
11
pygments: true
22
paginate: 4
3+
authors:
4+
loicfrering:
5+
fullname: Loïc Frering
6+
twitter: loicfrering
7+
github: loicfrering
8+
gravatar: c536079d77146d0902bdef0fcd1cbc25
9+
sdeleuze:
10+
fullname: Sébastien Deleuze
11+
twitter: sdeleuze
12+
github: sdeleuze
13+
gravatar: 04bf197ddd198f4ff3a50e93ebd37272
14+
bclozel:
15+
fullname: Brian Clozel
16+
twitter: brianclozel
17+
github: bclozel
18+
gravatar: 54cb7460a3adf91440f854b832ca9d9a
19+
jvillanti:
20+
fullname: Julien Villanti
21+
twitter: pullrequest
22+
github: jvillanti
23+
gravatar:
24+
bmeurant:
25+
fullname: Baptiste Meurant
26+
twitter: bmeurant
27+
github: bmeurant
28+
gravatar: c28e672be1580d9cb3dc6f7dc7f370c4
29+
feugy:
30+
fullname: Damien Feugas
31+
twitter: pullrequest
32+
github: feugy
33+
gravatar:

_layouts/default.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ <h1>OpenSource</h1>
9191
<script>window.jQuery || document.write('<script src="/public/js/libs/jquery-1.6.2.min.js"><\/script>')</script>
9292

9393
<script defer src="/public/js/tags.js"></script>
94+
<script defer src="/public/js/authors.js"></script>
9495

9596
<script>
9697
var _gaq=[["_setAccount","UA-22833612-1"],["_trackPageview"]];

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
88
<p>
99
<time datetime="{{ post.date | date:'%Y-%m-%d' }}" pubdate="pubdate">{{ post.date | date_to_string }}</time>
10-
<span class="author"><a href="#">{{ post.author }}</a></span>
10+
<span class="author"><a href="/authors.html#{{ post.author }}">{{ site.authors[post.author].fullname }}</a></span>
1111
<span class="comments"><a href="#comments" title="Voir les commentaires">Commentaires</a></span>
1212
</p>
1313
</header>

_posts/2011-04-19-mix-it-un-depart-sur-les-chapeaux-de-roues.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: MIX-IT Un départ sur les chapeaux de roues
4-
author: Damien Feugas
4+
author: feugy
55
tags: [conference, mix-it, agile, spock, tests, tdd, bdd, ergonomie, clojure, machine-learning, mahout, devops]
66
---
77

_posts/2011-04-19-resthub-1-1-rc1.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: Sortie de RESThub 1.1-rc1
4-
author: Sébastien Deleuze
4+
author: sdeleuze
55
tags: [resthub, java, javascript]
66
---
77

_posts/2011-04-19-web-socket-are-you-plugged.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: Web Socket - Are you plugged ?
4-
author: Sébastien Deleuze
4+
author: sdeleuze
55
tags: [java, javascript, mythicforge, graniteds, jetty, JMS, STOMP, websocket]
66
---
77

_posts/2011-06-28-resthub-1-1.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: RESThub 1.1
4-
author: Sébastien Deleuze
4+
author: sdeleuze
55
tags: [resthub, java, javascript]
66
---
77

authors.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: default
3+
title: Pull Request
4+
---
5+
<section id="authors">
6+
<ul>
7+
{% for author in site.authors %}
8+
<li id="{{ author[0] }}">
9+
<p><img src="http://www.gravatar.com/avatar/{{ author[1].gravatar }}" alt="{{ author[1].fullname }} avatar" />
10+
<h1>{{ author[1].fullname }}</h1>
11+
<p><a class="twitter" href="https://twitter.com/{{ author[1].twitter }}" title="Compte Twitter">@{{ author[1].twitter }}</a></p>
12+
<p><a class="github" href="https://github.com/{{ author[1].github }}" title="Compte Github">Github</a></p>
13+
</li>
14+
{% endfor %}
15+
</ul>
16+
</section>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
99
<p>
1010
<time datetime="{{ post.date | date:'%Y-%m-%d' }}" pubdate="pubdate">{{ post.date | date_to_string }}</time>
11-
<span class="author"><a href="#">{{ post.author }}</a></span>
11+
<span class="author"><a href="/authors.html#{{ post.author }}">{{ site.authors[post.author].fullname }}</a></span>
1212
<span class="comments"><a href="{{ post.url }}#comments" title="Voir les commentaires">Commentaires</a></span>
1313
</p>
1414
</header>

public/css/style.css

Lines changed: 70 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -258,45 +258,63 @@ ul {
258258
padding: 0;
259259
}
260260

261-
/* ---- Article ---- */
262-
263-
article {
261+
#content > * {
264262
padding: 1em 1em;
265-
border-bottom: solid 3px #e6e6e6;
266263
}
267264

268-
article h1, article h2, article h3, article h4 {
265+
#content > *:first-child {
266+
padding: 0 1em 1em 1em;
267+
}
268+
269+
#content h1, #content h2, #content h3, #content h4 {
269270
font-family: 'MavenProMedium', sans-serif;
270271
color: #480c28;
271272
}
272273

273-
article h1 {
274+
#content h1 {
274275
font-size: 160%;
276+
margin: 0 0 0.5em 0;
275277
}
276278

277-
article h2 {
279+
#content h2 {
278280
font-size: 140%;
279281
margin: 0.4em 0;
280282
}
281283

282-
article h3 {
284+
#content h3 {
283285
font-size: 120%;
284286
margin: 0.3em 0;
285287
}
286288

287-
article h4 {
289+
#content h4 {
288290
font-size: 100%;
289291
margin: 0.2em 0;
290292
}
291293

292-
article h1 a, article h1 a:hover, article h1 a:visited {
294+
#content h1 a, #content h1 a:hover, #content h1 a:visited {
293295
color: #480c28;
294296
}
295297

296-
article h1 a:hover {
298+
#content h1 a:hover {
297299
border-bottom-color: #480c28;
298300
}
299301

302+
/* ---- Article ---- */
303+
304+
article {
305+
border-bottom: solid 3px #e6e6e6;
306+
}
307+
308+
article h1, article h2, article h3, article h4 {
309+
font-family: 'MavenProMedium', sans-serif;
310+
color: #480c28;
311+
}
312+
313+
article h1 {
314+
font-size: 160%;
315+
margin: 0;
316+
}
317+
300318
article pre {
301319
font-family: monospace;
302320
background: #e6e6e6;
@@ -412,6 +430,47 @@ article > footer {
412430
background: url(../img/feed.png) no-repeat 0 50%;
413431
}
414432

433+
/* ---- Authors ---- */
434+
435+
#authors ul {
436+
margin: 0;
437+
}
438+
439+
#authors li {
440+
display: inline-block;
441+
width: 160px;
442+
height: 160px;
443+
text-align: center;
444+
list-style-type: none;
445+
padding: 0.6em;
446+
}
447+
448+
#authors img {
449+
border: 3px solid #fff;
450+
box-shadow: 0 0 2px #7d7d7d;
451+
}
452+
453+
#authors li h1 {
454+
font-size: 100%;
455+
margin: 0;
456+
}
457+
458+
#authors .twitter {
459+
background: url(../img/twitter.png) no-repeat;
460+
padding-left: 20px;
461+
}
462+
463+
#authors .github {
464+
background: url(../img/github.png) no-repeat;
465+
padding-left: 20px;
466+
}
467+
468+
#authors li.selected {
469+
background-color: #e6e6e6;
470+
box-shadow: 0 0 6px #7d7d7d;
471+
border-radius: 4px;
472+
}
473+
415474
/* ---- Site footer ---- */
416475

417476
#container > footer {

0 commit comments

Comments
 (0)