Merge pull request #40 from MrSenko/author_tags
Make article:author OpenGraph compatible
This commit is contained in:
commit
2f7d779b0c
@ -59,7 +59,7 @@
|
|||||||
{{ super() }}
|
{{ super() }}
|
||||||
<meta property="og:type" content="article">
|
<meta property="og:type" content="article">
|
||||||
{% for author in article.authors %}
|
{% for author in article.authors %}
|
||||||
<meta property="article:author" content="{{ author }}" >
|
<meta property="article:author" content="{{ SITEURL }}/{{ author.url }}">
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}">
|
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}">
|
||||||
<meta property="og:title" content="{{ article.title }}">
|
<meta property="og:title" content="{{ article.title }}">
|
||||||
|
@ -2,6 +2,15 @@
|
|||||||
|
|
||||||
{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
|
{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
|
||||||
|
|
||||||
|
{% block opengraph %}
|
||||||
|
{{ super() }}
|
||||||
|
<meta property="og:title" content="{{ SITENAME }} - Articles by {{ author }}">
|
||||||
|
<meta property="og:type" content="profile">
|
||||||
|
<meta property="profile:first_name" content="{{ author.name.split(' ')[0] }}">
|
||||||
|
<meta property="profile:last_name" content="{{ author.name.split(' ')[1:]|join(' ') }}">
|
||||||
|
<meta property="profile:username" content="{{ author.slug }}">
|
||||||
|
{% endblock opengraph %}
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
{% if HEADER_COVER %}
|
{% if HEADER_COVER %}
|
||||||
|
@ -6,8 +6,6 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="{{ AUTHOR }}">
|
|
||||||
|
|
||||||
{% if GOOGLE_SITE_VERIFICATION %}
|
{% if GOOGLE_SITE_VERIFICATION %}
|
||||||
<meta name="google-site-verification" content="{{ GOOGLE_SITE_VERIFICATION }}">
|
<meta name="google-site-verification" content="{{ GOOGLE_SITE_VERIFICATION }}">
|
||||||
|
Loading…
Reference in New Issue
Block a user