Skip to content

Commit 4ff43b0

Browse files
committed
reformat 'Latest News', also show on about page
1 parent 3eaffb7 commit 4ff43b0

4 files changed

Lines changed: 24 additions & 26 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>

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: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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)