-
Notifications
You must be signed in to change notification settings - Fork 0
/
code.html
77 lines (59 loc) · 1.92 KB
/
code.html
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
---
layout: page
title: Code
order: 3
sidebar: yes
icon: code
---
<p>Because Computer Science would be less interesting without debugging segmentation faults ...</p>
<p>Follow my contributions on <a href="https://github.com/rbost">GitHub</a>, <a href="https://launchpad.net/~raphoufoune">Launchpad</a> or <a href="https://bitbucket.org/raphael_bost">Bitbucket</a></p>
{% for code in site.data.code %}
{% assign id = forloop.index | modulo: 2 %}
<table class="code">
<tr>
{% if id == 1 %}
<td class="code_pic code_pic_left" align="center">
{% if code.link.size > 0 %}
<a href="{{ code.link }}" class="code_title">
{% endif %}
{% if code.image.size > 0 %}
<img src="{{ site.baseurl }}/assets/{{ code.image }}" class="code_pic" alt="{{ code.image }}"/>
{% else %}
<img src="{{ site.baseurl }}/assets/photo2.jpg" height="200" alt="Code"/>
{% endif %}
{% if code.link.size > 0 %}
</a>
{% endif %}
</td>
{% endif %}
<td class="code_desc_title">
<h3 class="code_title">
{% if code.link.size > 0 %}
<a href="{{ code.link }}" class="code_title" title="Link to {{ code.title }}">
{% endif %}
{{ code.title }}
{% if code.link.size > 0 %}
</a>
{% endif %}
</h3>
<p class="code_desc"> {{ code.description }} </p>
</td>
{% if id == 0 %}
<td class="code_pic code_pic_right" align="center">
{% if code.link.size > 0 %}
<a href="{{ code.link }}" class="code_title" title="Link to {{ code.title }}">
{% endif %}
{% if code.image.size > 0 %}
<img src="{{ site.baseurl }}/assets/{{ code.image }}" class="code_pic" alt="{{ code.image }}"/>
{% else %}
<img src="{{ site.baseurl }}/assets/photo2.jpg" height="200" alt="Code"/>
{% endif %}
{% if code.link.size > 0 %}
</a>
{% endif %}
</td>
{% endif %}
</tr>
</table>
<!-- {{ pub.authors }} - {{ pub.conference }} -->
{% endfor %}