Added some post photo preview on index page...

This commit is contained in:
Sagi Dayan 2014-09-28 19:16:00 +03:00
parent 9d21cd9b70
commit 215cbfbcae
6 changed files with 40 additions and 17 deletions

View file

@ -5,6 +5,7 @@ date: 2014-09-17 14:34:25
categories: Releases categories: Releases
tags: featured tags: featured
image: /JceManager/assets/article_images/first-release/desktop.JPG image: /JceManager/assets/article_images/first-release/desktop.JPG
img: v1.png
--- ---
#Proud To Announce Our First Release! #Proud To Announce Our First Release!
####*JCE Manager v1.0 is now public* ####*JCE Manager v1.0 is now public*

BIN
assets/images/posts/v1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View file

@ -7,6 +7,10 @@
.cf .cf
@include clearfix @include clearfix
.img-responsive
display: block
max-width: 100%
height: auto
$rs: 16px $rs: 16px
@ -167,6 +171,11 @@ body
text-decoration: underline text-decoration: underline
.container.featured .container.featured
padding-bottom: 40px padding-bottom: 40px
.img-responsive
display: block
max-width: 100%
height: auto
.post-template .content .post-template .content
max-width: 700px max-width: 700px

View file

@ -73,6 +73,13 @@ if (window.clipboardData)
<header class="post-header"> <header class="post-header">
<h2 class="post-title" itemprop="name"><a href="{{ site.baseurl }}{{ post.url }}" itemprop="url">{{ post.title }}</a></h2> <h2 class="post-title" itemprop="name"><a href="{{ site.baseurl }}{{ post.url }}" itemprop="url">{{ post.title }}</a></h2>
</header> </header>
{% if post.img %}
<a href="{{ site.baseurl }}{{ post.url }}" itemprop="url">
<p><img class="img-responsive" src="{{ "/assets/images/posts/" | prepend: site.baseurl }}{{ post.img }}"></p>
</a>
{% endif %}
<section class="post-excerpt" itemprop="description"> <section class="post-excerpt" itemprop="description">
<p>{{ post.content | strip_html | truncatewords: 50 }}</p> <p>{{ post.content | strip_html | truncatewords: 50 }}</p>
</section> </section>
@ -94,15 +101,21 @@ if (window.clipboardData)
<header class="post-header"> <header class="post-header">
<h2 class="post-title" itemprop="name"><a href="{{ site.baseurl }}{{ post.url }}" itemprop="url">{{ post.title }}</a></h2> <h2 class="post-title" itemprop="name"><a href="{{ site.baseurl }}{{ post.url }}" itemprop="url">{{ post.title }}</a></h2>
</header> </header>
{% if post.img %}
<a href="{{ site.baseurl }}{{ post.url }}" itemprop="url">
<p><img class="img-responsive" src="{{ "/assets/images/posts/" | prepend: site.baseurl }}{{ post.img }}"></p>
</a>
{% endif %}
<section class="post-excerpt" itemprop="description"> <section class="post-excerpt" itemprop="description">
<p>{{ post.content | strip_html | truncatewords: 50 }}</p> <p>{{ post.content | strip_html | truncatewords: 50 }}</p>
</section> </section>
<div class="post-meta"> <div class="post-meta">
<time datetime="{{ post.date | date_to_long_string }}">{{ post.date | date_to_long_string }}</time> <time datetime="{{ post.date | date_to_long_string }}">{{ post.date | date_to_long_string }}</time>
<!-- <span class="post-tags-set">on {{#foreach tags}}<span class="post-tag-{{slug}}">{{#if @first}}{{else}}, {{/if}}<a href="/tag/{{slug}}">{{name}}</a></span>{{/foreach}}</span>-->
</div> </div>
<div>
</article>
{% endfor %} {% endfor %}
</div> </div>