-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (58 loc) · 2.12 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
---
layout: default
---
<div class="home">
<div class="post" itemscope itemtype="http://schema.org/BlogPosting" >
{% for post in paginator.posts %}
<header class="post-header">
<h1 itemprop="name" class="post-title">
<a itemprop="url" class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h1>
<meta itemprop="keywords" content="{{ post.tags | join: ',' }}" />
<p class="post-meta">
{{ site.locales[site.default_locale].PostedInCategories }}
{% for cat in post.categories %}
<a href="{{site.baseurl}}/categories/#{{ cat }}">{{ cat }}</a>
{% endfor %}
{% if post.tags != empty %}
{{ site.locales[site.default_locale].Taggedwith }}
{% for tag in post.tags %}
<a href="{{ site.baseurl }}/tags/#{{ tag }}" title="{{ tag }}">{{ tag }} </a>{% unless post.tags.last == tag %}, {% endunless %}
{% endfor %}
{% endif %}
<time itemprop="datePublished" datetime="{{ post.date | date: '%Y-%m-%d' }}">
{{ site.locales[site.default_locale].PostDate }}{{ post.date | date: "%b %-d, %Y" }}
</time>
</p>
</header>
<article class="post-content" itemprop="articleBody">
{{ post.excerpt }}
{% capture content_words %}
{{ post.content | number_of_words }}
{% endcapture %}
{% capture excerpt_words %}
{{ post.excerpt | number_of_words }}
{% endcapture %}
{% if content_words != excerpt_words %}
<p><a href="{{ post.url }}#read-more">Read more</a></p>
{% endif %}
</article> <hr />
{% endfor %}
</div>
<div class="gcse">
<!--Google Custom Search-->
<script>
(function() {
var cx = '011168927234392293970:6oksmgckzdm';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
<!-- End Google Custom Search -->
</div>
</div>