This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(layout): complete categories and tags page
- Loading branch information
ppoffice
committed
Apr 18, 2018
1 parent
0ca2950
commit 259592d
Showing
7 changed files
with
52 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
<% page._categories.forEach(category => {%> | ||
<%= category.name %> | ||
<% }) %> | ||
<section class="section section-heading"> | ||
<div class="container"> | ||
<div class="content"> | ||
<h5><i class="far fa-folder"></i><%= __('common.categories') %></h5> | ||
</div> | ||
</div> | ||
</section> | ||
<section class="section"> | ||
<div class="container"> | ||
<div class="columns is-variable is-1 is-multiline is-mobile"> | ||
<% (page._categories || page.categories).forEach(category => {%> | ||
<span class="column is-narrow"> | ||
<a class="tag is-light article-tag" href="<%= url_for(category.path) %>"><%= category.name %> (<%= category.posts.length%>)</a> | ||
</span> | ||
<% }) %> | ||
</div> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
<% page._tags.forEach(tag => {%> | ||
<%= tag.name %> | ||
<% }) %> | ||
<section class="section section-heading"> | ||
<div class="container"> | ||
<div class="content"> | ||
<h5>#<%= __('common.tags') %></h5> | ||
</div> | ||
</div> | ||
</section> | ||
<section class="section"> | ||
<div class="container"> | ||
<div class="columns is-variable is-1 is-multiline is-mobile"> | ||
<% (page._tags || page.tags).forEach(tag => {%> | ||
<span class="column is-narrow"> | ||
<a class="tag is-light article-tag" href="<%= url_for(tag.path) %>">#<%= tag.name %> (<%= tag.posts.length%>)</a> | ||
</span> | ||
<% }) %> | ||
</div> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters