Skip to content

Commit cf324df

Browse files
committed
Link to author URLs
1 parent 00e77bf commit cf324df

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

_layouts/default.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ <h1 class="page-header">
1010
<br>
1111
<small>
1212
{% if page.author %}
13-
Written by <em>{{ page.author }}</em> on
13+
Written by
14+
{% if page.authorurl %}
15+
<a href="{{ page.authorurl }}">{{ page.author }}</a>
16+
{% else %}
17+
{{ page.author }}
18+
{% endif %}
19+
on
1420
{% endif %}
1521
{{ page.date | date: '%B %d, %Y' }}
1622
</small>

_posts/2015-07-29-welcome.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Welcome to the Ocsigen Blog!
33
layout: default
44
author: The Ocsigen Team
5+
authorurl: https://ocsigen.org
56
---
67

78
The [Ocsigen][ocsigen] project finally has a blog. We are planning to

_posts/2015-08-17-releases.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Summer Ocsigen releases
33
layout: default
44
author: Gabriel Radanne
5+
authorurl: https://drup.github.io/
56
---
67

78
We are happy to announce the releases of

_posts/2015-10-07-react-example-todomvc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: 'TodoMVC: a reactive version'
33
layout: default
44
author: Stéphane Legrand
5+
authorurl: https://stephanelegrand.wordpress.com/
56
---
67

78
[TodoMVC](http://todomvc.com/) is a project which offers the same Todo

blog/index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ <h1 class="page-header">
1717
<br>
1818
<small>
1919
{% if post.author %}
20-
Written by <em>{{ post.author }}</em> on
20+
Written by
21+
{% if post.authorurl %}
22+
<a href="{{ post.authorurl }}">{{ post.author }}</a>
23+
{% else %}
24+
{{ post.author }}
25+
{% endif %}
26+
on
2127
{% endif %}
2228
{{ post.date | date: '%B %d, %Y' }}
2329
</small>

0 commit comments

Comments
 (0)