Update tag styling, add links

This commit is contained in:
Oliver Davies 2018-05-21 23:15:54 +01:00
parent b1ef0534b5
commit e80c15bea0
2 changed files with 20 additions and 9 deletions

View file

@ -58,6 +58,14 @@ main ul
svg svg
fill: currentColor fill: currentColor
.element-invisible
position: absolute !important
clip: rect(1px, 1px, 1px, 1px)
overflow: hidden
height: 1px
width: 1px
word-wrap: normal
@import 'components/listing' @import 'components/listing'
@import 'components/table' @import 'components/table'
@import 'components/talk/slides' @import 'components/talk/slides'

View file

@ -1,13 +1,16 @@
{% if page.tags %} {% if page.tags %}
<div> <h2 class="element-invisible">Tags</h2>
<p>
Tags: <ul class="list-reset flex flex-wrap">
{% for tag in page.tags|sort %} {% for tag in page.tags|sort %}
<a href="{{ site.url }}/blog/tags/{{ tag|url_encode(true) }}" class="blue"> <li>
<a
href="/blog/tags/{{ tag }}"
class="text-xs py-1 px-2 mr-1 mb-1 bg-grey-lighter text-grey leading-none no-underline hover:underline focus:underline"
>
{{- tag -}} {{- tag -}}
</a> </a>
{%- if not loop.last %},{% endif %} </li>
{% endfor %} {% endfor %}
</p> </ul>
</div>
{% endif %} {% endif %}