Skip to content

Commit 14920de

Browse files
Merge pull request #27 from drupaltools/codex/solve-issue-13-on-github
2 parents f720de4 + 859ec98 commit 14920de

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

_layouts/default.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818
</div>
1919
</div>
2020

21-
<h1 class="title" style="text-align: center;font-weight: bold;color: #333;text-transform: uppercase;margin: 30px;">
22-
All Drupal tools
23-
</h1>
21+
{% assign hero_title = page.hero_title | default: page.title | default: "All Drupal tools" %}
22+
{% unless page.hide_hero_title %}
23+
<h1 class="title" style="text-align: center;font-weight: bold;color: #333;text-transform: uppercase;margin: 30px;">
24+
{{ hero_title }}
25+
</h1>
26+
{% endunless %}
2427

2528
<div class="page-content">
2629
<div class="project-wrapper">

_layouts/front.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515
</div>
1616

1717
<div class="page-content">
18-
<h1 class="title" style="text-align: center;font-weight: bold;color: #333;text-transform: uppercase;margin: 0 0 30px;">
19-
Most popular Drupal tools
20-
</h1>
18+
{% assign hero_title = page.hero_title | default: page.title | default: "Most popular Drupal tools" %}
19+
{% unless page.hide_hero_title %}
20+
<h1 class="title" style="text-align: center;font-weight: bold;color: #333;text-transform: uppercase;margin: 0 0 30px;">
21+
{{ hero_title }}
22+
</h1>
23+
{% endunless %}
2124

2225
<div class="project-wrapper">
2326
{{ content }}

all/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: default
3+
title: All Drupal tools
34
---
45
<div class="project-tiles row">
56
{% assign project_hashes = site.data.projects | sort %}

all/table/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
layout: default
3+
title: All Drupal tools (table view)
4+
hero_title: All Drupal tools
35
---
46

57
<div class="home">

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: front
3+
title: Most popular Drupal tools
34
---
45
<div class="project-tiles row">
56
{% assign project_hashes = site.data.projects | sort %}

0 commit comments

Comments
 (0)