Skip to content

Commit 2d35ff9

Browse files
committed
Added author attribution support
1 parent 1db63d8 commit 2d35ff9

File tree

5 files changed

+14
-1
lines changed

5 files changed

+14
-1
lines changed

_data/authors.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Author details.
2+
patrik_fredriksson:
3+
name: Patrik Fredriksson
4+
email: patrik.fredriksson@citerus.se
5+
web: http://twitter.com/weakreference
6+
robin_geall:
7+
name: Robin Geall
8+
email: robin@sorryapp.com
9+
web: http://twitter.com/robingeall

_drafts/dddsample-2.0.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: post
33
title: "DDD Sample App 2.0 Rationale"
44
date: 2015-03-28 12:34:40
55
categories: general
6+
author: patrik_fredriksson
67
---
78

89
##The initial creation of DDD Sample

_drafts/setting-up-the-dddsample-blog.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: post
33
title: "Setting up the DDD Sample blog"
44
date: 2015-03-08 22:37:00
55
categories: blog meta
6+
author: patrik_fredriksson
67
---
78
So, when we decided to resurrect the DDD Sample app, we also decided to create a blog to go with it. We expect to learn a bunch of new stuff during this exercise, and thought it would be fun to share some of these learnings with you as we
89
went along.

_layouts/post.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
22
layout: default
33
---
4+
{% assign author = site.data.authors[page.author] %}
45
<div class="post">
56

67
<header class="post-header">
78
<h1 class="post-title">{{ page.title }}</h1>
8-
<p class="post-meta">{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
9+
<p class="post-meta">{{ page.date | date: "%b %-d, %Y" }}{% if author %} • <a href="{{ author.web }}" target="_blank">{{ author.name }}</a>{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
910
</header>
1011

1112
<article class="post-content">

_posts/2015-02-11-welcome.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ layout: post
33
title: "Welcome to DDD Sample App 2.0 dev blog!"
44
date: 2015-02-11 22:51:59
55
categories: jekyll update
6+
author: patrik_fredriksson
67
---
78
This is the first post. It will soon be replaced by something real. Stay tuned.

0 commit comments

Comments
 (0)