-
-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tags index page and sitemap for tags (#258)
* Tags index page and sitemap for tags * Observations of le4ker taken into account * Conditional plural for "post" in tag list --------- Co-authored-by: César Lizurey <[email protected]>
- Loading branch information
1 parent
cb798b9
commit 770c0aa
Showing
5 changed files
with
60 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!-- Tag Layout Start --> | ||
|
||
<!doctype html> | ||
<html lang="{{ site.lang }}"> | ||
|
||
{% include head.html %} | ||
|
||
<body> | ||
{% include navigation.html %} | ||
|
||
<section class="container content-section text-center"> | ||
<div class="row"> | ||
<div class="col-md-10 col-md-offset-1 col-xs-10 col-xs-offset-1"> | ||
{% assign tag = page.title %} | ||
|
||
<h3 id="#tags">#Tags</h3> | ||
<ul style="list-style-type: none;display: flex;flex-direction: column;align-items: center;padding: 0"> | ||
{% assign sorted_tags = site.tags | sort %} | ||
{% for tag in sorted_tags %} | ||
<li> | ||
<h4><a href="{{ site.baseurl }}/tags/{{ tag[0] }}.html">{{ tag[0] }}</a> ({{ tag[1].size }} post{% if tag[1].size > 1 %}s{% endif %})</h4> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
{% include footer.html %} | ||
|
||
{% include js.html %} | ||
|
||
</body> | ||
</html> | ||
|
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
layout: tags | ||
section-type: tags | ||
has-comments: true | ||
title: Tags | ||
sitemap: | ||
priority: 1.0 | ||
--- | ||
## Tags |