9d429fa749
* Fix absolute URL generation url and baseurl config for this theme deviates from jekyll standard, and that results in double inclusion of project path if this theme is used as project page. Switching to Jekyll accepted url usage so that absolute_url filter works. * Alternate links need to be aboslute * mention url and baseurl only need to be modified in local dev * Update readme on new url/baseurl setting changes
35 lines
1.1 KiB
HTML
35 lines
1.1 KiB
HTML
---
|
|
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 -}} ({{site.tags[tag].size}})</a>
|
|
{%- endfor -%}
|
|
|
|
<div id="full-tags-list">
|
|
{%- for tag in tags_list -%}
|
|
<h2 id="{{- tag -}}" class="linked-section">
|
|
<i class="fa fa-tag" aria-hidden="true"></i>
|
|
{{- tag -}} ({{site.tags[tag].size}})
|
|
</h2>
|
|
<div class="post-list">
|
|
{%- for post in site.tags[tag] -%}
|
|
<div class="tag-entry">
|
|
<a href="{{ post.url | relative_url }}">{{- post.title -}}</a>
|
|
<div class="entry-date">
|
|
<time datetime="{{- post.date | date_to_xmlschema -}}">{{- post.date | date: "%B %d, %Y" -}}</time>
|
|
</div>
|
|
</div>
|
|
{%- endfor -%}
|
|
</div>
|
|
{%- endfor -%}
|
|
</div>
|