Skip to content

Commit 41b9e3e

Browse files
authored
Merge pull request #249 from tony-xlh/patch-1
Append site title to page title if exists
2 parents 4b79368 + a8f34f5 commit 41b9e3e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

_layouts/default-layout.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<meta http-equiv="Cache-Control" content="max-age=7200" />
88

99
{%- assign seo_title = page.title -%}
10+
{%- if site.title -%}
11+
{%- assign seo_title = page.title | append: " - " | append: site.title -%}
12+
{%- endif -%}
1013
{%- assign seo_description = page.description -%}
1114
{%- assign seo_group = '' -%}
1215
{%- if page.url contains '/mrz-scanner/license/' and site.firstLevelUrl contains '/faq' -%}
@@ -284,4 +287,4 @@
284287
<!-- End Google Tag Manager -->
285288
</body>
286289

287-
</html>
290+
</html>

0 commit comments

Comments
 (0)