add date to pages

main
Astoria 2 years ago
parent 68947516a3
commit f1b9b4992c

@ -310,6 +310,11 @@ input[type="submit" i] {
margin-top: 40px;
}
.articledate {
float: left;
margin-top: 5px;
}
.seemorelink {
float: right;
margin-top: 40px;

@ -24,6 +24,19 @@
<% elsif File.exist?("." + request.path_info + ".md") %>
<%= markdown(File.read("." + request.path_info + ".md")) %>
<% end %>
<% if File.exist?("." + request.path_info + ".meta") %>
<div class="articledate">
<%= File.read("." + request.path_info + ".meta") %>
</div>
<% elsif File.exist?("." + request.path_info + ".erb.meta") %>
<div class="articledate">
<%= File.read("." + request.path_info + ".erb.meta") %>
</div>
<% elsif File.exist?("." + request.path_info + ".md.meta") %>
<div class="articledate">
<%= File.read("." + request.path_info + ".md.meta") %>
</div>
<% end %>
</div>
</div>
<%= erb :bottom %>

Loading…
Cancel
Save