-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (75 loc) · 3.48 KB
/
index.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
layout: naked
title: Home
schema: Blog
---
<div class="row">
<meta itemprop="name" content="{{ site.name }}" />
<div class="col-xs-12">
<div class="page-header">
<!-- a class="btn btn-danger btn-lg pull-right" href="http://stackoverflow.com/cv/msyea">Hire Me</a -->
<h1 itemprop="keywords">Simon Mayes<small> - Climber and Software Engineer</small></h1>
<div class="hidden" itemprop="author publisher" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Simon Mayes" />
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-9">
{% for post in site.posts limit:1 %}
<div class="row">
<div class="home-main col-xs-12">
<div itemprop="blogPost" itemid="{{ site.url }}{{ post.url }}" itemscope itemtype="http://schema.org/BlogPosting">
<h2 itemprop="name"><a href="{{ site.url }}{{ post.url }}" itemprop="url mainEntityOfPage">{{ post.title }}</a></h2>
<meta itemprop="headline" content="{{ post.excerpt | newline_to_br | replace: '<br />', ' ' | strip_html | strip_newlines | strip | truncatewords:20 }}" />
{% 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>
<div itemprop="articleBody">
{{ post.content }}
</div>
</div>
{% include disqus.html %}
</div>
</div>
{% endfor %}
</div>
<div class="col-md-3">
<h4>Recent posts</h4>
<ul class="homepage-list list-unstyled">
{% for post in site.posts %}
<li><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a> {% for category in post.categories %}<a class="label label-primary pull-right" href="/{% if site.my_categories contains category %}{{ category }}{% else %}other{% endif %}.html">{{ category }}</a> {% endfor %}</li>
{% endfor %}
</ul>
</div>
</div>
{% for post in site.posts limit:1 %}
<div class="row">
<div class="class-md-12">
{% assign tp = site.posts | size | minus:1 %}
<nav aria-label="Page navigation" class="text-center">
<ul class="pagination">
<li class="disabled">
<span aria-hidden="true">Previous</span>
</li>
{% for i in (0..tp) %}
<li{% if post.id == site.posts[i].id %} class="active"{% endif %}><a href="{% if i == 0 %}/{% else %}{{ site.posts[i].url }}{% endif %}">{{ i | plus:1 }}</a></li>
{% endfor %}
<li>
<a href="{{ site.posts[1].url }}" aria-label="Next">
<span aria-hidden="true">Next</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
{% endfor %}