diff options
author | Takuya Noguchi <takninnovationresearch@gmail.com> | 2021-02-10 07:08:44 +0300 |
---|---|---|
committer | Takuya Noguchi <takninnovationresearch@gmail.com> | 2021-02-17 05:30:29 +0300 |
commit | ba84e8781824f9cffda8d847e9826b48a8a2c2d1 (patch) | |
tree | dbb6d71286404fe165ef55ea45da5daee6299c52 /layouts/default.html | |
parent | 86aa2c11c4be042af5825e0c6dfa2aaad145dead (diff) |
Improve CSS for img element in the main
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Diffstat (limited to 'layouts/default.html')
-rw-r--r-- | layouts/default.html | 70 |
1 files changed, 36 insertions, 34 deletions
diff --git a/layouts/default.html b/layouts/default.html index 0050556a..aad651e4 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -45,42 +45,44 @@ <div class="doc-nav"></div> </div> </div> - <div class="row"> - <div class="col"> - <% if @item[:title] %> - <h1 class="article-title" itemprop="name"> - <%= @item[:title] %><%= @item[:title_badge] %> - </h1> - <% end %> - <div class="article-metadata"> - <% if @item[:author] and @item[:author_gitlab] %> - Article written by <a href="https://gitlab.com/<%= @item[:author_gitlab] %>" target="_blank"><%= @item[:author] %></a> - • - <% end %> - <% if @item[:date] %> - on <%= @item[:date] %> - • - <% end %> - <% if @item[:article_type] %> - Type: <%= @item[:article_type] %> - <% end %> - <% if @item[:level] %> - Level: <%= @item[:level] %> - • - <% end %> - <% if @item[:last_updated] %> - Last updated: <%= @item[:last_updated] %> - • - <% end %> - <% if @item[:reading_time] %> - <%= reading_time(item.raw_content.split.size) %> to read - <% end %> - </div> - <div class="article-content js-article-content" role="main" itemscope itemprop="mainContentOfPage"> - <%= yield %> + <main> + <div class="row"> + <div class="col"> + <% if @item[:title] %> + <h1 class="article-title" itemprop="name"> + <%= @item[:title] %><%= @item[:title_badge] %> + </h1> + <% end %> + <div class="article-metadata"> + <% if @item[:author] and @item[:author_gitlab] %> + Article written by <a href="https://gitlab.com/<%= @item[:author_gitlab] %>" target="_blank"><%= @item[:author] %></a> + • + <% end %> + <% if @item[:date] %> + on <%= @item[:date] %> + • + <% end %> + <% if @item[:article_type] %> + Type: <%= @item[:article_type] %> + <% end %> + <% if @item[:level] %> + Level: <%= @item[:level] %> + • + <% end %> + <% if @item[:last_updated] %> + Last updated: <%= @item[:last_updated] %> + • + <% end %> + <% if @item[:reading_time] %> + <%= reading_time(item.raw_content.split.size) %> to read + <% end %> + </div> + <div class="article-content js-article-content" role="main" itemscope itemprop="mainContentOfPage"> + <%= yield %> + </div> </div> </div> - </div> + </main> <div class="row px-4"> <div class="col"> <%= render '/feedback.*' %> |