Adds Description Tag
This commit is contained in:
parent
7b775d501c
commit
70e0a6a01a
1 changed files with 7 additions and 0 deletions
|
@ -10,10 +10,17 @@
|
|||
|
||||
{% assign user = site.github.owner %}
|
||||
|
||||
{% if page.path contains '_posts' %}
|
||||
{% assign meta_description = page.content | strip_html | strip_newlines | truncate: 300 %}
|
||||
{% else %}
|
||||
{% assign meta_description = user.bio | strip_html | strip_newlines | truncate: 300 %}
|
||||
{% endif %}
|
||||
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="{{ meta_description }}" />
|
||||
<title>{{ user.name }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link href="{{ "/assets/styles.css" | absolute_url }}" rel="stylesheet" type="text/css">
|
||||
|
|
Loading…
Reference in a new issue