Skip to content

Commit c4add58

Browse files
committed
home page title improved
1 parent 49eb702 commit c4add58

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

_includes/head.html

+12-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,25 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta http-equiv="Content-Type" content="{{ site.title }}; charset=utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1">
8-
<title>{{ page.title }} | {{ site.title }}</title>
8+
9+
{% if page.title == 'Home' %}
10+
<title>{{ site.title }}</title>
11+
{% else %}
12+
<title>{{ page.title }} | {{ site.title }}</title>
13+
{% endif %}
14+
<title>{{ page.title }} {% if page.url != "/index.html" %} | {% endif %} {{ site.title }}</title>
915
<meta name="description" content="{{ site.data.strings.description }}">
1016
<meta name="author" content="{{ site.author }}">
1117
<meta name="keywords" content="{{ site.data.strings.keywords }}"/>
1218
<link rel="canonical" href="{{ site.url }}{{ page.url | replace:'index.html',''}}">
1319

1420
<!-- OG META -->
1521
<meta property="og:type" content="website" />
16-
<meta property="og:title" content="{{ page.title }} | {{ site.title }}" />
22+
{% if page.title == 'Home' %}
23+
<meta property="og:title" content="{{ site.title }}" />
24+
{% else %}
25+
<meta property="og:title" content="{{ page.title }} | {{ site.title }}" />
26+
{% endif %}
1727
<meta property="og:description" content="{{ site.description }}"/>
1828
<meta property="og:url" content="{{ site.url }}{{ page.url | replace:'index.html',''}}" />
1929
<meta property="og:locale" content="pl_PL" />

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: home
3-
title: Strona główna
3+
title: Home
44
---
55

66

0 commit comments

Comments
 (0)