diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2018-01-17 19:14:14 +0300 |
---|---|---|
committer | Marcia Ramos <virtua.creative@gmail.com> | 2018-01-17 19:14:14 +0300 |
commit | ef1cbdc41ea83155a4bb3b11b5d2e5f201436efc (patch) | |
tree | d9706c7364f1bcbe2e6b2407d7d01a3715182bc2 /layouts | |
parent | 58539b4797c8109a09df7673ec1ba2cfe0e45967 (diff) |
add articles metadata to default layout
TBA: if statement:
if
there’s @item[:author] => display article-metadata
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/default.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/default.html b/layouts/default.html index b0c9b7c5..04cd24a4 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -19,6 +19,18 @@ <% end %> <% end %> <%= yield %> + <div class="article-metadata"> + Written by <a href="https://gitlab.com/<%= @item[:author_gitlab] %>" target="_blank"><%= @item[:author] %></a> + on <%= @item[:date] %> + • + <% if @item[:last_updated] %> + Last updated: <%= @item[:last_updated] %> + • + <% end %> + Type: <%= @item[:article_type] %> + • + Level: <%= @item[:level] %> + </div> <hr> <div class="edit-on"> <%= edit_on_gitlab(@item) %> |