Skip to content

Commit dfca238

Browse files
committed
Merge remote-tracking branch 'upstream/pelican' into pelican
2 parents a68f5ae + 6ec016d commit dfca238

File tree

6 files changed

+26
-14
lines changed

6 files changed

+26
-14
lines changed

content/primeiro-projeto-django.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ Seu primeiro projeto Django com Sublime Text no Linux
88
:author: Fabiano Góes
99
1010
:summary: Primeiro projeto Django no Linux/Ubuntu com Sublime Text 3
11-
11+
:github: fabianogoes
12+
:bitbucket: fabianogoes
13+
:site: http://estudepy.wordpress.com/
14+
:twitter: @fabiano_goes
15+
:facebook: fabianogoes.face
16+
:linkedin: fabianogoes
1217

1318
========================
1419
O objetivo deste artigo:
@@ -310,4 +315,4 @@ Neste momento podemos selecionar Pessoa e cadastrar pessoas ao nosso sistema.
310315

311316
Bom pessoal, é isso, um tutorial simples apenas de meio longo.
312317

313-
espero que gostem, um abraço a todos!
318+
espero que gostem, um abraço a todos!

pelicanconf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
GITHUB_URL = 'https://github.com/pythonclub/pythonclub.github.io'
1212
DISQUS_SITENAME = 'pythonclub'
1313

14+
GOOGLE_ANALYTICS = 'UA-50935105-1'
1415
FACEBOOK_APPID = '1487080281503641'
1516

1617
TIMEZONE = 'America/Sao_Paulo'

theme/templates/analytics.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{% if GOOGLE_ANALYTICS %}
2-
<script type="text/javascript">
3-
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl./" : "http://www./");
4-
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
5-
</script>
6-
<script type="text/javascript">
7-
try {
8-
var pageTracker = _gat._getTracker("{{ GOOGLE_ANALYTICS }}");
9-
pageTracker._trackPageview();
10-
} catch(err) {}
2+
<script>
3+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
7+
8+
ga('create', '{{ GOOGLE_ANALYTICS }}', 'pythonclub.com.br');
9+
ga('send', 'pageview');
10+
1111
</script>
1212
{% endif %}

theme/templates/archives.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ <h1 class="content-subhead">Todos as postagens</h1>
1212
{% for article in dates %}
1313
<div class="archive-item">
1414
<a href="{{ SITEURL }}/{{ article.author.url }}" title="See posts by {{ article.author }}">
15+
{% if article.author_gravatar %}
1516
<img class="avatar" alt="{{ article.author }}" src="{{ article.author_gravatar }}">
17+
{% endif %}
1618
</a>
1719
<h5 class="archive-date">{{ article.date|strftime('%Y') }}</h5>
1820
<h4 class="archive-date">{{ article.date|strftime('%d %B') }}</h4>

theme/templates/article.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends 'base.html' %}
2-
{% block title %}{{ article.title|striptags }} // {{ super() }}{% endblock title %}
2+
{% block title %}{{ article.title|striptags }} - {{ article.author }} // {{ super() }}{% endblock title %}
33

44
{% block head_css %}
55
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments.css">
@@ -31,7 +31,9 @@
3131
<header class="header-article">
3232
<hgroup>
3333
<a href="{{ SITEURL }}/{{ article.author.url }}" title="See posts by {{ article.author }}">
34-
<img class="article-avatar" alt="{{ article.author }}" src="{{ article.author_gravatar }}">
34+
{% if article.author_gravatar %}
35+
<img class="article-avatar" alt="{{ article.author }}" src="{{ article.author_gravatar }}">
36+
{% endif %}
3537
</a>
3638
<h2 class="article-info">{{ article.author }}</h2>
3739
<ul class="author-social">

theme/templates/post.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<section class="post">
22
<header class="post-header">
33
<a href="{{ SITEURL }}/{{ article.author.url }}" title="See posts by {{ article.author }}">
4-
<img class="avatar" alt="{{ article.author }}" src="{{ article.author_gravatar }}">
4+
{% if article.author_gravatar %}
5+
<img class="avatar" alt="{{ article.author }}" src="{{ article.author_gravatar }}">
6+
{% endif %}
57
</a>
68
<h3><a class="post-title" href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h3>
79
<p class="post-meta">{{ article.summary }}</p>

0 commit comments

Comments
 (0)