diff --git a/_config.yml b/_config.yml
index 27eeffa52b17..38a850799b5e 100644
--- a/_config.yml
+++ b/_config.yml
@@ -11,6 +11,8 @@
# Name of website
title: My Website
+# Show the site title in the
of all pages in addition to the page title
+title_on_all_pages: false
# Your name to show in the footer
author: Some Person
diff --git a/_includes/head.html b/_includes/head.html
index 679c95e07eca..b5e253b8411f 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -2,7 +2,7 @@
- {% capture title %}
+ {% capture pagetitle %}
{%- if page.share-title -%}
{{ page.share-title | strip_html | xml_escape }}
{%- elsif page.title -%}
@@ -12,6 +12,14 @@
{%- endif -%}
{% endcapture %}
+ {% capture title %}
+ {%- if site.title_on_all_pages and (site.title != pagetitle) -%}
+ {{ pagetitle }} | {{ site.title }}
+ {%- else -%}
+ {{ pagetitle }}
+ {%- endif -%}
+ {% endcapture %}
+
{% capture description %}
{%- if page.share-description -%}
{{ page.share-description | strip_html | xml_escape }}