From 9c2564ed35c578253bfbcde5f6bdc02ecd203336 Mon Sep 17 00:00:00 2001 From: Martin Danielsson Date: Sun, 14 Feb 2016 20:40:18 +0100 Subject: [PATCH] Links to author social media --- _data/authors.yml | 40 +++++++++++++++++++ _layouts/post.html | 39 +++++++++++++++++- _posts/2015-11-11-Hello-World.md | 2 +- _posts/2015-11-17-oscon.md | 2 +- _posts/2015-11-19-api-journey.md | 2 +- _posts/2015-12-07-devopscon-2015.md | 2 +- _posts/2015-12-08-DockerCon-EU-2015.md | 2 +- _posts/2015-12-11-apidays-paris.md | 2 +- _posts/2015-12-17-letsencrypt.md | 2 +- _posts/2015-12-31-smartsteuer-snap-app.md | 2 +- _posts/2016-01-11-log-aggregation.md | 2 +- _posts/2016-01-18-fluentd-log-parsing.md | 2 +- _posts/2016-01-25-azure-storage-sas.md | 2 +- ...2016-02-15-securing-backends-azure-apim.md | 2 +- index.html | 12 +++++- 15 files changed, 101 insertions(+), 14 deletions(-) create mode 100644 _data/authors.yml diff --git a/_data/authors.yml b/_data/authors.yml new file mode 100644 index 0000000..ba59c69 --- /dev/null +++ b/_data/authors.yml @@ -0,0 +1,40 @@ +# Author details. +holger_reinhardt: + name: Holger Reinhardt + email: holger.reinhardt@haufe-lexware.com + twitter: hlgr360 + github: hlgr360 + linkedin: hrreinhardt +martin_danielsson: + name: Martin Danielsson + email: martin.danielsson@haufe-lexware.com + twitter: donmartin76 + github: donmartin76 + linkedin: martindanielsson +marco_seifried: + name: Marco Seifried + email: marco.seifried@haufe-lexware.com + twitter: marcoseifried + github: marc00s + linkedin: marcoseifried +thomas_schuering: + name: Thomas Schüring + email: thomas.schuering@haufe-lexware.com + github: thomsch98 + linkedin: thomas-schuering-205a8780 +rainer_zehnle: + name: Rainer Zehnle + email: rainer.zehnle@haufe-lexware.com + github: Kodrafo + linkedin: rainer-zehnle-09a537107 + twitter: RainerZehnle +doru_mihai: + name: Doru Mihai + email: doru.mihai@haufe-lexware.com + github: Dutzu + linkedin: doru-mihai-32090112 + twitter: dcmihai +eike_hirsch: + name: Eike Hirsch + email: eike.hirsch@haufe-lexware.com + twitter: stagzta diff --git a/_layouts/post.html b/_layouts/post.html index 22a8a53..946b150 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -36,6 +36,21 @@ layout: default {% else %} {% assign tags_content = '' %} {% endif %} + + + {% if page.author %} + {% assign author = site.data.authors[page.author] %} + {% if author %} + + + {% capture author_content_temp %}{{ author.name }}{% endcapture %} + {% assign author_content = author_content_temp %} + {% else %} + {% assign author_content = page.author %} + {% endif %} + {% else %} + {% assign author_content = page.author %} + {% endif %}
@@ -45,7 +60,29 @@ layout: default {% if page.subtitle %}

{{ page.subtitle }}

{% endif %} - Posted by {% if page.author %}{{ page.author }}{% else %}{{ site.title }}{% endif %} on {{ page.date | date: "%B %-d, %Y" }} {{ category_content }}{{ tags_content }} + Posted by {{ author_content }} on {{ page.date | date: "%B %-d, %Y" }} {{ category_content }}{{ tags_content }} + {% if author %} +
    + {% if author.twitter %} +
  • + + +
  • + {% endif %} + {% if author.linkedin %} +
  • + + +
  • + {% endif %} + {% if author.github %} +
  • + + +
  • + {% endif %} +
