Permalink
Browse files

Added hide-title YAML parameter

Allows to hide the title from a post.
  • Loading branch information...
radikahl radikahl
radikahl authored and radikahl committed Jul 9, 2016
1 parent 7beb5b9 commit cb6dd7ab264201fc2a92a3e3dbc51217bea4997c
Showing with 3 additions and 1 deletion.
  1. +1 −0 _config.yml
  2. +2 −1 index.html
View
@@ -85,6 +85,7 @@ defaults:
values:
layout: "post"
comments: true # add comments to all blog posts
hide-title: false
-
scope:
path: "" # all files
View
@@ -8,8 +8,9 @@
{% for post in paginator.posts %}
<article class="post-preview">
<a href="{{ post.url | prepend: site.baseurl }}">
{% if post.hide-title == false %}
<h2 class="post-title">{{ post.title }}</h2>
{% endif %}
{% if post.subtitle %}
<h3 class="post-subtitle">
{{ post.subtitle }}

0 comments on commit cb6dd7a

Please sign in to comment.