Feat: Import all old stuff
This commit is contained in:
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 %}
|
||||
Reference in New Issue
Block a user