Added some post photo preview on index page...
This commit is contained in:
parent
9d21cd9b70
commit
215cbfbcae
6 changed files with 40 additions and 17 deletions
|
@ -5,6 +5,7 @@ date: 2014-09-17 14:34:25
|
|||
categories: Releases
|
||||
tags: featured
|
||||
image: /JceManager/assets/article_images/first-release/desktop.JPG
|
||||
img: v1.png
|
||||
---
|
||||
#Proud To Announce Our First Release!
|
||||
####*JCE Manager v1.0 is now public*
|
||||
|
|
BIN
assets/images/posts/v1.png
Normal file
BIN
assets/images/posts/v1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
|
@ -7,6 +7,10 @@
|
|||
|
||||
.cf
|
||||
@include clearfix
|
||||
.img-responsive
|
||||
display: block
|
||||
max-width: 100%
|
||||
height: auto
|
||||
|
||||
$rs: 16px
|
||||
|
||||
|
@ -167,6 +171,11 @@ body
|
|||
text-decoration: underline
|
||||
.container.featured
|
||||
padding-bottom: 40px
|
||||
.img-responsive
|
||||
display: block
|
||||
max-width: 100%
|
||||
height: auto
|
||||
|
||||
|
||||
.post-template .content
|
||||
max-width: 700px
|
||||
|
|
19
index.html
19
index.html
|
@ -73,6 +73,13 @@ if (window.clipboardData)
|
|||
<header class="post-header">
|
||||
<h2 class="post-title" itemprop="name"><a href="{{ site.baseurl }}{{ post.url }}" itemprop="url">{{ post.title }}</a></h2>
|
||||
</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">
|
||||
<p>{{ post.content | strip_html | truncatewords: 50 }}</p>
|
||||
</section>
|
||||
|
@ -94,15 +101,21 @@ if (window.clipboardData)
|
|||
<header class="post-header">
|
||||
<h2 class="post-title" itemprop="name"><a href="{{ site.baseurl }}{{ post.url }}" itemprop="url">{{ post.title }}</a></h2>
|
||||
</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">
|
||||
<p>{{ post.content | strip_html | truncatewords: 50 }}</p>
|
||||
</section>
|
||||
<div class="post-meta">
|
||||
<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>
|
||||
</article>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue