Add img-thumbnail, img-circle class to site image

Formatting
This commit is contained in:
Raymond Wanyoike 2016-11-09 20:10:04 +03:00
commit a4048d9d68
2 changed files with 9 additions and 5 deletions

View file

@ -61,7 +61,7 @@
<div class="row"> <div class="row">
{% if SITEIMAGE %} {% if SITEIMAGE %}
<div class="col-sm-4 hidden-xs"> <div class="col-sm-4 hidden-xs">
<a href="{{ SITEURL }}"><img class="img-responsive" src={{ SITEIMAGE }}></a> <a href="{{ SITEURL }}"><img class="img-thumbnail img-circle" src={{ SITEIMAGE }}></a>
</div> </div>
{% endif %} {% endif %}
<div class="col-sm-{% if SITEIMAGE %}8{% else %}12{% endif %}"> <div class="col-sm-{% if SITEIMAGE %}8{% else %}12{% endif %}">

View file

@ -16,9 +16,13 @@ All Articles
{% block content %} {% block content %}
{% for article in articles_page.object_list %} {% for article in articles_page.object_list %}
<article class="row teaser"> <article class="row teaser">
<header class="col-sm-4 hidden-xs"> <header class="col-sm-4 hidden-xs text-right text-muted">
<div class="text-muted" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</div> <div title="{{ article.date.isoformat() }}">
<div><a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></div> {{ article.locale_date }}
</div>
<div>
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</div>
{% if article.authors and ARTICLE_AUTHORS %} {% if article.authors and ARTICLE_AUTHORS %}
<div> <div>
{% for author in article.authors %} {% for author in article.authors %}
@ -28,7 +32,7 @@ All Articles
{% endif %} {% endif %}
</header> </header>
<div class="col-sm-8"> <div class="col-sm-8">
<h3><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h3> <h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
{{ article.summary }} {{ article.summary }}
</div> </div>
</article> </article>