forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 1
/
authors.html
77 lines (71 loc) · 3.13 KB
/
authors.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
76
77
---
layout: authors
title: "Autores"
permalink: /authors/index.html
image: '/assets/img/'
description: "Encontre todos artigos separados por autor"
---
{% for authorObj in site.authors %}
<section class="author" itemprop="author">
<div class="details" itemscope itemtype="http://schema.org/Person">
<img itemprop="image" class="img-rounded author-list-img" src="https://www.gravatar.com/avatar/{{ authorObj[1].gravatar }}?s=110" alt="{{ authorObj[1].name }}">
<p class="def">Autor</p>
<h3 class="name">
<a style="border-bottom:none;" itemprop="name" href="https://br.linkedin.com/in/{{ authorObj[1].linkedin }}">{{ authorObj[1].name }}</a>
</h3>
{% if authorObj[1].email %}
<a style="border-bottom:none;" itemprop="email" class="email" href="mailto:{{ authorObj[1].email }}">E-mail</a> -
{% endif %}
{% if authorObj[1].github %}
<a style="border-bottom:none;" itemprop="github" class="email" href="https://github.com/{{ authorObj[1].github }}">Github</a> -
{% endif %}
{% if authorObj[1].linkedin %}
<a style="border-bottom:none;" itemprop="linkedin" class="email" href="https://br.linkedin.com/in/{{ authorObj[1].linkedin }}">LinkedIn</a> -
{% endif %}
{% if authorObj[1].twitter %}
<a style="border-bottom:none;" itemprop="twitter" class="email" href="https://twitter.com/{{ authorObj[1].twitter }}">Twitter</a> -
{% endif %}
{% if authorObj[1].facebook %}
<a style="border-bottom:none;" itemprop="facebook" class="email" href="https://facebook.com/{{ authorObj[1].facebook }}">Facebook</a> -
{% endif %}
{% if authorObj[1].site %}
<a style="border-bottom:none;" itemprop="site" class="email" href="{{ authorObj[1].site }}">Site</a>
{% endif %}
</div>
</section>
{% assign authorPosts = site.posts | where: "author", authorObj[0] %}
{% assign numberOfPosts = authorPosts.size %}
{% if numberOfPosts > 0 %}
<ul class="post-list">
{% for post in authorPosts %}
<li>
<a href="{{ site.url }}{{ post.url }}">
{{ post.title }}
<span class="entry-date">
<time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">
{% assign m = post.date | date: "%-m" %}
{{ post.date | date: "%d" }} de
{% case m %}
{% when '1' %}Janeiro
{% when '2' %}Fevereiro
{% when '3' %}Março
{% when '4' %}Abril
{% when '5' %}Maio
{% when '6' %}Junho
{% when '7' %}Julho
{% when '8' %}Agosto
{% when '9' %}Setembro
{% when '10' %}Outubro
{% when '11' %}Novembro
{% when '12' %}Dezembro
{% endcase %}
de {{ post.date | date: "%Y" }}
</time>
</a>
</li>
{% endfor %}
</ul>
{% else %}
<p class="no-posts">Esse autor ainda não possui artigos publicados</p>
{% endif %}
{% endfor %}