From b91ecf3c010c82e385993f5f51310050bd3714b2 Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Wed, 14 Mar 2018 15:34:46 +0530 Subject: [PATCH] assign and use Liquid variables in templates --- docs/_includes/news_item.html | 6 +++--- docs/_layouts/news_item.html | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/_includes/news_item.html b/docs/_includes/news_item.html index bf04dc9f..db490c8e 100644 --- a/docs/_includes/news_item.html +++ b/docs/_includes/news_item.html @@ -13,10 +13,10 @@ {{ post.date | date_to_string }} - - {% assign author = post.author %} + {% assign author = post.author %} + {% avatar user=author size=24 %} - {{ post.author }} + {{ author }}
diff --git a/docs/_layouts/news_item.html b/docs/_layouts/news_item.html index de6508d0..e9fa2aec 100644 --- a/docs/_layouts/news_item.html +++ b/docs/_layouts/news_item.html @@ -19,9 +19,10 @@ layout: news -