Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions _includes/_latest_news.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<div class='row'>
<div class='col-md-12'>
<h2>Latest News</h2>
</div>
</div>
</div>
<div class='row'>
<div class="col-md-12">
<ul class="posts">
{% for post in site.posts %}
<li>
<p class='lead'>
<strong>{{ post.date | date_to_string }}:</strong>
<a href="{{ post.url }}">{{ post.title }}</a>
</p>
</li>
{% endfor %}
</ul>
</div>
</div>
19 changes: 1 addition & 18 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,9 @@
<div class="container">

<div class="row clearfix">

<div class="col-md-12 column">

<div class="row clearfix">
<div class="col-md-9 column">

{{ content }}

</div>
<div class="col-md-3 column">

<h2>Latest News</h2>
<ul class="posts">
{% for post in site.posts %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>

</div>
</div>
{{ content }}

</div>
</div>
Expand Down
24 changes: 0 additions & 24 deletions _layouts/home.html

This file was deleted.

3 changes: 3 additions & 0 deletions about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ <h2>About mruby</h2>
This achievement was sponsored by the Regional Innovation Creation R&amp;D Programs of the Ministry of Economy, Trade and Industry of Japan.
</p>
</div>

{% include _latest_news.html %}

</div>
11 changes: 0 additions & 11 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,6 @@ a {
padding-right: 20px;
}

.posts p {
font-size: 120%;
font-weight: bold;
padding: 0;
margin: 0;
}

.posts a {
font-size: 120%;
}

table td,th {
border:2px solid #eee;
padding:4px;
Expand Down
18 changes: 2 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: home
layout: default
title: mruby
---

Expand All @@ -17,20 +17,6 @@
</div>
</div>

<div class="col-md-12">
<div id="home">
<div>
<h2>Latest News</h2>
<ul class="posts">
{% for post in site.posts %}
<li>
<p>{{ post.date | date_to_string }}</p>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% include _latest_news.html %}

</div>