#2 support for relative and absolute urls
-in author avatar, custom css and js color metadata support in article updated the readme
This commit is contained in:
parent
309cc5718a
commit
dc1cf00d49
4 changed files with 49 additions and 13 deletions
|
@ -44,9 +44,16 @@
|
|||
<section id="blog-author" class="has-cover" >
|
||||
<div class="inner">
|
||||
<aside class="post-author">
|
||||
{% if AUTHORS_BIO[author.name.lower()].image %}
|
||||
{% set author_avatar = AUTHORS_BIO[author.name.lower()].image %}
|
||||
{% if author_avatar %}
|
||||
|
||||
{% if author_avatar|lower|truncate(4, True, '') == "http" %}
|
||||
{% set author_avatar = author_avatar %}
|
||||
{% else %}
|
||||
{% set author_avatar = SITEURL+"/"+author_avatar %}
|
||||
{% endif %}
|
||||
<figure class="post-author-avatar">
|
||||
<img src="{{AUTHORS_BIO[author.name.lower()].image}}" alt="{{author.name | title}}" />
|
||||
<img src="{{author_avatar}}" alt="{{author.name | title}}" />
|
||||
</figure>
|
||||
{% endif %}
|
||||
<div class="post-author-bio">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue