forked from vuejs-br/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (54 loc) · 2.47 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
---
layout: default
title: Home
cover: false
about: 'about.html'
---
<header class="main-header {% if page.cover %}" style="background-image: url({{ page.cover }}) {%else%}no-cover{% endif %}">
<nav class="main-nav overlay clearfix">
{% if site.logo %}
<a class="blog-logo" href="{{ site.baseurl }}">
<img src="{{ site.baseurl }}{{ site.logoUrl }}"/>
</a>
{% endif %}
<!--<a class="subscribe-button icon-feed" href="{{ site.baseurl }}feed.xml">Subscribe</a>-->
</nav>
<div class="vertical">
<div class="main-header-content inner">
<h1 class="page-title">{{ site.name }}</h1>
<h2 class="page-description">
{% if site.description %} {{ site.description }} {% endif %}
</h2>
</div>
</div>
<a class="scroll-down icon-arrow-left" href="#content" data-offset="-45"><span class="hidden">Scroll Down</span></a>
</header>
<main id="content" class="content" role="main">
{% if site.warning %} <div class="main-header-content inner" style="background-color: #fcc;padding:20px;text-align: center"><b>{{ site.warning_message }}</b></div> {% endif %}
{% if site.info %} <div class="main-header-content inner" style="background-color: #eee;padding:20px;margin-top:10px;text-align: center"><b>{{ site.info_message }}</b></div> {% endif %}
<div class="extra-pagination inner">
{% include pagination.html %}
</div>
{% for post in paginator.posts %}
{% assign author = site.authors[post.author] %}
<article class="post">
<header class="post-header">
<h2 class="post-title"><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
</header>
<section class="post-excerpt">
{{ post.excerpt }} <a class="read-more" href="{{ post.url }}">»</a>
</section>
<footer class="post-meta">
<img class="author-thumb" src="https://www.gravatar.com/avatar/{{ author.gravatar }}" nopin="nopin" />
{{ author.name }}
{% if post.categories.size > 0 %}
{{ post.categories | array_to_sentence_string | prepend: 'on ' }}
{% endif %}
<time class="post-date" datetime="{{ post.date | date:"%Y-%m-%d" }}">
{{ post.date | date_to_string }}
</time>
</footer>
</article>
{% endfor %}
{% include pagination.html %}
</main>