cheatsheets/_includes/2017/pages-list-item.html

16 lines
746 B
HTML

<a class='{{ include.class }} -item-{{ include.page.url | remove: '.html' | remove: '/' }}'
href="{{base}}{{ include.page.url | remove: '.html' }}"
data-js-searchable-item='{"slug":"{{ include.page.url | remove: '.html' | remove: '/' }}","category":"{{ include.page.category }}"}'>
<span class='info'>
<code class='slug'>{{ include.page.url | remove: '.html' | remove: '/' }}</code>
{% if include.page.layout == '2017/sheet' %}
<abbr class='attribute-peg -new-layout hint--bottom' data-hint='New layout!'><span></span></abbr>
{% endif %}
{% if include.page.title | downcase != include.page.url | remove: '.html' | remove: '/' %}
<span class='title'>{{ include.page.title }}</span>
{% endif %}
</span>
</a>