Skip to content

Commit

Permalink
feat: author name & link for blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
manustays committed Sep 1, 2023
1 parent c602560 commit 8931338
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/_includes/css/blog.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 9 additions & 1 deletion src/_layouts/blog_post.njk
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@
<section class="block">
<h1>{{ title }}</h1>
<h6>
{% if author %}
{% if authorlink %}
<a class="author" href="{{ authorlink }}" target="_blank">{{ author }}</a>
{% else %}
<span class="author">{{ author }}</span>
{% endif %}
{% endif %}
<time>{{ date | dateFormat('MMM d, yyyy') }}</time>
{% for item in tags %}
<a class="blogtag" href="/blog/tags/{{item}}/">#{{ item }}</a>
{% endfor %}
</h6>
{% Image image, 'Post Illustration', false, 'hero' %}
<p>{{ content | safe }}</p>

<p>{{ content | safe }}</p>

<br><br><hr>
<a class="button outline" href="/blog/">{% svgico 'arrow-circle-left' %}&nbsp;All Posts</a>
Expand Down
2 changes: 2 additions & 0 deletions src/blog/eloka-saas-for-small-businesses.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ tags:
- saas
author: Kumar Abhishek
authorlink: https://abhi.page
business: api
product: whitelabel
---


Expand Down

0 comments on commit 8931338

Please sign in to comment.