Skip to content

Commit be1e1e5

Browse files
committed
Merge pull request #14 from rmosolgo/remove-layout-column
Remove "Latest News" column
2 parents 835b4e5 + 4ff43b0 commit be1e1e5

6 files changed

Lines changed: 26 additions & 69 deletions

File tree

_includes/_latest_news.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<div class='row'>
2+
<div class='col-md-12'>
3+
<h2>Latest News</h2>
4+
</div>
5+
</div>
6+
</div>
7+
<div class='row'>
8+
<div class="col-md-12">
9+
<ul class="posts">
10+
{% for post in site.posts %}
11+
<li>
12+
<p class='lead'>
13+
<strong>{{ post.date | date_to_string }}:</strong>
14+
<a href="{{ post.url }}">{{ post.title }}</a>
15+
</p>
16+
</li>
17+
{% endfor %}
18+
</ul>
19+
</div>
20+
</div>

_layouts/default.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,9 @@
1010
<div class="container">
1111

1212
<div class="row clearfix">
13-
1413
<div class="col-md-12 column">
1514

16-
<div class="row clearfix">
17-
<div class="col-md-9 column">
18-
19-
{{ content }}
20-
21-
</div>
22-
<div class="col-md-3 column">
23-
24-
<h2>Latest News</h2>
25-
<ul class="posts">
26-
{% for post in site.posts %}
27-
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
28-
{% endfor %}
29-
</ul>
30-
31-
</div>
32-
</div>
15+
{{ content }}
3316

3417
</div>
3518
</div>

_layouts/home.html

Lines changed: 0 additions & 24 deletions
This file was deleted.

about/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ <h2>About mruby</h2>
1414
This achievement was sponsored by the Regional Innovation Creation R&amp;D Programs of the Ministry of Economy, Trade and Industry of Japan.
1515
</p>
1616
</div>
17+
18+
{% include _latest_news.html %}
19+
1720
</div>

css/main.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,6 @@ a {
126126
padding-right: 20px;
127127
}
128128

129-
.posts p {
130-
font-size: 120%;
131-
font-weight: bold;
132-
padding: 0;
133-
margin: 0;
134-
}
135-
136-
.posts a {
137-
font-size: 120%;
138-
}
139-
140129
table td,th {
141130
border:2px solid #eee;
142131
padding:4px;

index.html

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: home
2+
layout: default
33
title: mruby
44
---
55

@@ -17,20 +17,6 @@
1717
</div>
1818
</div>
1919

20-
<div class="col-md-12">
21-
<div id="home">
22-
<div>
23-
<h2>Latest News</h2>
24-
<ul class="posts">
25-
{% for post in site.posts %}
26-
<li>
27-
<p>{{ post.date | date_to_string }}</p>
28-
<a href="{{ post.url }}">{{ post.title }}</a>
29-
</li>
30-
{% endfor %}
31-
</ul>
32-
</div>
33-
</div>
34-
</div>
20+
{% include _latest_news.html %}
3521

3622
</div>

0 commit comments

Comments
 (0)