Made posts without images use the full width, stopped having an image tag without url.
Posts list on homepage now works the same as other category pages. Getting away from page banners on top of site. Using seo_tag.title instead of generating the same thing by hand.
This commit is contained in:
@@ -4,4 +4,4 @@ layout: default
|
||||
|
||||
{{ content }}
|
||||
|
||||
{% include posts.html %}
|
||||
{%- include category.html -%}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<div id="main">
|
||||
<section id="top">
|
||||
<div class="image main" data-position="center">
|
||||
<img src="{{ page.banner | default: site.banner | default: '/images/banner.jpg' | relative_url }}" alt="" />
|
||||
<img src="{{ site.banner | default: '/images/banner.jpg' | relative_url }}" alt="" />
|
||||
</div>
|
||||
<div class="container">
|
||||
<header class="major">
|
||||
|
||||
+1
-24
@@ -4,27 +4,4 @@ layout: default
|
||||
|
||||
{{ content }}
|
||||
|
||||
{%- if site.posts.size > 0 -%}
|
||||
<section id="articles" class="">
|
||||
<div class="container">
|
||||
<h3>{{ page.list_title | default: "Posts" }}</h3>
|
||||
<div class="features">
|
||||
{%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
|
||||
{%- for post in site.posts -%}
|
||||
<article>
|
||||
<a href="{{ post.url | relative_url }}" class="image">
|
||||
<img src="{{ post.banner }}" alt="">
|
||||
</a>
|
||||
<div class="inner">
|
||||
<h4><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h4>
|
||||
{{ post.date | date: date_format }}
|
||||
{%- if site.show_excerpts -%}
|
||||
{{ post.excerpt }}
|
||||
{%- endif -%}
|
||||
</div>
|
||||
</article>
|
||||
{%- endfor -%}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{%- endif -%}
|
||||
{%- include posts.html posts = site.posts -%}
|
||||
|
||||
Reference in New Issue
Block a user