Skip to content

Commit

Permalink
ui: optimize post share layout
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet committed Sep 20, 2023
1 parent 9403947 commit 4141cf4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
28 changes: 16 additions & 12 deletions layout/article-content.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,22 @@
<% } %>
<div class="post-bottom-tags-and-share border-box">
<% if (page.tags.length) { %>
<ul class="post-tags-box border-box">
<% page.tags.forEach((tag) => { %>
<li class="tag-item border-box">
<a href="<%- url_for(tag.path) %>"><i class="icon fas fa-hashtag"></i><%= tag.name %></a>&nbsp;
</li>
<% }) %>
</ul>
<% } %>
<% if (theme?.post?.share === true && page?.share !== false) { %>
<%- partial('_partial/post/post-share') %>
<% } %>
<div>
<% if (page.tags.length) { %>
<ul class="post-tags-box border-box">
<% page.tags.forEach((tag) => { %>
<li class="tag-item border-box">
<a href="<%- url_for(tag.path) %>"><i class="icon fas fa-hashtag"></i><%= tag.name %></a>&nbsp;
</li>
<% }) %>
</ul>
<% } %>
</div>
<div>
<% if (theme?.post?.share === true && page?.share !== false) { %>
<%- partial('_partial/post/post-share') %>
<% } %>
</div>
</div>
<% if (theme?.post?.reward?.enable === true && theme?.post?.reward?.img_link && page?.reward !== false) { %>
Expand Down
1 change: 0 additions & 1 deletion source/css/layout/article-content.styl
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ $spacer-padding = 2rem

.post-bottom-tags-and-share {
display flex
align-items center
justify-content space-between
width 100%
margin-top 1rem
Expand Down

0 comments on commit 4141cf4

Please sign in to comment.