Skip to content

Commit

Permalink
SEO and Open Graph changes for documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vcatalano committed Aug 31, 2014
1 parent 51e54f2 commit ec28e83
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

{# Google Analytics #}
{%- block extrahead %}
<meta property="og:title" content="{{ title }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ base_url }}" />
<meta property="og:description" content="{{ description }}" />
<meta property="og:site_name" content="{{ project }}" />
<meta name="description" content="{{ description }}">

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
Expand Down
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
# a list of builtin themes.
html_theme = 'bootstrap'

html_context = {
'description' : 'Py-Authorize is a full-featured Python API for the Authorize.net payment gateway.',
'base_url' : 'http://vcatalano.github.io/py-authorize'
}

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
Expand Down

0 comments on commit ec28e83

Please sign in to comment.