From 82878ae68b3aa12facf9ee418f34feb69d1cb63e Mon Sep 17 00:00:00 2001 From: Martin Danielsson Date: Sun, 14 Feb 2016 21:14:20 +0100 Subject: [PATCH] Better looking author links; fixed one image --- _layouts/post.html | 33 ++++++++------------------ _posts/2016-01-25-azure-storage-sas.md | 5 ++-- 2 files changed, 12 insertions(+), 26 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index 946b150..0f31a24 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -45,6 +45,15 @@ layout: default {% capture author_content_temp %}{{ author.name }}{% endcapture %} {% assign author_content = author_content_temp %} + {% if author.twitter %} + {% capture author_twitter %} {% endcapture %} + {% endif %} + {% if author.linkedin %} + {% capture author_linkedin %} {% endcapture %} + {% endif %} + {% if author.github %} + {% capture author_github %} {% endcapture %} + {% endif %} {% else %} {% assign author_content = page.author %} {% endif %} @@ -60,29 +69,7 @@ layout: default {% if page.subtitle %}

{{ page.subtitle }}

{% endif %} - Posted by {{ author_content }} on {{ page.date | date: "%B %-d, %Y" }} {{ category_content }}{{ tags_content }} - {% if author %} - - {% endif %} + Posted by {{ author_content }} {{ author_twitter }}{{ author_github }}{{ author_linkedin }} on {{ page.date | date: "%B %-d, %Y" }} {{ category_content }}{{ tags_content }} diff --git a/_posts/2016-01-25-azure-storage-sas.md b/_posts/2016-01-25-azure-storage-sas.md index 63aa654..68f1fb1 100644 --- a/_posts/2016-01-25-azure-storage-sas.md +++ b/_posts/2016-01-25-azure-storage-sas.md @@ -53,9 +53,8 @@ Luckily, Azure already provides a means of anonymous and restricted access to st We leverage the SAS feature to explicitly grant **write** access to one single blob (file) on the storage for which we define the file name. The access is granted for 60 minutes (one hour), which is enough to transfer large scale files. Our Content API exposes an end point which returns an URL containing the SAS token which can immediately be used to do a `PUT` to the storage. -
-![Azure Storage SAS - Diagram]({{ site.url }}/images/azure-storage-sas-1.png) -
+{:.center} +![Azure Storage SAS - Diagram]({{ site.url }}/images/azure-storage-sas-1.png){:style="margin:auto"} The upload to the storage can either be done using any http library (using a `PUT`), or using an Azure Storage SDK ([available for multiple languages](https://github.com/Azure?utf8=%E2%9C%93&query=storage), it's on github), which in turn enables features like parallel uploading or block uploading (for more robust uploading).