Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shuttleworth foundation
jmathai-github-com
Commits
90f341d5
Commit
90f341d5
authored
Jul 10, 2014
by
Michael Rose
Browse files
Merge pull request #72 from icyflame/master
Display the default image in case the avatar not available
parents
a60fd268
c5e59384
Changes
1
Hide whitespace changes
Inline
Side-by-side
_layouts/post.html
View file @
90f341d5
...
...
@@ -25,10 +25,18 @@
</header>
<footer
class=
"entry-meta"
>
{% if page.author.name %}
{% if page.author.avatar %}
<img
src=
"{{ site.url }}/images/{{ page.author.avatar }}"
alt=
"{{ page.author.name }} photo"
class=
"author-photo"
>
{% else %}
<img
src=
"{{ site.url }}/images/bio-photo-alt.jpg"
alt=
"{{ page.author.name }} photo"
class=
"author-photo"
>
{% endif %}
<span
class=
"author vcard"
>
By
<span
class=
"fn"
>
{{ page.author.name }}
</span></span>
{% else %}
{% if site.owner.avatar %}
<img
src=
"{{ site.url }}/images/{{ site.owner.avatar }}"
alt=
"{{ site.owner.name }} photo"
class=
"author-photo"
>
{% else %}
<img
src=
"{{ site.url }}/images/bio-photo-alt.jpg"
alt=
"{{ site.owner.name }} photo"
class=
"author-photo"
>
{% endif %}
<span
class=
"author vcard"
>
By
<span
class=
"fn"
><a
href=
"{{ site.url }}/about/"
title=
"About {{ site.owner.name }}"
>
{{ site.owner.name }}
</a></span></span>
{% endif %}
<span
class=
"entry-date date published"
><time
datetime=
"{{ page.date | date_to_xmlschema }}"
><i
class=
"icon-calendar-empty"
></i>
{{ page.date | date: "%B %d, %Y" }}
</time></span>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment