Skip to content

Commit 04c0b58

Browse files
feat: custom title prefix separator and description suffix
1 parent 57b1b71 commit 04c0b58

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_layouts/default.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
88
<meta name="turbolinks-root" content="{{site.baseurl}}/">
9-
<title>{% if page.title_prefix %}{{ page.title_prefix }} | {% endif %}{{ page.page_title | default: page.title }}{% if site.use_product_in_title != false %} | {{ site.product }} {% endif %}</title>
10-
<meta name="description" content="{{ page.description | parse_front_matter }}" />
9+
<title>{% if page.title_prefix %}{{ page.title_prefix }}{% if page.title_prefix_separator %}{{ page.title_prefix_separator }}{% else %} | {% endif %}{% endif %}{{ page.page_title | default: page.title }}{% if site.use_product_in_title != false %} | {{ site.product }} {% endif %}</title>
10+
<meta name="description" content="{{ page.description | parse_front_matter }}{% if page.description_suffix %} {{ page.description_suffix }}{% endif %}" />
1111
{% if page.res_type %}<meta name="restype" content="{{ page.res_type }}">{% else %}<meta name="restype" content="documentation">{% endif %}
1212
{% if site.progress_hosting != true %}
1313
<script type="application/ld+json">
@@ -18,7 +18,7 @@
1818
"@type": "WebPage",
1919
"@id": "https://docs.telerik.com{{site.baseurl}}{{page.url | replace: '.html',''}}"
2020
},
21-
"headline": "{% if page.title_prefix %}{{ page.title_prefix }} | {% endif %}{{ page.page_title | default: page.title }}{% if site.use_product_in_title != false %} | {{ site.product }} {% endif %}",
21+
"headline": "{% if page.title_prefix %}{{ page.title_prefix }}{% if page.title_prefix_separator %}{{ page.title_prefix_separator }}{% else %} | {% endif %}{% endif %}{{ page.page_title | default: page.title }}{% if site.use_product_in_title != false %} | {{ site.product }} {% endif %}",
2222
"author":{
2323
"@type":"Organization",
2424
"name":"Telerik"},
@@ -37,7 +37,7 @@
3737
"url": "https://telerik-media.s3.amazonaws.com/assets/progress-telerik-logo-black.png"
3838
}
3939
},
40-
"description": "{{ page.description | parse_front_matter }}",
40+
"description": "{{ page.description | parse_front_matter }}{% if page.description_suffix %} {{ page.description_suffix }}{% endif %}",
4141
"about": "{{ site.product }}",
4242
"isPartOf": "{% if site.product_url %}{{ site.product_url }}{% else %}https://docs.telerik.com{{site.baseurl}}{% endif %}"
4343
}

0 commit comments

Comments
 (0)