forked from daattali/beautiful-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaces tag index plugin with native jekyll features (daattali#307)
* remove tag _gen plugin and its folder * remove deprecated tag index layout * add tag index page * link tag index page in nav bar, enable tag links by default * add button spacer in main css * fix tag links in post view * fix tag links on index and pagination * tag link instuctions removed. it's enabled as default
- Loading branch information
Showing
8 changed files
with
50 additions
and
88 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,31 @@ | ||
--- | ||
layout: page | ||
title: 'Tag Index' | ||
--- | ||
|
||
{%- capture site_tags -%} | ||
{%- for tag in site.tags -%} | ||
{{- tag | first -}}{%- unless forloop.last -%},{%- endunless -%} | ||
{%- endfor -%} | ||
{%- endcapture -%} | ||
{%- assign tags_list = site_tags | split:',' | sort -%} | ||
|
||
{%- for tag in tags_list -%} | ||
<a href="#{{- tag -}}" class="btn btn-primary tag-btn"><i class="fa fa-tag" aria-hidden="true"></i> {{- tag -}}</a> | ||
{%- endfor -%} | ||
|
||
{%- for tag in tags_list -%} | ||
<h3 id="{{- tag -}}"><i class="fa fa-tag" aria-hidden="true"></i> {{- tag -}}</h3> | ||
<ul class="post-list"> | ||
{%- for post in site.tags[tag] -%} | ||
<li> | ||
<i class="fa fa-calendar-check-o" aria-hidden="true"></i> | ||
<span class="entry-date"> | ||
<time datetime="{{- post.date | date_to_xmlschema -}}">{{- post.date | date: "%B %d, %Y" -}}</time> | ||
</span> | ||
<i class="fa fa-newspaper-o" aria-hidden="true"></i> | ||
<a href="{{- site.url -}}{{- post.url -}}">{{- post.title -}}</a> | ||
</li> | ||
{%- endfor -%} | ||
</ul> | ||
{%- endfor -%} |