-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* ♻️ move avatar source into dash namespace * ✨ introduce RTL support * add readme info * ♻️ use boolean instead
- Loading branch information
Showing
6 changed files
with
112 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
<div class="author-box"> | ||
{% if site.avatar_source == "github" and site.github_username %} | ||
{% capture avatar_image %} | ||
https://github.com/{{ site.github_username }}.png | ||
{% endcapture %} | ||
{% elsif site.avatar_source == "local" and site.avatar_path %} | ||
{% capture avatar_image %} | ||
{{site.avatar_path}} | ||
{% endcapture %} | ||
{% elsif site.plugins contains "liquid-md5" %} | ||
{% capture avatar_image %} | ||
https://gravatar.com/avatar/{{ site.email | downcase | md5 }}?s=256 | ||
{% endcapture %} | ||
{% endif %} | ||
{% if avatar_image %} | ||
<img src="{{ avatar_image }}" class="author-avatar" alt="Avatar" /> | ||
{% endif %} | ||
{{ site.description }} | ||
{% if site.dash.rtl %} | ||
<div class="description">{{ site.description }}</div> | ||
{%- include avatar.html -%} | ||
{% else %} | ||
{%- include avatar.html -%} | ||
<div class="description">{{ site.description }}</div> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% if site.dash.avatar_source == "github" and site.dash.github_username %} | ||
{% capture avatar_image %} | ||
https://github.com/{{ site.github_username }}.png | ||
{% endcapture %} | ||
{% elsif site.dash.avatar_source == "local" and site.dash.avatar_path %} | ||
{% capture avatar_image %} | ||
{{site.dash.avatar_path}} | ||
{% endcapture %} | ||
{% elsif site.plugins contains "liquid-md5" %} | ||
{% capture avatar_image %} | ||
https://gravatar.com/avatar/{{ site.email | downcase | md5 }}?s=256 | ||
{% endcapture %} | ||
{% endif %} | ||
{% if avatar_image %} | ||
<img src="{{ avatar_image }}" class="author-avatar" alt="Avatar" /> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters