Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion _data/authors.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
iluetkeb:
# The author entry will be looked for each post.
# From all the author data, 'link' will be used to locate which will be prominent in the post, as a link.
# 'link' should contain the name of the data to be used; twitter, web or github are currently supported.
lui3si:
name: iluetkeb
twitter: ingoluetkebohle
link: twitter
anordman:
name: Arne Nordmann
twitter: norro58
web: http://arne-nordmann.de
link: twitter
borjaouterelo:
name: Borja Outerelo
twitter: boouga
github: BorjaOuterelo
link: twitter
ralph-lange:
name: Ralph Lange
web: http://lange-ralph.de
link: web
30 changes: 21 additions & 9 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,28 @@ <h4>RECENT POSTS</h4>
<div class="col-md-8">
<h1>{{ page.title }}</h1>
<p>{{ page.date | date: "%b %-d, %Y" }}
{% if page.author %}
{% if page.author %} <i class="fa fa-pencil fa-lg">
{% assign author = site.data.authors[page.author] %}
{% if author.twitter %}
<a rel="author"
href="https://twitter.com/{{ author.twitter }}"
title="{{ author.name }}">{{page.author}}
</a>
{% else %}
{{page.author}}
{% endif %}
{% case author.link %}
{% when 'twitter' %}
<a rel="author"
href="https://twitter.com/{{ author.twitter }}"
title="{{ author.name }}">{{page.author}}
</a>
{% when 'web' %}
<a rel="author"
href="{{author.web}}"
title="{{ author.name }}">{{page.author}}
</a>
{% when 'github' %}
<a rel="author"
href="https://github.com/{{ author.github }}"
title="{{ author.name }}">{{page.author}}
</a>
{% else %}
{{page.author}}
{% endcase %}
</i>
{% endif %}
{% if page.meta %} • {{ page.meta }}{% endif %}</p>
<div id="markdown-content-container">{{ content }}</div>
Expand Down