Skip to content

Commit 7269e05

Browse files
committed
Allow per-page title and description with Front Matter
1 parent 4b7215b commit 7269e05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_layouts/default.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<a id="skip-to-content" href="#content">Skip to the content.</a>
2424

2525
<header class="page-header" role="banner">
26-
<h1 class="project-name">{{ site.title | default: site.github.repository_name }}</h1>
27-
<h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
26+
<h1 class="project-name">{{ page.title | default: site.title | default: site.github.repository_name }}</h1>
27+
<h2 class="project-tagline">{{ page.description | default: site.description | default: site.github.project_tagline }}</h2>
2828
{% if site.github.is_project_page %}
2929
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
3030
{% endif %}

0 commit comments

Comments
 (0)