Skip to content

Commit

Permalink
All pages now may contain titles, hideTitle flag hides them
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Jan 7, 2018
1 parent 0d8cdf7 commit 46447d3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
---
{% include header.html %}

{% if page.hideTitle %}
{% else %}
<h1 class="title">{{ page.title }}</h1>
{% endif %}

{{content}}

{% include footer.html %}
2 changes: 0 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<img class="title-image" src="{{ page.image }}" alt="{{ page.title }}">
{% endif %}

<h1 class="title">{{ page.title }}</h1>

<span class="date">
<time datetime="{{ page.date | date:"%d-%m-%Y" }}">{{ page.date | date: "%A. %B %d, %Y" }}</time>
{% if site.read-time %} - {% include read-time.html %}{% endif %}
Expand Down
3 changes: 0 additions & 3 deletions _layouts/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
<img class="title-image" src="{{ page.image }}" alt="{{ page.title }}">
{% endif %}

<h1 class="title">{{ page.title }}</h1>


{{content}}

{% if site.post-advance-links contains page.category %}
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: Home
layout: page
hideTitle: true
---

0 comments on commit 46447d3

Please sign in to comment.