Merge pull request #1 from alexandrevicenzi/master
Updating to latest version
This commit is contained in:
commit
2ec1b9348c
223 changed files with 11468 additions and 4377 deletions
|
@ -2,16 +2,21 @@
|
|||
|
||||
{% block meta %}
|
||||
<meta name="author" content="{{ article.author.name }}" />
|
||||
<meta name="description" content="{{ article.summary|striptags }}" />
|
||||
<meta name="keywords" content="{{ article.tags|join(', ') }}">
|
||||
<meta name="description" content="{{ article.summary|striptags|escape }}" />
|
||||
<meta name="keywords" content="{{ article.tags|join(', ')|escape }}">
|
||||
|
||||
{% include "partial/og_article.html" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block title %} – {{ article.title|striptags }}{% endblock %}
|
||||
{% block title %} – {{ article.title|striptags|escape }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article class="single">
|
||||
<header>
|
||||
{% if not ARTICLE_HIDE_TRANSLATION %}
|
||||
{% import 'partial/translations.html' as translations with context %}
|
||||
{{ translations.translations_for(article) }}
|
||||
{% endif %}
|
||||
<h1 id="{{ article.slug }}">{{ article.title }}</h1>
|
||||
<p>
|
||||
{{ _('Posted on %(when)s in %(category)s',
|
||||
|
@ -61,6 +66,8 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% include "partial/neighbors.html" %}
|
||||
|
||||
{% if article.related_posts %}
|
||||
<div class="related-posts">
|
||||
<h4>{{ _('You might enjoy') }}</h4>
|
||||
|
@ -70,8 +77,8 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="addthis_relatedposts_inline">
|
||||
{% elif ADD_THIS_ID %}
|
||||
<div class="addthis_relatedposts_inline"></div>
|
||||
{% endif %}
|
||||
|
||||
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.article_bottom %}
|
||||
|
@ -85,6 +92,5 @@
|
|||
{% endif %}
|
||||
|
||||
{% include "partial/disqus.html" %}
|
||||
{% include "partial/duoshuo.html" %}
|
||||
</article>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %} – {{ _('Authors') }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
|
|
@ -7,7 +7,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ DEFAULT_LANG }}">
|
||||
<head>
|
||||
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic' rel='stylesheet' type='text/css'>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="HandheldFriendly" content="True" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
{% if page in hidden_pages %}
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
{% else %}
|
||||
<meta name="robots" content="{{ ROBOTS }}" />
|
||||
{% endif %}
|
||||
|
||||
{% if USE_GOOGLE_FONTS != False %}
|
||||
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
|
||||
{% endif %}
|
||||
|
||||
{% if USE_LESS %}
|
||||
<link rel="stylesheet/less" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.less">
|
||||
|
@ -36,14 +48,8 @@
|
|||
<link rel="icon" href="{{ FAVICON }}" type="image/x-icon">
|
||||
{% endif %}
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="HandheldFriendly" content="True" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
{% if page in hidden_pages %}
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
{% else %}
|
||||
<meta name="robots" content="{{ ROBOTS }}" />
|
||||
{% if GOOGLE_ANALYTICS %}
|
||||
{% include "partial/ga.html" %}
|
||||
{% endif %}
|
||||
|
||||
{% if BROWSER_COLOR %}
|
||||
|
@ -54,6 +60,8 @@
|
|||
<!-- iOS Safari -->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<!-- Microsoft EDGE -->
|
||||
<meta name="msapplication-TileColor" content="{{ BROWSER_COLOR }}">
|
||||
{% endif %}
|
||||
|
||||
{% block meta %}
|
||||
|
@ -73,10 +81,13 @@
|
|||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
{% if GOOGLE_TAG_MANAGER %}
|
||||
{% include "partial/gtm.html" %}
|
||||
{% endif %}
|
||||
</head>
|
||||
<body>
|
||||
{% if GOOGLE_TAG_MANAGER %}
|
||||
{% include "partial/gtm.html" %}
|
||||
{% include "partial/gtm_noscript.html" %}
|
||||
{% endif %}
|
||||
<aside>
|
||||
<div>
|
||||
|
@ -171,10 +182,6 @@
|
|||
</footer>
|
||||
</main>
|
||||
|
||||
{% if GOOGLE_ANALYTICS %}
|
||||
{% include "partial/ga.html" %}
|
||||
{% endif %}
|
||||
|
||||
{% if GUAGES %}
|
||||
{% include "partial/guages.html" %}
|
||||
{% endif %}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %} – {{ _('Categories') }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %} – {{ page.title }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article class="single">
|
||||
<header>
|
||||
{% import 'partial/translations.html' as translations with context %}
|
||||
{{ translations.translations_for(page) }}
|
||||
<h1 id="{{ page.slug }}">{{ page.title }}</h1>
|
||||
</header>
|
||||
<div>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<p>
|
||||
© {{ AUTHOR }} {{ COPYRIGHT_YEAR }} - This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/{{ CC_LICENSE['slug'] }}/{{ CC_LICENSE['version'] }}/">{{ CC_LICENSE['name'] }} {{ CC_LICENSE['version'] }} International License</a>
|
||||
© {{ COPYRIGHT_NAME }} {{ COPYRIGHT_YEAR }} - This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/{{ CC_LICENSE['slug'] }}/{{ CC_LICENSE['version'] }}/">{{ CC_LICENSE['name'] }} {{ CC_LICENSE['version'] }} International License</a>
|
||||
</p>
|
||||
{% include "partial/flex.html" %}
|
||||
<p>
|
||||
|
@ -9,7 +9,11 @@
|
|||
<img alt="Creative Commons License"
|
||||
title="Creative Commons License"
|
||||
style="border-width:0"
|
||||
src="https://i.creativecommons.org/l/{{ CC_LICENSE['slug'] }}/{{ CC_LICENSE['version'] }}/80x15.png"
|
||||
{% if CC_LICENSE['local_icons'] %}
|
||||
src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/img/cc/{{ CC_LICENSE['slug'] }}.png"
|
||||
{% else %}
|
||||
src="https://i.creativecommons.org/l/{{ CC_LICENSE['slug'] }}/{{ CC_LICENSE['version'] }}/80x15.png"
|
||||
{% endif %}
|
||||
width="80"
|
||||
height="15"/>
|
||||
</a>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<p>© {{ AUTHOR }} {{ COPYRIGHT_YEAR }}</p>
|
||||
<p>© {{ COPYRIGHT_NAME }} {{ COPYRIGHT_YEAR }}</p>
|
||||
{% include "partial/flex.html" %}
|
||||
{% if STATUSCAKE %}
|
||||
{% include "partial/statuscake.html" %}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{% if DISQUS_SITENAME %}
|
||||
<!-- Disqus -->
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = '{{ DISQUS_SITENAME }}';
|
||||
|
@ -14,5 +15,6 @@
|
|||
<noscript>
|
||||
{{ _('Please enable JavaScript to view comments.') }}
|
||||
</noscript>
|
||||
<!-- End Disqus -->
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
{% if DUOSHUO_SITENAME %}
|
||||
<div class="ds-thread" data-thread-key="{{ article.slug }}" data-title="{{ article.title }}" data-url="{{ SITEURL }}/{{ article.url }}"></div>
|
||||
<script type="text/javascript">
|
||||
|
||||
var duoshuoQuery = {short_name:'{{ DUOSHUO_SITENAME }}'};
|
||||
(function() {
|
||||
var ds = document.createElement('script');
|
||||
ds.type = 'text/javascript';ds.async = true;
|
||||
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
|
||||
ds.charset = 'UTF-8';
|
||||
(document.getElementsByTagName('head')[0]
|
||||
|| document.getElementsByTagName('body')[0]).appendChild(ds);
|
||||
})();
|
||||
</script>
|
||||
{% endif %}
|
|
@ -1,3 +1,19 @@
|
|||
<a href="{{ GITHUB_CORNER_URL }}" class="github-corner" aria-label="View source on Github">
|
||||
<svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
|
||||
<svg width="80"
|
||||
height="80"
|
||||
viewBox="0 0 250 250"
|
||||
style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;"
|
||||
aria-hidden="true">
|
||||
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
|
||||
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
|
||||
fill="currentColor"
|
||||
style="transform-origin: 130px 106px;"
|
||||
class="octo-arm">
|
||||
</path>
|
||||
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
|
||||
fill="currentColor"
|
||||
class="octo-body">
|
||||
</path>
|
||||
</svg>
|
||||
</a>
|
||||
<style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
<!-- Google Tag Manager -->
|
||||
<noscript><iframe src="//www.googletagmanager.com/ns.html?id={{ GOOGLE_TAG_MANAGER }}"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','{{ GOOGLE_TAG_MANAGER }}');</script>
|
||||
<script>
|
||||
(function(w,d,s,l,i){
|
||||
w[l]=w[l]||[];
|
||||
w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});
|
||||
var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';
|
||||
j.async=true;
|
||||
j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;
|
||||
f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','{{ GOOGLE_TAG_MANAGER }}');
|
||||
</script>
|
||||
<!-- End Google Tag Manager -->
|
||||
|
|
5
templates/partial/gtm_noscript.html
Normal file
5
templates/partial/gtm_noscript.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!-- Google Tag Manager -->
|
||||
<noscript>
|
||||
<iframe src="https://www.googletagmanager.com/ns.html?id={{ GOOGLE_TAG_MANAGER }}" height="0" width="0" style="display:none;visibility:hidden"></iframe>
|
||||
</noscript>
|
||||
<!-- End Google Tag Manager -->
|
14
templates/partial/neighbors.html
Normal file
14
templates/partial/neighbors.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{% if 'neighbors' in PLUGINS %}
|
||||
<div class="neighbors">
|
||||
{% if article.prev_article %}
|
||||
<a class="btn float-left" href="{{ SITEURL }}/{{ article.prev_article.url }}" title="{{ article.prev_article.title }}">
|
||||
<i class="fa fa-angle-left"></i> {{ _('Previous Post') }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if article.next_article %}
|
||||
<a class="btn float-right" href="{{ SITEURL }}/{{ article.next_article.url }}" title="{{ article.next_article.title }}">
|
||||
{{ _('Next Post') }} <i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
|
@ -4,8 +4,8 @@
|
|||
{% set default_locale = 'en_US' %}
|
||||
{% endif %}
|
||||
<meta property="og:site_name" content="{{ SITENAME }}"/>
|
||||
<meta property="og:title" content="{{ article.title|striptags }}"/>
|
||||
<meta property="og:description" content="{{ article.summary|striptags }}"/>
|
||||
<meta property="og:title" content="{{ article.title|striptags|escape }}"/>
|
||||
<meta property="og:description" content="{{ article.summary|striptags|escape }}"/>
|
||||
<meta property="og:locale" content="{{ article.metadata.get('og_locale', default_locale) }}"/>
|
||||
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/>
|
||||
<meta property="og:type" content="article"/>
|
||||
|
@ -14,7 +14,7 @@
|
|||
<meta property="article:author" content="{{ SITEURL }}/{{ article.author.url }}">
|
||||
<meta property="article:section" content="{{ article.category.name }}"/>
|
||||
{% for tag in article.tags %}
|
||||
<meta property="article:tag" content="{{ tag.name }}"/>
|
||||
<meta property="article:tag" content="{{ tag.name|escape }}"/>
|
||||
{% endfor %}
|
||||
{% if 'cover' in article.metadata %}
|
||||
<meta property="og:image" content="{{ SITEURL }}/{{ article.metadata['cover'] }}">
|
||||
|
|
10
templates/partial/translations.html
Normal file
10
templates/partial/translations.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{% macro translations_for(article) %}
|
||||
{% if article.translations %}
|
||||
<div class="translations">
|
||||
<a class="active" href="{{ SITEURL }}/{{ article.url }}">{{article.lang}}</a>
|
||||
{% for translation in article.translations %}
|
||||
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
22
templates/period_archives.html
Normal file
22
templates/period_archives.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %} – {{ _('Archives') }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article class="single">
|
||||
<header>
|
||||
<h1>{{ _('Archives') }}</h1>
|
||||
</header>
|
||||
<div>
|
||||
<dl>
|
||||
{% set previous_date = False %}
|
||||
{% for article in dates %}
|
||||
{% if article.locale_date != previous_date %}
|
||||
{% set previous_date = article.locale_date %}
|
||||
<dt>{{ article.locale_date }}</dt>
|
||||
{% endif %}
|
||||
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</div>
|
||||
</article>
|
||||
{% endblock %}
|
|
@ -1,4 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %} – {{ _('Tags') }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue