Feat: Import all old stuff
This commit is contained in:
22
theme/templates/archives.html
Normal file
22
theme/templates/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 articles|sort(reverse=True,attribute='modified') %}
|
||||
{% if article.locale_date != previous_date %}
|
||||
{% set previous_date = article.locale_date %}
|
||||
<dt>{{ article.locale_modified }}</dt>
|
||||
{% endif %}
|
||||
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</div>
|
||||
</article>
|
||||
{% endblock %}
|
73
theme/templates/article.html
Normal file
73
theme/templates/article.html
Normal file
@@ -0,0 +1,73 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block meta %}
|
||||
<meta name="author" content="{{ article.author.name }}" />
|
||||
<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|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',
|
||||
when=article.locale_date,
|
||||
category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }}
|
||||
|
||||
{% if 'post_stats' in PLUGINS %}
|
||||
• {{ article.stats['read_mins'] }} min read
|
||||
{% endif %}
|
||||
</p>
|
||||
<div class="tag-cloud">
|
||||
<p>
|
||||
{% if article.tags %}
|
||||
{% for tag in article.tags %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div>
|
||||
{{ article.content }}
|
||||
</div>
|
||||
|
||||
{% include "partial/files_internal_navigation.html" %}
|
||||
|
||||
{% if ADD_THIS_ID %}
|
||||
<div class="center social-share">
|
||||
<p>{{ _('Like this article? Share it with your friends!') }}</p>
|
||||
<div class="addthis_native_toolbox"></div>
|
||||
<div class="addthis_sharing_toolbox"></div>
|
||||
<div class="addthis_inline_share_toolbox"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% include "partial/neighbors.html" %}
|
||||
|
||||
{% if article.related_posts %}
|
||||
<div class="related-posts">
|
||||
<h4>{{ _('You might enjoy') }}</h4>
|
||||
<ul class="related-posts">
|
||||
{% for related_post in article.related_posts %}
|
||||
<li><a href="{{ SITEURL }}/{{ related_post.url }}">{{ related_post.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% elif ADD_THIS_ID %}
|
||||
<div class="addthis_relatedposts_inline"></div>
|
||||
{% endif %}
|
||||
|
||||
{% include "partial/disqus.html" %}
|
||||
</article>
|
||||
{% endblock %}
|
3
theme/templates/author.html
Normal file
3
theme/templates/author.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %} – {{ _('Posts by %(name)s', name=author) }}:{% endblock %}
|
||||
{% set summarise = True %}
|
18
theme/templates/authors.html
Normal file
18
theme/templates/authors.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %} – {{ _('Authors') }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article class="single">
|
||||
<header>
|
||||
<h1>{{ _('Authors') }}</h1>
|
||||
</header>
|
||||
<div>
|
||||
<ul class="list">
|
||||
{% for author, articles in authors|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</article>
|
||||
{% endblock %}
|
173
theme/templates/base.html
Normal file
173
theme/templates/base.html
Normal file
@@ -0,0 +1,173 @@
|
||||
{% if 'jinja2.ext.i18n' not in JINJA_ENVIRONMENT.extensions and 'jinja2.ext.i18n' not in JINJA_EXTENSIONS %}
|
||||
{% macro _(msg) %}
|
||||
{{ msg % kwargs }}
|
||||
{% endmacro %}
|
||||
{% endif %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ DEFAULT_LANG }}">
|
||||
<head>
|
||||
<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">
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.1/less.min.js" type="text/javascript"></script>
|
||||
{% else %}
|
||||
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.min.css">
|
||||
{% endif %}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/pygments/{{ PYGMENTS_STYLE|default('github') }}.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/font-awesome/css/font-awesome.min.css">
|
||||
|
||||
{% if CUSTOM_CSS %}
|
||||
<link href="{{ SITEURL }}/{{ CUSTOM_CSS }}" rel="stylesheet">
|
||||
{% endif %}
|
||||
|
||||
{% if FEED_ALL_ATOM %}
|
||||
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom">
|
||||
{% endif %}
|
||||
|
||||
{% if FEED_ALL_RSS %}
|
||||
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS">
|
||||
{% endif %}
|
||||
|
||||
{% if FAVICON %}
|
||||
<link rel="shortcut icon" href="{{ FAVICON }}" type="image/x-icon">
|
||||
<link rel="icon" href="{{ FAVICON }}" type="image/x-icon">
|
||||
{% endif %}
|
||||
|
||||
{% if BROWSER_COLOR %}
|
||||
<!-- Chrome, Firefox OS and Opera -->
|
||||
<meta name="theme-color" content="{{ BROWSER_COLOR }}">
|
||||
<!-- Windows Phone -->
|
||||
<meta name="msapplication-navbutton-color" content="{{ BROWSER_COLOR }}">
|
||||
<!-- 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 %}
|
||||
<meta name="author" content="{{ AUTHOR }}" />
|
||||
<meta name="description" content="{{ SITEDESCRIPTION }}" />
|
||||
{% include "partial/og.html" %}
|
||||
{% endblock %}
|
||||
|
||||
<title>{{ SITENAME }}{% block title %}{% endblock %}</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<aside>
|
||||
<div>
|
||||
<a href="{{ SITEURL }}/">
|
||||
{% if SITELOGO %}
|
||||
<img src="{{ SITELOGO }}" alt="{{ SITETITLE }}" title="{{ SITETITLE }}">
|
||||
{% else %}
|
||||
<img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/img/profile.png" alt="{{ SITETITLE }}" title="{{ SITETITLE }}">
|
||||
{% endif %}
|
||||
</a>
|
||||
<h1><a href="{{ SITEURL }}/">{{ SITETITLE }}</a></h1>
|
||||
|
||||
{% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %}
|
||||
|
||||
<h2>Années</h2>
|
||||
<nav>
|
||||
<ul class="list">
|
||||
{% for name, link in LINKS %}
|
||||
<li><a href="{{ link }}">{{ name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
<h2>Niveaux</h2>
|
||||
<nav>
|
||||
<ul class="list">
|
||||
{% for category, articles in categories|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
<h2><a href="{{ SITEURL }}/tags.html">
|
||||
Thèmes
|
||||
</a></h2>
|
||||
<nav>
|
||||
<ul class="tagcloud">
|
||||
{% for tag in tag_cloud %}
|
||||
<li class="tag-{{ tag.1 }}">
|
||||
<a href="{{ SITEURL }}/{{ tag.0.url }}">
|
||||
{{ tag.0 }}
|
||||
{% if TAG_CLOUD_BADGE %}
|
||||
<span class="badge">{{ tag.2 }}</span>
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</aside>
|
||||
<main>
|
||||
{% if MAIN_MENU %}
|
||||
<nav>
|
||||
<a href="{{ SITEURL }}/">{{ _('Home') }}</a>
|
||||
|
||||
{% for title, link in MENUITEMS %}
|
||||
<a href="{{ link }}">{{ title }}</a>
|
||||
{% endfor %}
|
||||
|
||||
{% if FEED_ALL_ATOM %}
|
||||
<a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">{{ _('Atom') }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% if FEED_ALL_RSS %}
|
||||
<a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}">{{ _('RSS') }}</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
{% endif %}
|
||||
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
|
||||
<footer>
|
||||
{% if CC_LICENSE %}
|
||||
{% include "partial/cc_license.html" %}
|
||||
{% else %}
|
||||
{% include "partial/copyright.html" %}
|
||||
{% endif %}
|
||||
</footer>
|
||||
</main>
|
||||
|
||||
{% if GUAGES %}
|
||||
{% include "partial/guages.html" %}
|
||||
{% endif %}
|
||||
|
||||
{% if ADD_THIS_ID %}
|
||||
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADD_THIS_ID }}" async="async"></script>
|
||||
{% endif %}
|
||||
|
||||
{% if PIWIK_URL and PIWIK_SITE_ID %}
|
||||
{% include "partial/piwik.html" %}
|
||||
{% endif %}
|
||||
|
||||
{% include "partial/jsonld.html" %}
|
||||
|
||||
{% block additional_js %}{% endblock %}
|
||||
|
||||
{% if GITHUB_CORNER_URL %}
|
||||
{% include 'partial/github.html' %}
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
18
theme/templates/categories.html
Normal file
18
theme/templates/categories.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %} – {{ _('Categories') }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article class="single">
|
||||
<header>
|
||||
<h1>{{ _('Categories') }}</h1>
|
||||
</header>
|
||||
<div>
|
||||
<ul class="list">
|
||||
{% for category, articles in categories|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</article>
|
||||
{% endblock %}
|
3
theme/templates/category.html
Normal file
3
theme/templates/category.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %} – {{ _('Category %(name)s', name=category) }}{% endblock %}
|
||||
{% set summarise = True %}
|
48
theme/templates/index.html
Normal file
48
theme/templates/index.html
Normal file
@@ -0,0 +1,48 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% for article in articles_page.object_list|sort(reverse=True,attribute='modified') %}
|
||||
<article>
|
||||
<header>
|
||||
<h2><a href="{{ SITEURL }}/{{ article.url }}{% if not DISABLE_URL_HASH %}#{{ article.slug }}{% endif %}">{{ article.title }}</a></h2>
|
||||
<p>
|
||||
{{ _('Posted on %(when)s (last modification %(modified)s) in %(category)s',
|
||||
when=article.locale_date,
|
||||
modified=article.locale_modified,
|
||||
category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }}
|
||||
|
||||
{% if article.tags and not HOME_HIDE_TAGS %}
|
||||
• {{ _('Tagged with') }}
|
||||
{% for tag in article.tags %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if 'post_stats' in PLUGINS %}
|
||||
• {{ article.stats['read_mins'] }} min read
|
||||
{% endif %}
|
||||
</p>
|
||||
</header>
|
||||
<div>
|
||||
{% if summarise or article.metadata['summary'] or SUMMARY_MAX_LENGTH %}
|
||||
{% if article.featured_image %}
|
||||
<img src="{{ article.featured_image }}">
|
||||
{% endif %}
|
||||
{{ article.summary }}
|
||||
<br>
|
||||
<a class="btn" href="{{ SITEURL }}/{{ article.url }}{% if not DISABLE_URL_HASH %}#{{ article.slug }}{% endif %}">{{ _('Continue reading') }}</a>
|
||||
{% else %}
|
||||
{{ article.content }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if not loop.last %}
|
||||
<hr />
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
||||
{% include "partial/pagination.html" %}
|
||||
|
||||
|
||||
{% endblock %}
|
18
theme/templates/page.html
Normal file
18
theme/templates/page.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{% 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>
|
||||
{% block before_content %}{% endblock %}
|
||||
{% block page_content %}{{ page.content }}{% endblock %}
|
||||
{% block after_content %}{% endblock %}
|
||||
</div>
|
||||
</article>
|
||||
{% endblock %}
|
23
theme/templates/partial/cc_license.html
Normal file
23
theme/templates/partial/cc_license.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<p>
|
||||
© {{ 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>
|
||||
<a rel="license"
|
||||
href="http://creativecommons.org/licenses/{{ CC_LICENSE['slug'] }}/{{ CC_LICENSE['version'] }}/"
|
||||
target="_blank">
|
||||
<img alt="Creative Commons License"
|
||||
title="Creative Commons License"
|
||||
style="border-width:0"
|
||||
{% 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>
|
||||
{% if STATUSCAKE %}
|
||||
{% include "partial/statuscake.html" %}
|
||||
{% endif %}
|
||||
</p>
|
5
theme/templates/partial/copyright.html
Normal file
5
theme/templates/partial/copyright.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<p>© {{ COPYRIGHT_NAME }} {{ COPYRIGHT_YEAR }}</p>
|
||||
{% include "partial/flex.html" %}
|
||||
{% if STATUSCAKE %}
|
||||
{% include "partial/statuscake.html" %}
|
||||
{% endif %}
|
16
theme/templates/partial/disqus.html
Normal file
16
theme/templates/partial/disqus.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% if DISQUS_SITENAME %}
|
||||
<!-- Disqus -->
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = '{{ DISQUS_SITENAME }}';
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
<noscript>
|
||||
{{ _('Please enable JavaScript to view comments.') }}
|
||||
</noscript>
|
||||
<!-- End Disqus -->
|
||||
{% endif %}
|
10
theme/templates/partial/files_internal_navigation.html
Normal file
10
theme/templates/partial/files_internal_navigation.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% if article.link_files %}
|
||||
<div id="linkfiles">
|
||||
<h2> Fichiers liés </h2>
|
||||
<ul class="list-group">
|
||||
{% for f in article.link_files %}
|
||||
<li class="list-group-item"><a href="{{ SITEURL }}/{{ f.1 }}">{{ f.0 }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
4
theme/templates/partial/flex.html
Normal file
4
theme/templates/partial/flex.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<p>{{ _('Powered by %(pelican_url)s - %(flex_url)s theme by %(alexandrevicenzi_url)s',
|
||||
pelican_url='<a href="http://getpelican.com" target="_blank">Pelican</a>',
|
||||
flex_url='<a href="https://github.com/alexandrevicenzi/flex" target="_blank">Flex</a>'|safe,
|
||||
alexandrevicenzi_url='<a href="http://alexandrevicenzi.com" target="_blank">Alexandre Vicenzi</a>'|safe) }}</p>
|
11
theme/templates/partial/ga.html
Normal file
11
theme/templates/partial/ga.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!-- Google Analytics -->
|
||||
<script type="text/javascript">
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', '{{ GOOGLE_ANALYTICS }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
<!-- End Google Analytics -->
|
19
theme/templates/partial/github.html
Normal file
19
theme/templates/partial/github.html
Normal file
@@ -0,0 +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>
|
12
theme/templates/partial/gtm.html
Normal file
12
theme/templates/partial/gtm.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!-- Google Tag Manager -->
|
||||
<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
theme/templates/partial/gtm_noscript.html
Normal file
5
theme/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 -->
|
16
theme/templates/partial/guages.html
Normal file
16
theme/templates/partial/guages.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- Gauges -->
|
||||
<script type="text/javascript">
|
||||
var _gauges = _gauges || [];
|
||||
(function() {
|
||||
var t = document.createElement('script');
|
||||
t.type = 'text/javascript';
|
||||
t.async = true;
|
||||
t.id = 'gauges-tracker';
|
||||
t.setAttribute('data-site-id', '{{ GUAGES }}');
|
||||
t.setAttribute('data-track-path', 'https://track.gaug.es/track.gif');
|
||||
t.src = 'https://track.gaug.es/track.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(t, s);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Gauges -->
|
10
theme/templates/partial/jsonld.html
Normal file
10
theme/templates/partial/jsonld.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context" : "http://schema.org",
|
||||
"@type" : "Blog",
|
||||
"name": " {{ SITENAME }} ",
|
||||
"url" : "{{ SITEURL }}",
|
||||
"image": "{{ SITELOGO }}",
|
||||
"description": "{{ SITEDESCRIPTION }}"
|
||||
}
|
||||
</script>
|
23
theme/templates/partial/jsonld_article.html
Normal file
23
theme/templates/partial/jsonld_article.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% if SITELOGO %}
|
||||
{% set default_cover = SITELOGO %}
|
||||
{% else %}
|
||||
{% set default_cover = '{{ SITEURL }}/{{ THEME_STATIC_DIR }}/img/profile.png' %}
|
||||
{% endif %}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "BlogPosting",
|
||||
"name": "{{ article.title|striptags }}",
|
||||
"headline": "{{ article.title|striptags }}",
|
||||
"datePublished": "{{ article.date }}",
|
||||
"dateModified": "{{ article.modified }}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{{ article.author.name }}",
|
||||
"url": "{{ SITEURL }}/{{ article.author.url }}"
|
||||
},
|
||||
"image": "{{ article.metadata.get('cover', default_cover) }}",
|
||||
"url": "{{ SITEURL }}/{{ article.url }}",
|
||||
"description": "{{ article.summary|striptags }}"
|
||||
}
|
||||
</script>
|
14
theme/templates/partial/neighbors.html
Normal file
14
theme/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 %}
|
14
theme/templates/partial/og.html
Normal file
14
theme/templates/partial/og.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% if OG_LOCALE %}
|
||||
{% set default_locale = OG_LOCALE %}
|
||||
{% else %}
|
||||
{% set default_locale = 'en_US' %}
|
||||
{% endif %}
|
||||
<meta property="og:site_name" content="{{ SITENAME }}"/>
|
||||
<meta property="og:type" content="blog"/>
|
||||
<meta property="og:title" content="{{ SITENAME }}"/>
|
||||
<meta property="og:description" content="{{ SITEDESCRIPTION }}"/>
|
||||
<meta property="og:locale" content="{{ default_locale }}"/>
|
||||
<meta property="og:url" content="{{ SITEURL }}"/>
|
||||
{% if SITELOGO %}
|
||||
<meta property="og:image" content="{{ SITELOGO }}">
|
||||
{% endif %}
|
23
theme/templates/partial/og_article.html
Normal file
23
theme/templates/partial/og_article.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% if OG_LOCALE %}
|
||||
{% set default_locale = OG_LOCALE %}
|
||||
{% else %}
|
||||
{% set default_locale = 'en_US' %}
|
||||
{% endif %}
|
||||
<meta property="og:site_name" content="{{ SITENAME }}"/>
|
||||
<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"/>
|
||||
<meta property="article:published_time" content="{{ article.date }}"/>
|
||||
<meta property="article:modified_time" content="{{ article.modified }}"/>
|
||||
<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|escape }}"/>
|
||||
{% endfor %}
|
||||
{% if 'cover' in article.metadata %}
|
||||
<meta property="og:image" content="{{ SITEURL }}/{{ article.metadata['cover'] }}">
|
||||
{% else %}
|
||||
<meta property="og:image" content="{{ SITELOGO }}">
|
||||
{% endif %}
|
14
theme/templates/partial/pagination.html
Normal file
14
theme/templates/partial/pagination.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% if DEFAULT_PAGINATION %}
|
||||
<div class="pagination">
|
||||
{% if articles_page.has_next() %}
|
||||
<a class="btn float-left" href="{{ SITEURL }}/{{ articles_next_page.url }}">
|
||||
<i class="fa fa-angle-left"></i> {{ _('Older Posts') }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if articles_page.has_previous() %}
|
||||
<a class="btn float-right" href="{{ SITEURL }}/{{ articles_previous_page.url }}">
|
||||
{{ _('Newer Posts') }} <i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
15
theme/templates/partial/piwik.html
Normal file
15
theme/templates/partial/piwik.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- Piwik -->
|
||||
<script type="text/javascript">
|
||||
var _paq = _paq || [];
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="//{{ PIWIK_URL }}/";
|
||||
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
||||
_paq.push(['setSiteId', {{ PIWIK_SITE_ID }}]);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
<noscript><p><img src="//{{ PIWIK_URL }}/piwik.php?idsite={{ PIWIK_SITE_ID }}" style="border:0" alt="" /></p></noscript>
|
||||
<!-- End Piwik Code -->
|
12
theme/templates/partial/statuscake.html
Normal file
12
theme/templates/partial/statuscake.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!-- StatusCake -->
|
||||
{% if STATUSCAKE['trackid'] %}
|
||||
<a href="https://www.statuscake.com" title="{{ SITENAME }} Uptime">
|
||||
<img src="https://www.statuscake.com/App/button/index.php?Track={{ STATUSCAKE['trackid'] }}&Days={{ STATUSCAKE['days'] }}&Design={{ STATUSCAKE['design'] }}" alt="{{ SITENAME }} Uptime"/>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if STATUSCAKE['rumid'] %}
|
||||
<script type="text/javascript">var SC_RumID = {{ STATUSCAKE['rumid'] }};</script>
|
||||
<script type="text/javascript" async src="https://www.statuscake.com/App/RUM/embed.js"></script>
|
||||
{% endif %}
|
||||
<!-- End StatusCake -->
|
10
theme/templates/partial/translations.html
Normal file
10
theme/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
theme/templates/period_archives.html
Normal file
22
theme/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 %}
|
3
theme/templates/tag.html
Normal file
3
theme/templates/tag.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %} – {{ _('Tag %(name)s', name=tag) }}{% endblock %}
|
||||
{% set summarise = True %}
|
18
theme/templates/tags.html
Normal file
18
theme/templates/tags.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %} – {{ _('Tags') }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article class="single">
|
||||
<header>
|
||||
<h1>{{ _('Tags') }}</h1>
|
||||
</header>
|
||||
<div>
|
||||
<ul class="list">
|
||||
{%- for tag, articles in tags|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</article>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user