Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blogs 2023 #124

Merged
merged 4 commits into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion _data/authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1395,4 +1395,14 @@ SpandanPatkar:
name: Spandan Patkar
github: SpandanPatkar
author_image: 'blog-author.jpg'
email: '[email protected]'
email: '[email protected]'
bleasey:
name: Calvin Dominic Fernandes
github: bleasey
author_image: 2023Calvin-Dominic-Fernandes.jpg
email: [email protected]
Vignaraj-pai:
name: Vignaraj
github: Vignaraj-pai
author_image: 2023Vignaraj.jpg
email: [email protected]
52 changes: 50 additions & 2 deletions _includes/author.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
<div class="container">
<div class="colorlib-bg-white animate-box">
<section class="author-big" itemprop="author">
<section class="author-big row" itemprop="author">
{% if site.data.authors[page.github_username_2].author_image %}
<p class="author-p">Authors</p>
{% endif %}
<div class="details" itemscope itemtype="http://schema.org/Person">

<div class="col-md-4 col-sm-4 author-img-center">
<img itemprop="image" class="author-img-big"
src="{{site.baseurl}}/assets/img/authors/{{ site.data.authors[page.github_username].author_image }}"
alt="{{site.data.authors[page.github_username].name}}">
</div>
<div class="col-md-8 sol-sm-8 author-details">
<p>Author</p>

<!-- if second user is not there -->
{% if site.data.authors[page.github_username_2].author_image %}

{% else %}
<p> Author </p>
{% endif %}

<h3>
<strong>
{{ site.data.authors[page.github_username].name }}
Expand All @@ -26,6 +37,43 @@ <h3>
href="https://github.com/{{page.github_username}}">{{page.github_username}}</a>
</div>
</div>

<!-- For second user -->
{% if site.data.authors[page.github_username_2].author_image %}
<div class="details" itemscope itemtype="http://schema.org/Person">

<div class="col-md-4 col-sm-4 author-img-center">
<img itemprop="image" class="author-img-big"
src="{{site.baseurl}}/assets/img/authors/{{ site.data.authors[page.github_username_2].author_image }}"
alt="{{site.data.authors[page.github_username_2].name}}">
</div>
<div class="col-md-8 sol-sm-8 author-details">

<!-- if second user is not there -->
{% if site.data.authors[page.github_username_2].author_image %}

{% else %}
<p> Author </p>
{% endif %}

<h3>
<strong>
{{ site.data.authors[page.github_username_2].name }}
</strong>
</h3>
<p class="desc">{{site.data.authors[page.github_username_2].user_description}}</p>
{% if site.data.authors[page.github_username_2].email != "" %}
<i class="fa fa-envelope"></i>
<a class="author-big-email" target="_blank"
href="mailto:{{site.data.authors[page.github_username_2].email}}">{{site.data.authors[page.github_username_2].email}}</a>
<br>
{% endif %}
<i class="fa fa-github"></i>
<a class="author-big-email" target="_blank"
href="https://github.com/{{page.github_username_2}}">{{page.github_username_2}}</a>
</div>
</div>
{% endif %}
</section>
</div>
</div>
14 changes: 11 additions & 3 deletions _includes/header-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@
<div class="content">
<h1 class="post-title">{{ page.title }}</h1>
<p class="author-small">
<span class="author-img"
style="background-image: url({{site.baseurl}}/assets/img/authors/{{site.data.authors[page.github_username].author_image}});"></span>
<span class="author-img" style="background-image: url({{site.baseurl}}/assets/img/authors/{{site.data.authors[page.github_username].author_image}});"></span>
{% if page.github_username_2 and site.data.authors[page.github_username_2].author_image %}
<span class="second-author-img"
style="background-image: url({{site.baseurl}}/assets/img/authors/{{site.data.authors[page.github_username_2].author_image}});"></span>
{% endif %}
<span class="author">by {{site.data.authors[page.github_username].name}}</span>

{% if page.github_username_2 and site.data.authors[page.github_username_2].author_image %}
<span class="second-author">&MediumSpace; &amp; {{site.data.authors[page.github_username_2].name}}</span>
{% endif %}

{% if page.date %}
&nbsp;
|
Expand All @@ -19,4 +27,4 @@ <h1 class="post-title">{{ page.title }}</h1>
<p class="subtitle">{{ page.description }}</p>
</div>
</div>
</div>
</div>
Loading
Loading