Skip to content

Commit 561fdc0

Browse files
committed
add a displayTitle option to global layout
1 parent 195d06f commit 561fdc0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/_layouts/global.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@
114114
</div>
115115

116116
<div class="container" id="content">
117-
<h1 class="title">{{ page.title }}</h1>
117+
{% if page.displayTitle %}
118+
<h1 class="title">{{ page.displayTitle }}</h1>
119+
{% else %}
120+
<h1 class="title">{{ page.title }}</h1>
121+
{% endif %}
118122

119123
{{ content }}
120124

0 commit comments

Comments
 (0)