Skip to content

Commit

Permalink
Improve Meta Tags (yousinix#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
gipyeong-lee authored Dec 22, 2020
1 parent a4777e5 commit 31dfb46
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
<head>

{% assign title = page.title | default: site.title | escape %}
{% assign description = page.description | default: site.description | strip_html | strip_newlines | truncate: 160 %}

{% if page.name %}
{% assign title = page.name | escape %}
{% endif %}

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ site.description }}">

<title>{{ site.title }}</title>
<meta property="og:type" content="website">
<meta property="og:title" content="{{ title }}">
<meta property="og:description" content="{{ description }}">

<title>{{ title }}</title>
<meta name="description" content="{{ description }}">


<link rel="shortcut icon" type="image/x-icon" href="{{ '/assets/favicon.ico' | relative_url }}">

<!-- Font Awesome CDN -->
Expand Down

0 comments on commit 31dfb46

Please sign in to comment.