+ {% endif %}
diff --git a/_posts/2015-11-11-Hello-World.md b/_posts/2015-11-11-Hello-World.md index bf3a9a5..38b14cd 100644 --- a/_posts/2015-11-11-Hello-World.md +++ b/_posts/2015-11-11-Hello-World.md @@ -4,7 +4,7 @@ title: We are live or How to start a developer blog subtitle: The 'Hello World' Post category: general tags: [cto, culture] -author: Holger +author: holger_reinhardt author_email: holger.reinhardt@haufe-lexware.com header-img: "images/bg-post.jpg" --- diff --git a/_posts/2015-11-17-oscon.md b/_posts/2015-11-17-oscon.md index 41bcf3b..d5f30c7 100644 --- a/_posts/2015-11-17-oscon.md +++ b/_posts/2015-11-17-oscon.md @@ -4,7 +4,7 @@ title: OSCON Europe 2015 subtitle: Notes from OSCON Europe 2015 category: conference tags: [open-source] -author: Marco +author: marco_seifried author_email: marco.seifried@haufe-lexware.com header-img: "images/bg-post.jpg" --- diff --git a/_posts/2015-11-19-api-journey.md b/_posts/2015-11-19-api-journey.md index bf14f9a..2c28473 100644 --- a/_posts/2015-11-19-api-journey.md +++ b/_posts/2015-11-19-api-journey.md @@ -4,7 +4,7 @@ title: The beginnings of our API Journey subtitle: Intro to our API Style Guide category: api tags: [api] -author: Holger +author: holger_reinhardt author_email: holger.reinhardt@haufe-lexware.com header-img: "images/bg-post.jpg" --- diff --git a/_posts/2015-12-07-devopscon-2015.md b/_posts/2015-12-07-devopscon-2015.md index 131571f..e9e98b0 100644 --- a/_posts/2015-12-07-devopscon-2015.md +++ b/_posts/2015-12-07-devopscon-2015.md @@ -4,7 +4,7 @@ title: Impressions from DevOpsCon 2015 subtitle: Notes from DevOpsCon 2015 category: conference tags: [docker, devops] -author: Rainer +author: rainer_zehnle author_email: rainer.zehnle@haufe-lexware.com header-img: "images/bg-post.jpg" --- diff --git a/_posts/2015-12-08-DockerCon-EU-2015.md b/_posts/2015-12-08-DockerCon-EU-2015.md index e3152fd..07778fb 100644 --- a/_posts/2015-12-08-DockerCon-EU-2015.md +++ b/_posts/2015-12-08-DockerCon-EU-2015.md @@ -4,7 +4,7 @@ title: Impressions from DockerCon 2015 - Part 1 subtitle: Insights, Outlooks and Inbetweens category: conference tags: [docker, security] -author: ThomasSc +author: thomas_schuering author_email: thomas.schuering@haufe-lexware.com header-img: "images/bg-post.jpg" --- diff --git a/_posts/2015-12-11-apidays-paris.md b/_posts/2015-12-11-apidays-paris.md index 2ab02c5..0a0fc68 100644 --- a/_posts/2015-12-11-apidays-paris.md +++ b/_posts/2015-12-11-apidays-paris.md @@ -4,7 +4,7 @@ title: APIdays Paris - From Philosophy to Technology and back again subtitle: A biased report from APIdays Global in Paris category: conference tags: [api] -author: Martin Danielsson +author: martin_danielsson author_email: martin.danielsson@haufe-lexware.com header-img: "images/bg-post.jpg" --- diff --git a/_posts/2015-12-17-letsencrypt.md b/_posts/2015-12-17-letsencrypt.md index c9b96b8..8b99171 100644 --- a/_posts/2015-12-17-letsencrypt.md +++ b/_posts/2015-12-17-letsencrypt.md @@ -4,7 +4,7 @@ title: Using 'Let's Encrypt' Certificates with Azure subtitle: Create free valid SSL certificates in 20 minutes. category: howto tags: [security, cloud] -author: Martin Danielsson +author: martin_danielsson author_email: martin.danielsson@haufe-lexware.com header-img: "images/bg-post.jpg" --- diff --git a/_posts/2015-12-31-smartsteuer-snap-app.md b/_posts/2015-12-31-smartsteuer-snap-app.md index be40665..fe46c60 100644 --- a/_posts/2015-12-31-smartsteuer-snap-app.md +++ b/_posts/2015-12-31-smartsteuer-snap-app.md @@ -4,7 +4,7 @@ title: Creating the Smartsteuer 'Snap' App subtitle: A behind the scenes view of the birth of our youngest creation. category: product tags: [smartsteuer, mobile, custdev] -author: Eike Hirsch +author: eike_hirsch author_email: eike.hirsch@smartsteuer.de header-img: "images/bg-post.jpg" --- diff --git a/_posts/2016-01-11-log-aggregation.md b/_posts/2016-01-11-log-aggregation.md index c1dc6c8..6f28912 100644 --- a/_posts/2016-01-11-log-aggregation.md +++ b/_posts/2016-01-11-log-aggregation.md @@ -4,7 +4,7 @@ title: Log Aggregation with Fluentd, Elasticsearch and Kibana subtitle: Introduction to log aggregation using Fluentd, Elasticsearch and Kibana category: howto tags: [devops, docker, logging] -author: Doru Mihai +author: doru_mihai author_email: doru.mihai@haufe-lexware.com header-img: "images/bg-post.jpg" --- diff --git a/_posts/2016-01-18-fluentd-log-parsing.md b/_posts/2016-01-18-fluentd-log-parsing.md index f49f881..11f27f5 100644 --- a/_posts/2016-01-18-fluentd-log-parsing.md +++ b/_posts/2016-01-18-fluentd-log-parsing.md @@ -4,7 +4,7 @@ title: Better Log Parsing with Fluentd subtitle: Description of a couple of approaches to designing your fluentd configuration. category: howto tags: [devops, logging] -author: Doru Mihai +author: doru_mihai author_email: doru.mihai@haufe-lexware.com header-img: "images/bg-post.jpg" --- diff --git a/_posts/2016-01-25-azure-storage-sas.md b/_posts/2016-01-25-azure-storage-sas.md index 3008d40..63aa654 100644 --- a/_posts/2016-01-25-azure-storage-sas.md +++ b/_posts/2016-01-25-azure-storage-sas.md @@ -4,7 +4,7 @@ title: Providing Secure File Storage through Azure API Management subtitle: Shared Access Signatures with Azure Storage category: howto tags: [security, cloud, api] -author: Martin Danielsson +author: martin_danielsson author_email: martin.danielsson@haufe-lexware.com header-img: "images/bg-post.jpg" --- diff --git a/_posts/2016-02-15-securing-backends-azure-apim.md b/_posts/2016-02-15-securing-backends-azure-apim.md index d38c162..b045de6 100644 --- a/_posts/2016-02-15-securing-backends-azure-apim.md +++ b/_posts/2016-02-15-securing-backends-azure-apim.md @@ -4,7 +4,7 @@ title: Securing Backend Services behind Azure API Management subtitle: Different approaches to securing API implementations category: howto tags: [security, cloud, api] -author: Martin Danielsson +author: martin_danielsson author_email: martin.danielsson@haufe-lexware.com header-img: "images/bg-post.jpg" --- diff --git a/index.html b/index.html index e096c69..0026b6d 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,17 @@ layout: page {% endif %} -

Posted by {% if post.author %}{{ post.author }}{% else %}{{ site.title }}{% endif %} on {{ post.date | date: "%B %-d, %Y" }}

+ {% if post.author %} + {% assign author = site.data.authors[post.author] %} + {% if author %} + {% assign author_name = author.name %} + {% else %} + {% assign author_name = post.author %} + {% endif %} + {% else %} + {% assign author_name = site.title %} + {% endif %} +

Posted by {{ author_name }} on {{ post.date | date: "%B %-d, %Y" }}


{% endfor %}