summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/layout.html21
-rw-r--r--templates/page.html2
2 files changed, 17 insertions, 6 deletions
diff --git a/templates/layout.html b/templates/layout.html
index e07b385..251e244 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -1,18 +1,31 @@
<!DOCTYPE HTML>
<html lang="en-US">
- <head>
+ <head prefix="og: http://ogp.me/ns# book: http://ogp.me/ns/book#">
{% block head %}
<meta charset="UTF-8">
<title>{% block title %} | {{ title }}{% endblock %}</title>
- <meta name="robots" content="{% block robots %}noindex, nofollow{% endblock %}">
- <link rel="shortcut icon" href="{{ staticBase }}/images/favicon.ico" type="image/x-icon">
- <link rel="stylesheet" href="{{ staticBase }}/style.css">
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
+ <meta name="robots" content="index, follow">
+ <meta name="author" content="{{ githubAuthor }}">
<meta name="description" content="{{ description }}">
<meta name="keywords" content="gitbook,github" >
+
+ <meta property="og:title" content="{% block title %} | {{ title }}{% endblock %}">
+ <meta property="og:site_name" content="{{ title }}">
+ <meta property="og:type" content="book">
+ <meta property="og:locale" content="en_US">
+
+ <meta property="book:author" content="https://github.com/{{ githubAuthor }}">
+ <meta property="book:tag" content="GitBook">
+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
+
+ <link rel="shortcut icon" href="{{ staticBase }}/images/favicon.ico" type="image/x-icon">
+ <link rel="stylesheet" href="{{ staticBase }}/style.css">
+
<script type="text/javascript">
(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.set_once people.increment people.append people.track_charge people.clear_charges people.delete_user".split(" ");
for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a,e,d])};b.__SV=1.2;a=e.createElement("script");a.type="text/javascript";a.src=("https:"===e.location.protocol?"https:":"http:")+'//cdn.mxpnl.com/libs/mixpanel-2.2.min.js';f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f)}})(document,window.mixpanel||[]);
diff --git a/templates/page.html b/templates/page.html
index 6f27b33..2afff81 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,8 +1,6 @@
{% extends "layout.html" %}
{% block title %}{{ progress.current.title }}{% parent %}{% endblock %}
-{% block description %}{% endblock %}
-{% block robots %}index, follow{% endblock %}
{% block content %}
<div class="book {% if _input == "README.md" %}with-summary{% endif %}" data-github="{{ githubId }}" data-level="{{ progress.current.level }}">
{% include "includes/book/header.html" %}