aboutsummaryrefslogtreecommitdiffstats
path: root/sneakyidea
diff options
context:
space:
mode:
authorArnaud Bos <arnaud.tlse@gmail.com>2011-07-20 00:09:00 +0200
committerArnaud Bos <arnaud.tlse@gmail.com>2011-07-20 00:09:00 +0200
commita4ea2832a8a48ed63f38cf458b877d67d2c953da (patch)
tree784570602596a62f54fca634e33a348aa79a97cb /sneakyidea
parentda90d1995ac6376317cd0954f6e0d71356d902ed (diff)
downloadpelican-themes-a4ea2832a8a48ed63f38cf458b877d67d2c953da.tar.gz
[SNEAKYIDEA] Add author.html template. Add Google +1 button support.
Diffstat (limited to 'sneakyidea')
-rw-r--r--sneakyidea/static/css/main.css5
-rw-r--r--sneakyidea/templates/article.html3
-rw-r--r--sneakyidea/templates/article_infos.html2
-rw-r--r--sneakyidea/templates/author.html7
-rw-r--r--sneakyidea/templates/base.html3
-rw-r--r--sneakyidea/templates/google_plusone.html3
-rw-r--r--sneakyidea/templates/tags.html3
7 files changed, 23 insertions, 3 deletions
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>
<header> <h1 class="entry-title"><a href="{{ article.url }}"
rel="bookmark" title="Permalink to {{ article.title }}">{{ article.title
- }}</a></h1> {% include 'twitter.html' %} </header>
+ }}</a></h1> {% include 'twitter.html' %} {% include
+ 'google_plusone.html' %} </header>
<div class="entry-content">
{% 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 %}
<address class="vcard author">
- By <a class="url fn" href="#">{{ article.author }}</a>
+ By <a class="url fn" href="{{ SITEURL }}/author/{{ article.author }}.html">{{ article.author }}</a>
</address>
{% endif %}
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>. {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>{% endif %}</p>
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 %}
+<h2>Articles by {{ author }}</h2>
+{% 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 @@
<head>
<title>{% block title %}{{ SITENAME }}{%endblock%}</title>
<meta charset="utf-8" />
+ {% if GOOGLE_PLUSONE %}
+ <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
+ {% endif %}
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
<link href="{{ SITEURL }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" />
{% 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 %}
+<g:plusone size="medium"></g: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 @@
<h1 class="entry-title">Tags</h1>
<ul id="cloud">
{% for tag in tag_cloud %}
- <li class="tag-{{ tag.1 }}"><a href="/tag/{{ tag.0 }}.html">{{ tag.0 }}</a></li>
+ <li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/tag/{{
+ tag.0 }}.html">{{ tag.0 }}</a></li>
{% endfor %}
</ul>
</section>