Skip to content

Commit

Permalink
Merge pull request #78 from sujaykundu777/dev-october
Browse files Browse the repository at this point in the history
added author sidebar widget
  • Loading branch information
sujaykundu777 authored Oct 26, 2020
2 parents 0dfc493 + 2045f5a commit fe193c5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
7 changes: 7 additions & 0 deletions _includes/blog_authors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<ul>
{% for author in site.authors %}
<li>
<a href="/blog/authors/{{ author.username }}">{{ author.name }}</a>
</li>
{% endfor %}
</ul>
9 changes: 7 additions & 2 deletions _includes/blog_sidebar.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@

<div class="col-lg-3">

<div class="card">
<div class="card-header">Categories </div>
<div class="card-body text-dark">
{%- include blog_categories.html -%}
</div>
</div>
</div>
<div class="card">
<div class="card-header">Authors </div>
<div class="card-body text-dark">
{%- include blog_authors.html -%}
</div>
</div>
</div>
8 changes: 6 additions & 2 deletions _posts/2020-10-25-multi-author-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,13 @@ author: janedoe
This is Jane Doe's Article
```

Now a page will be created for Jane Doe to showcase her profile and all her posts and details.
Now there will be Authors widget in Blog Sidebar, showing all authors like this :

![Author Page](https://res.cloudinary.com/sujaykundu/image/upload/c_scale,fl_progressive,w_506/v1603643237/1_ee3yke.png)
![Author Sidebar Widget](https://res.cloudinary.com/sujaykundu/image/upload/c_scale,fl_progressive,w_400/v1603700133/3_tiuar0.png)

Also a Author Profile Page will be created for Jane Doe to showcase her written articles.

![Author Page](https://res.cloudinary.com/sujaykundu/image/upload/c_scale,fl_progressive,w_400/v1603643237/1_ee3yke.png)

Also, below this article you can see the Author Profile Card , who has written the article too ! ;)

Expand Down

1 comment on commit fe193c5

@vercel
Copy link

@vercel vercel bot commented on fe193c5 Oct 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.