-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathother.html
43 lines (43 loc) · 2.04 KB
/
other.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
layout: naked
title: Other
---
<div class="row">
<div class="col-md-12">
<div class="page-header">
<h1>Other <small>apparently somethings aren't climbing or software</small></h1>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h2>Latest blog posts</h2>
{% for post in site.posts %}
{% assign show = true %}
{% for category in post.categories %}
{% if site.my_categories contains category %}
{% assign show = false %}
{% endif %}
{% endfor %}
{% if show %}
<div class="media climbing" itemid="{{ site.url }}{{ post.url }}" itemscope itemtype="http://schema.org/BlogPosting">
<div class="media-body">
<h3 class="media-heading" itemprop="name"><a href="{{ site.url }}{{ post.url }}" itemprop="url mainEntityOfPage">{{ post.title }}</a></h3>
{% if post.image %}<div class="hidden" itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<img itemprop="url" src="{{ post.image }}" alt="{{ post.title }}" />
</div>{% endif %}
<p><time class="label label-default" itemprop="datePublished dateModified" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_long_string }}</time>
{% for category in post.categories %}<a class="label label-primary" href="/{% if site.my_categories contains category %}{{ category }}{% else %}other{% endif %}.html" itemprop="keywords">{{ category }}</a> {% endfor %}
{% for tag in post.tags %}<a class="label label-info" href="/tag/{{ tag }}.html" itemprop="keywords">{{ tag }}</a> {% endfor %}
<span itemprop="author publisher" itemscope itemtype="http://schema.org/Person">
by <a itemprop="name" href="{{ site.url }}">Simon Mayes</a> (<a href="https://twitter.com/msyea">@msyea</a>)
</span>
</p>
<meta itemprop="headline" content="{{ post.excerpt | newline_to_br | replace: '<br />', ' ' | strip_html | strip_newlines | strip | truncatewords:20 }}" />
<div>{{ post.excerpt }}</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>