From 893133833d0831b050068daa61b3f1bd5ea55db4 Mon Sep 17 00:00:00 2001 From: Kumar Abhishek Date: Fri, 1 Sep 2023 20:38:28 +0530 Subject: [PATCH] feat: author name & link for blog posts --- src/_includes/css/blog.css | 8 ++++++++ src/_layouts/blog_post.njk | 10 +++++++++- src/blog/eloka-saas-for-small-businesses.md | 2 ++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/_includes/css/blog.css b/src/_includes/css/blog.css index 6b7b0af..2051e54 100644 --- a/src/_includes/css/blog.css +++ b/src/_includes/css/blog.css @@ -86,6 +86,14 @@ img.hero { text-decoration: none; } +.author { + margin-right: 1em; +} +/* .author::after { + content: '●'; + margin-left: 1em; +} */ + .blogslist .card { background: white; text-decoration: none; diff --git a/src/_layouts/blog_post.njk b/src/_layouts/blog_post.njk index 2b84347..c3551f8 100644 --- a/src/_layouts/blog_post.njk +++ b/src/_layouts/blog_post.njk @@ -15,13 +15,21 @@

{{ title }}

+ {% if author %} + {% if authorlink %} + {{ author }} + {% else %} + {{ author }} + {% endif %} + {% endif %} {% for item in tags %} #{{ item }} {% endfor %}
{% Image image, 'Post Illustration', false, 'hero' %} -

{{ content | safe }}

+ +

{{ content | safe }}




{% svgico 'arrow-circle-left' %} All Posts diff --git a/src/blog/eloka-saas-for-small-businesses.md b/src/blog/eloka-saas-for-small-businesses.md index 2b2f937..4ec336f 100644 --- a/src/blog/eloka-saas-for-small-businesses.md +++ b/src/blog/eloka-saas-for-small-businesses.md @@ -9,6 +9,8 @@ tags: - saas author: Kumar Abhishek authorlink: https://abhi.page +business: api +product: whitelabel ---