[SNEAKYIDEA] Add author.html template. Add Google +1 button support.
This commit is contained in:
@@ -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;}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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>
|
||||
|
||||
7
sneakyidea/templates/author.html
Normal file
7
sneakyidea/templates/author.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{% extends "index.html" %}
|
||||
|
||||
{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
|
||||
{% block content_title %}
|
||||
<h2>Articles by {{ author }}</h2>
|
||||
{% endblock %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
3
sneakyidea/templates/google_plusone.html
Normal file
3
sneakyidea/templates/google_plusone.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{% if GOOGLE_PLUSONE %}
|
||||
<g:plusone size="medium"></g:plusone>
|
||||
{% endif %}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user