blog.trnck.dev
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #36 from JamesIves/master

Adds Meta Description Tag

authored by

Brandon Rosage and committed by
GitHub
e31471ef 72409e4f

+7
+7
_includes/header.html
··· 10 10 11 11 {% assign user = site.github.owner %} 12 12 13 + {% if page.path contains '_posts' %} 14 + {% assign meta_description = page.content | strip_html | strip_newlines | xml_escape | truncate: 300 %} 15 + {% else %} 16 + {% assign meta_description = user.bio | strip_html | strip_newlines | xml_escape | truncate: 300 %} 17 + {% endif %} 18 + 13 19 <!doctype html> 14 20 <html> 15 21 <head> 16 22 <meta charset="utf-8"> 23 + <meta name="description" content="{{ meta_description }}" /> 17 24 <title>{{ user.name }}</title> 18 25 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> 19 26 <link href="{{ "/assets/styles.css" | absolute_url }}" rel="stylesheet" type="text/css">