Merge pull request #114 from ZeusWPI/better-blog-post

Better blog post
This commit is contained in:
lorin 2016-11-01 21:54:39 +01:00 committed by GitHub
commit 537dd68338
2 changed files with 13 additions and 7 deletions

View file

@ -1,3 +1,6 @@
<div class="columns">
<article class="column is-8 is-offset-2">
<div class="heading">
<h1 class="title is-1 has-text-centered">
<%= item[:title] %>
</h1>
@ -11,10 +14,13 @@
<%= item[:author] %>
</h2>
<% end %>
<div class="content columns">
<div class="column is-2"></div>
<main class="column">
<%= yield %>
</main>
<div class="column is-2"></div>
<p class="has-text-centered">
<small>Created at <%= item[:created_at] %></small>
</p>
<hr>
</div>
<div class="content is-medium">
<%= yield %>
</article>
</div>
</div>

View file

@ -48,7 +48,7 @@
<body class="site">
<div class="wrapper">
<%= yield %>
</div>
</div>
<%= render '/partials/_footer.*' %>
</body>
</html>