blog.trnck.dev
0
fork

Configure Feed

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

Merge pull request #84 from jvandenaardweg/patch-1

Use og:image to display avatar

authored by

Brandon Rosage and committed by
GitHub
48c3d90f bab37bd2

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