diff --git a/sneakyidea/static/css/main.css b/sneakyidea/static/css/main.css index 462d646..10f4229 100644 --- a/sneakyidea/static/css/main.css +++ b/sneakyidea/static/css/main.css @@ -137,6 +137,11 @@ aside, nav, article, figure { display: block; } +/* Google +1 button positionning bug workaround */ +iframe { + position:static !important; +} + /***** Layout *****/ .body {clear: both; margin: 0 auto; width: 800px;} img.right figure.right {float: right; margin: 0 0 2em 2em;} diff --git a/sneakyidea/templates/article.html b/sneakyidea/templates/article.html index 14fffe4..16cf8c1 100644 --- a/sneakyidea/templates/article.html +++ b/sneakyidea/templates/article.html @@ -5,7 +5,8 @@

{{ article.title - }}

{% include 'twitter.html' %}
+ }} {% include 'twitter.html' %} {% include + 'google_plusone.html' %}
{% include 'article_infos.html' %} {{ article.content }} diff --git a/sneakyidea/templates/article_infos.html b/sneakyidea/templates/article_infos.html index 1a47e70..b5af6c5 100644 --- a/sneakyidea/templates/article_infos.html +++ b/sneakyidea/templates/article_infos.html @@ -6,7 +6,7 @@ {% if article.author %}
- By {{ article.author }} + By {{ article.author }}
{% endif %}

In {{ article.category }}. {% if PDF_PROCESSOR %}get the pdf{% endif %}

diff --git a/sneakyidea/templates/author.html b/sneakyidea/templates/author.html new file mode 100644 index 0000000..e9f7870 --- /dev/null +++ b/sneakyidea/templates/author.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %} +{% block content_title %} +

Articles by {{ author }}

+{% endblock %} + diff --git a/sneakyidea/templates/base.html b/sneakyidea/templates/base.html index d280c04..a4a7564 100644 --- a/sneakyidea/templates/base.html +++ b/sneakyidea/templates/base.html @@ -3,6 +3,9 @@ {% block title %}{{ SITENAME }}{%endblock%} + {% if GOOGLE_PLUSONE %} + + {% endif %} {% if FEED_RSS %} diff --git a/sneakyidea/templates/google_plusone.html b/sneakyidea/templates/google_plusone.html new file mode 100644 index 0000000..f9e36ed --- /dev/null +++ b/sneakyidea/templates/google_plusone.html @@ -0,0 +1,3 @@ +{% if GOOGLE_PLUSONE %} + +{% endif %} diff --git a/sneakyidea/templates/tags.html b/sneakyidea/templates/tags.html index 4dab120..bd18105 100644 --- a/sneakyidea/templates/tags.html +++ b/sneakyidea/templates/tags.html @@ -5,7 +5,8 @@

Tags